-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
agent: implement status
command
#399
Labels
good first issue
Good for newcomers
Comments
glimchb
added
good first issue
Good for newcomers
and removed
question
Further information is requested
labels
Jul 1, 2024
In this should we recreate the /var/lib/sztp/result.json file I think initially writing to a temp file and then replace it with original works?
|
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is empty https://github.com/opiproject/sztp/blob/main/sztp-agent/pkg/secureagent/status.go
status
command should show where in the onboarding stage the device is right now...for example: waiting on DHCP response...
or downloading file...
or pending reboot...
or provisioning was already completed...
or something else...
See this example:
https://cloudinit.readthedocs.io/en/latest/howto/status.html
and code https://github.com/canonical/cloud-init/blob/a01b8d31f8364a3d86f016a2940df1b38598889d/doc/status.txt#L4
maybe do do this, we need to create a file on the filesystem, like in example above, in
/var/lib/sztp/result.json
and in/run/sztp/result.json
The text was updated successfully, but these errors were encountered: