sonic-utilities icon indicating copy to clipboard operation
sonic-utilities copied to clipboard

coldreboot logging

Open shiraez opened this issue 1 year ago • 5 comments

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]

shiraez avatar Feb 21 '24 14:02 shiraez

/azp run

xumia avatar Feb 22 '24 06:02 xumia

Azure Pipelines successfully started running 1 pipeline(s).

azure-pipelines[bot] avatar Feb 22 '24 06:02 azure-pipelines[bot]

Hi @xumia All the Azure Pipelines passing please approve it

shiraez avatar Feb 22 '24 08:02 shiraez

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 avatar Feb 22 '24 08:02 xumia

@xumia The coldreboot command already exists, but if we use it we can't see the reboot cause(Unknown).

shiraez avatar Mar 03 '24 07:03 shiraez