Get System Restart Cause
更新时间: 2026/08/06
在Gitcode上查看源码

Get System Restart Cause

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

Obtain the cause of the system restart.

Privilege

Command Information

Request Information

ByteData Field
NetFnChassis 00h
CMD07h

Response Information

ByteData Field
1Completion Code
2Restart Cause
[7:4]-reserved
[3:0]-0h=unknown (system start/restart detected, but cause unknown)
[required if this condition exists]
1h=Chassis Control command [required]
2h=reset via pushbutton [optional]
3h=power-up via power pushbutton [optional]
4h=Watchdog expiration (see watchdog flags) [required]
5h=OEM [optional]
6h=automatic power-up on AC being applied due to 'always restore' power restore policy (see 28.8, Set Power Restore Policy Command) [optional]
7h=automatic power-up on AC being applied due to 'restore previous
power state' power restore policy (see 28.8, Set Power Restore Policy Command) [optional]
8h=reset via PEF [required if PEF reset supported]
9h=power-cycle via PEF [required if PEF power-cycle supported]
Ah=soft reset (e.g. CTRL-ALT-DEL) [optional]
Bh=power-up via RTC (system real time clock) wakeup [optional]
all other=reserved
3Channel number. (Channel that command was received over indicates the reset command, not the current command.)

Command Example

Obtain the cause of the system restart.

Request:

bash
ipmicmd -k "0f 00 00 07" smi 0

Response:

text
0f 00 00

Back to Index