# Get Identity online status in CLI

**URL:** <https://openziti.discourse.group/t/get-identity-online-status-in-cli/4336>\
**Category:** Uncategorized\
**Created:** [April 10, 2025, 9:43am UTC](https://openziti.discourse.group/t/get-identity-online-status-in-cli/4336 "2025-04-10T09:43:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![farmhouse](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@farmhouse](https://openziti.discourse.group/u/farmhouse)\
**Post date:** [April 10, 2025, 9:43am UTC](https://openziti.discourse.group/t/get-identity-online-status-in-cli/4336/1 "2025-04-10T09:43:36Z")

</div>

In the Ziti Admin Console it's possible for me to see the online status for an identity.

 ![image](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/2X/d/db71f305046cf0e776ae854c25019bc36a9a92ba.png)

Is it possible to get the online status using the `ziti` CLI tool or anywhere else ?

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [April 10, 2025, 11:36am UTC](https://openziti.discourse.group/t/get-identity-online-status-in-cli/4336/2 "2025-04-10T11:36:43Z")

</div>

Everything the ZAC does is based around the APIs provided by the controller. Generally speaking, ZAC doesn't make more than one request but sometimes it might.

For this, you would use the "json" response from the CLI. something like:

```auto
ziti edge list identities 'name="forwarder"' -j \
  | jq -r '.data[] | [.edgeRouterConnectionStatus, .hasEdgeRouterConnection, .hasApiSession] | @csv'
"online",true,true

```

hth

---

<div class="post-metadata">

**Author:** ![farmhouse](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@farmhouse](https://openziti.discourse.group/u/farmhouse)\
**Post date:** [April 10, 2025, 12:18pm UTC](https://openziti.discourse.group/t/get-identity-online-status-in-cli/4336/3 "2025-04-10T12:18:48Z")

</div>

Great thanks @TheLumberjack !
