Update progress status

Dear All,

I’m using mender 4.0.6. Is there any way to get the update progress status?

When using mender managed, the file is being download and it depends on the internet speed. But mender client know the file size and know how many bytes it downloaded. Is there any way to get the percentage of the download?

When using mender client via command line, it shows a percentage while writing to the stand-by partition. If I’m not wrong in a very old version, that percentage was exported via D-Bus, but I suppose it was removed. Is there any way to get that data externally via an API or something else?

Background is, my device has a display and I would like to display to the user the update progress percentage.
Currently I’m using state script, but it make the progress bar a bit jumpy like I can set 10% when DownloadEnter, 30% when DownloadLeave and 70% when ArtifactInstallEnter, but this doesn’t progress smoothly and can remain 5 min to 1 hour in 30% depending on the internet/download speed. That give the impression that it is frozen or download isn’t happening.

Thank you for any insight here.
Bests, Diogo Justen

Hi @djusten,

Thanks for reaching out! There is so far no immediate way to extract this data. The closest probably is creating a customized form of the rootfs-image update module. If you look at it, specifically the DownloadWithFileSizes step, like mender/support/modules/rootfs-image at 9fc5b2fec4b525ee045cc93c0a030d94aa308394 · mendersoftware/mender · GitHub . There you might be able to obtain the information and then extract it.

Other than that, I can check where the information in standalone comes from but not sure if there is another route to use it.

Greetz,
Josef