# Is there a way for a client device to know if an upgrade was managed or standalone after reboot?

**URL:** <https://hub.mender.io/t/is-there-a-way-for-a-client-device-to-know-if-an-upgrade-was-managed-or-standalone-after-reboot/7492>\
**Category:** General Discussions\
**Tags:** standalone, upgrade, mender-client, managed\
**Created:** [January 28, 2025, 7:02pm UTC](https://hub.mender.io/t/is-there-a-way-for-a-client-device-to-know-if-an-upgrade-was-managed-or-standalone-after-reboot/7492 "2025-01-28T19:02:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcernea](https://avatars.discourse-cdn.com/v4/letter/r/3d9bf3/32.png) [@rcernea](https://hub.mender.io/u/rcernea)\
**Post date:** [January 28, 2025, 7:02pm UTC](https://hub.mender.io/t/is-there-a-way-for-a-client-device-to-know-if-an-upgrade-was-managed-or-standalone-after-reboot/7492/1 "2025-01-28T19:02:57Z")

</div>

I have a system where I use both standalone and managed upgrades. After an upgrade install and reboot the flag “upgrade\_available” is set to 1 (as expected). I would like to know if this upgrade is managed, or standalone in order to programmatically do the commit for the standalone upgrade, but not for the managed upgrade.

I am using Yocto, Mender, Kirkstone branch,  
mender --version  
3.5.3 runtime: go1.17.13

Thank you.

---

<div class="post-metadata">

**Author:** ![Chris](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/chris/32/568_2.png) [@Chris](https://hub.mender.io/u/Chris)\
**Post date:** [January 29, 2025, 7:48am UTC](https://hub.mender.io/t/is-there-a-way-for-a-client-device-to-know-if-an-upgrade-was-managed-or-standalone-after-reboot/7492/2 "2025-01-29T07:48:24Z")

</div>

The `ArtifactReboot` state is only executed in managed mode. You could create a state scripts that allows you to discriminate the upgrade type.
