# Mender Device ID

**URL:** <https://hub.mender.io/t/mender-device-id/703>\
**Category:** General Discussions\
**Created:** [June 13, 2019, 10:25am UTC](https://hub.mender.io/t/mender-device-id/703 "2019-06-13T10:25:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmrskos](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tmrskos](https://hub.mender.io/u/tmrskos)\
**Post date:** [June 13, 2019, 10:25am UTC](https://hub.mender.io/t/mender-device-id/703/1 "2019-06-13T10:25:21Z")

</div>

Hello,

For the sake of consistency, I would like to assign all my devices (even non-Mender managed) an ID in the format of a mender device. From what I’ve read, it’s completely generated on the server side. It appears to be a 24 byte alpha numeric string in lower case. I’m not sure if it’s some random number and a a hash of the MAC? Has anyone done this or can point me to information on created a unique device ID format that would match up with the Mender device ID generated by the hosted Mender server?

Thanks

---

<div class="post-metadata">

**Author:** ![drewmoseley](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/drewmoseley/32/47_2.png) [@drewmoseley](https://hub.mender.io/u/drewmoseley)\
**Post date:** [June 13, 2019, 1:05pm UTC](https://hub.mender.io/t/mender-device-id/703/2 "2019-06-13T13:05:17Z")

</div>

Hi @tmrskos,

I would recommend instead that you change the [mender-device-identity script](https://docs.mender.io/client-configuration/identity) to output your custom ID such as a UUID. This script produces the key-value pairs that are then hashed by the server to generate the ID. But I don’t think you want to rely on the hashed output format not changing.

Drew
