# Sensuctl entity list doesn't return all entities

**URL:** https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529
**Category:** Sensu Go
**Created:** [April 3, 2021, 10:08am UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529 "2021-04-03T10:08:51Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![rabf](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@rabf](https://discourse.sensu.io/u/rabf)
#### Post date: [April 3, 2021, 10:08am UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529/1 "2021-04-03T10:08:52Z")

</div>

when I run

` sensuctl entity list`

I only get a partial list of our entities (42 lines instead of the more than 60 I am expecting). Some of the entities are old servers that have been shutdown a long time ago. Many of the new servers are not showing in the list, even though they have events in

`sensuctl event list`

How do I get sensctl to list all the entities?

Thanks  
Rob

---

<div class="post-metadata">

### Author: ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)
#### Post date: [April 5, 2021, 8:16pm UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529/2 "2021-04-05T20:16:14Z")

</div>

What version of Sensu backend is this?

---

<div class="post-metadata">

### Author: ![rabf](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@rabf](https://discourse.sensu.io/u/rabf)
#### Post date: [April 7, 2021, 9:59am UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529/3 "2021-04-07T09:59:15Z")

</div>

it was  
$ sensu-backend version  
sensu-backend version 6.0.0+ee, enterprise edition, build 98694fcc4ee5552bcdd4f394aa39e4f0466cbaf2, built 2020-08-07T19:06:58Z, built with go1.13.15

I have just upgraded to 6.2.7 , but still seeing the same behavior

---

<div class="post-metadata">

### Author: ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)
#### Post date: [April 7, 2021, 10:21pm UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529/4 "2021-04-07T22:21:18Z")

</div>

Hmm,

I’m trying to remember if this was a bug in 6.0.0 or not.

One last configuration thing. Are you running with full administration RBAC privledges for this cluster?  
I haven’t tested it this specific scenario yet, but it might be possible to construct cluster-role or namespace specific role rules that would prevent you from seeing a subset of entities but still see the events.

---

<div class="post-metadata">

### Author: ![rabf](https://avatars.discourse-cdn.com/v4/letter/r/22d042/32.png) [@rabf](https://discourse.sensu.io/u/rabf)
#### Post date: [April 7, 2021, 10:55pm UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529/5 "2021-04-07T22:55:32Z")

</div>

Thanks @jspaleta, the version number was a great prompt 🙂

Looks like we did not run the `sensu-backend upgrade` command after we moved from ver 5 to ver 6

I have now run that and I get a full list of entities.

Thanks  
Rob

---

<div class="post-metadata">

### Author: ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)
#### Post date: [April 7, 2021, 10:57pm UTC](https://discourse.sensu.io/t/sensuctl-entity-list-doesnt-return-all-entities/2529/6 "2021-04-07T22:57:26Z")

</div>

great, yeah that jump across major versions required an one time upgrade step.
