Get System Restart Cause
更新时间: 2026/08/06
在Gitcode上查看源码Get System Restart Cause
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
Obtain the cause of the system restart.
Privilege
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | Chassis 00h |
| CMD | 07h |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2 | Restart 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 |
| 3 | Channel 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 0Response:
text
0f 00 00