代码仓
中
Get Port State
更新时间: 2025/06/26
在AtomGit上查看源码

0Fh-获取端口状态(Get-Port-State) ​

修订记录 ​

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

基本信息 ​

功能说明 ​

获取端口状态。

权限 ​

命令信息 ​

请求信息 ​

字节顺序域取值说明
NetFnPICMG 2Ch
CMD0Fh
1PICMG Identifier. Indicates that this is a PICMG-defined group extension command
A value of 00h is used
2Channel. Describes the Channel being queried
[07:06]-Interface
[05:00]-Channel Number

响应信息 ​

字节顺序域取值说明
1Completion Code
2PICMG Identifier. Indicates that this is a PICMG-defined group extension command. A value of 00h is used
(3:6)Link Info 1. LS Byte first. Optional. Describes information about Link one on the specified Channel. If this set of bytes is not provided, the Channel does not have any Links on the Channel
[31:24]-Link Grouping ID
[23:20]-Link Type Extension
[19:12]-Link Type
[11]-Port 3 Bit Flag
[10]-Port 2 Bit Flag
[09]-Port 1 Bit Flag
[08]-Port 0 Bit Flag
[07:06]-Interface
[05:00]-Channel Number
(7)State 1, Must be present if Link Info 1 is present. Indicates the current state of the Port(s) on the Channel
00h=Disabled
01h=Enabled
All other values reserved
(8:11)Link Info 2, LS Byte first. Optional. Bit assignments identical to Link Info 1.
Used for cases where a second Link has been established
(12)State 2, Bit assignments identical to State 1
(13:16)Link Info 3, LS Byte first. Optional. Bit assignments identical to Link Info 1.
Used for cases where a third Link has been established.
(17)State 3, Bit assignments identical to State 1
(18:21)Link Info 4, LS Byte first. Optional. Bit assignments identical to Link Info 1.
Used for cases where a fourth Link has been established
(22)State 4, Bit assignments identical to State 1

命令样例 ​

获取端口状态 ​

请求:

ipmicmd -k "0f 00 2c 0f 00 00" smi 0

响应:

0f 2d 00 0f 00 00 00 * * * *

说明:本例响应的完成码为 00(成功)。查询接口 0、通道 0;响应展示恰有一条链路的情况。Link Info 首字节由请求确定为 00h,其后三个 * 是链路属性字节,最后一个 * 是链路状态字节;其他链路不存在时不返回对应字段。

返回到索引 ​