sonic-utilities
sonic-utilities copied to clipboard
coldreboot logging
What I did
Add coldreboot to reboot-cause
How I did it
Add "coldreboot" script to bin which will add the reboot-cause and exec /sbin/coldreboot.
How to verify it
sudo coldreboot
show reboot-cause
Previous command output (if the output of a command-line utility has changed)
Unknown
New command output (if the output of a command-line utility has changed)
User issued 'coldreboot' command [User: admin, Time: Sun 18 Jun 2023 07:15:14 PM UTC]
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
Hi @xumia All the Azure Pipelines passing please approve it
Hi @xumia All the Azure Pipelines passing please approve it
Why we need to add the coldreboot? @qiluo-msft , could you please help review it? Thanks.
@xumia The coldreboot command already exists, but if we use it we can't see the reboot cause(Unknown).