# Unable to fetch the device status from mender

**URL:** <https://hub.mender.io/t/unable-to-fetch-the-device-status-from-mender/6878>\
**Category:** General Discussions\
**Tags:** ubuntu, mender-client\
**Created:** [June 10, 2024, 1:45pm UTC](https://hub.mender.io/t/unable-to-fetch-the-device-status-from-mender/6878 "2024-06-10T13:45:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AkshatVyas](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@AkshatVyas](https://hub.mender.io/u/AkshatVyas)\
**Post date:** [June 10, 2024, 1:45pm UTC](https://hub.mender.io/t/unable-to-fetch-the-device-status-from-mender/6878/1 "2024-06-10T13:45:26Z")

</div>

Hi Team,

When I am trying to fetch the device **online & offline** status from mender to test my scenario. It is unable to retrieve as it has only accepted state which it is utilizing as online. But just in case I have observed that my device is connected to internet and I am able to take ssh also but it is in offline state on mender.  
Also, in case if mender API’s which I am consuming is calling mender server and the server is down in that case how to deal with the situation.  
Kindly, look into it on high priority.  
Thanks  
Akshat Vyas

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [June 12, 2024, 1:42pm UTC](https://hub.mender.io/t/unable-to-fetch-the-device-status-from-mender/6878/2 "2024-06-12T13:42:52Z")

</div>

Hi @AkshatVyas,

The Mender backend does not provide an “offline/online” status indicator. There is the `update_ts` property in the device inventory, which you can use to decide for yourself.

Handling a possibly offline server is up to the API consumer. For Hosted Mender, there are SLAs depending on the plan. If you are self-hosting, then it is obviously up to you.

Greets,  
Josef
