Get System Restart Cause 命令详情
更新时间:2025/06/26
在Gitcode上查看源码

修订记录

openUBMC版本号修订日期修订人修订内容
25.062025/06/26pengqiang-gs初稿,新增命令详情

基本信息

功能说明

查询系统复位原因。 This command returns information about what action last caused the system to restart.

权限

BasicSetting

命令信息

请求信息

无请求参数

响应信息

字节顺序域取值说明
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 Set Power Restore Policy Command) [optional]
 7h = automatic power-up on AC being applied due to ‘restore previous power state’ power restore policy (see 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

命令样例

样例1:

  • 请求:
  • 响应:00

返回到索引