Get FRU LED State
更新时间: 2025/06/26
在Gitcode上查看源码08h-获取FRU-LED状态(Get-FRU-LED-State)
修订记录
| openUBMC版本号 | 修订日期 | 修订内容 |
|---|---|---|
| 25.06 | 2025/06/26 | 初稿,新增命令详情 |
基本信息
功能说明
获取FRU LED状态。
权限
ReadOnly
命令信息
请求信息
| 字节顺序 | 域取值说明 |
|---|---|
| NetFn | PICMG 2Ch |
| CMD | 08h |
| 1 | PICMG Identifier, Indicates that this is a PICMG-defined group extension command. A value of 00h is used |
| 2 | FRU Device ID |
| 3 | LED ID 00h=BLUE LED (Bottom of Board) 01h=LED 1 Topmost 02h=LED 2 Second from top 03h=LED 3 Third from top 04h-FEh=OEM defined LEDs FFh-Reserved |
响应信息
| 字节顺序 | 域取值说明 |
|---|---|
| 1 | Completion Code |
| 2 | PICMG Identifier, Indicates that this is a PICMG-defined group extension command. A value of 00h is used |
| 3 | LED States: [7:4]-Reserved [3]-1b if LED has a hardware restriction that is not currently met This bit shall be 0 if the LED Color Capabilities command response for this LED does not provide an LED Flags byte or provides an LED Flags byte equal to 0 [2]-1b if Lamp Test has been enabled [1]-1b if override state has been enabled [0]-1b if IPM Controller has a Local Control state |
| 4 | Local Control LED Function 00h=LED is off. This is a default value if the IPM Controller does not support Local Control 01h-FAh=LED is BLINKING. The off duration is specified by the value of this byte, and the on duration is specified by the value of byte 5. Both values specify the time in tens of milliseconds (10 ms–2.5 s) FB-FEh=Reserved FFh=LED is on |
| 5 | Local Control On-duration The LED on-time in tens of milliseconds if (01h ≤ Byte 4 ≤ FAh) and ignored otherwise Otherwise, this field is ignored and is set to 0h |
| 6 | Local Control Color Bit numbers [7:4] Reserved, must be set to 0. [3:0] Hex Value Function 0h Reserved 1h BLUE 2h RED 3h GREEN 4h AMBER 5h ORANGE 6h WHITE 7h-Fh Reserved |
| (7) | Override state LED Function. This byte is required if either override state or Lamp Test is in effect. 00h=LED override state is off 01h-FAh=LED override state is BLINKING. The off duration is specified by the value of this byte and the on duration is specified by the value of byte 8. Both values specify the time in tens of milliseconds (10 ms–2.5 s) FBh-FEh=Reserved FFh=LED override state is on |
| (8) | Override State On-duration. This byte is required if either override state or Lamp Test is in effect. The LED on-time in tens of milliseconds if (01h ≤ Byte 7 ≤ FAh) and ignored otherwise. |
| (9) | Override State Color. This byte is required if either override state or Lamp Test is in effect. Bit numbers [7:4] Reserved, is set to 0. [3:0] Hex Value Function 0h Reserved 1h BLUE 2h RED 3h GREEN 4h AMBER 5h ORANGE 6h WHITE 7h-Fh Reserved |
| (10) | Lamp Test Duration. This byte is optional if Lamp Test is not in effect. This byte contains the Lamp Test time in hundreds of milliseconds and the value must be < 128. Other values reserved. |
命令样例
获取FRU LED状态
请求:
ipmicmd -k "0f 00 2c 08 00 00 02" smi 0响应:
0f 2d 00 08 00 00 01 00 00 00