Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Read device ID #1630

Closed
michael-p opened this issue Apr 6, 2020 · 2 comments
Closed

Read device ID #1630

michael-p opened this issue Apr 6, 2020 · 2 comments

Comments

@michael-p
Copy link

Dear all,

is there a (simple) way to read the device ID on the device itself? If I understand things correctly the device Id is stored in the device certificates, so in theory on could try to locate these certificates on the device and read out the name but I wonder if there is a simpler and stabler way to do this with the aktualizr application on the device?

For completeness, we're running version 1.0+gitAUTOINC+3c1c77c005 of the client.

Best
Michael

@pattivacek
Copy link
Collaborator

is there a (simple) way to read the device ID on the device itself?

Yes, try running aktualizr-info on the device. :)

If I understand things correctly the device Id is stored in the device certificates, so in theory on could try to locate these certificates on the device and read out the name but I wonder if there is a simpler and stabler way to do this with the aktualizr application on the device?

We now do this as well; see #1555.

For completeness, we're running version 1.0+gitAUTOINC+3c1c77c005 of the client.

That's a really old version. Please upgrade! Why do you need to use that version?

@michael-p
Copy link
Author

Yes, try running aktualizr-info on the device. :)

Oh wow, that was easy! Thank you very much for the super-fast help! :)

That's a really old version. Please upgrade! Why do you need to use that version?

No real reason for this except that the whole Yocto-build was set up roughly 2 years ago by an engineer who's no longer working on the project and since the device is still in a private beta phase and "it works", no-one updated it. I'll try to push this so that we upgrade as soon as possible, thanks for the heads-up!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants