Get Service Configuration
更新时间: 2025/06/26
在Gitcode上查看源码

10h-获取服务配置信息(Get-Service-Configuration)

修订记录

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

基本信息

功能说明

获取服务配置信息。

权限

ReadOnly

命令信息

请求信息

字节顺序域取值说明
NetFn30h
CMD93h
1:3Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
4Sub command,子命令=10h
5Service ID,见 表1
6Service Parameter,见 表2
7Block Selector (00h if parameter does not require a block number)
8Read Offset,读取的数据偏移,从0开始
9Length,读取长度

响应信息

字节顺序域取值说明
1Completion Code
2:4Manufacturer ID,LS Byte first。长度固定3个字节,例如,某厂家ID是2011,对应十六进制为0x0007DB,则字节序为第1个字节为DBh、第2个字节为07h、第3个字节为00h。
5End of List,表示当前数据是否结束。当参数数据比较长的时候,可能需要分多次读取,通过此字段可以判断数据是否读完。
[7:1]: reserved
[0]: End of list
0=last data
1=middle data
6:NData,实际返回的数据可能小于等于Read length。

命令样例

获取ssh端口

请求:

ipmitool raw 0x30 0x93 0xDB 0x07 0x00 0x10 0x02 0x02 0x00 0x00 0xff

响应:

 db 07 00 00 00 16 00

附表1 Service IDs

ParameterParameter Data
FTP1
SSH2
Telnet3
KVM4
VMM5
CIM Server6
WS-MAN7
SNMP Agent8
Web Server9
IPMI LAN0x0A
Video0x0B
BlackBox0x0C
VNC0x0D
ALL Service0xFF,只支持 表2 中的“service control”和“service port”。

附表2 Service parameters

ParameterParameter Data# (Decimal Format)
Service controlRead and writeBlock Selector --- 表示Service Protocol ID,见Protocol ID Parameter表。
data1-Get/Set Service/Protocol Start/Stop
[7:3]-Service Protocol ID, 见Protocol ID Parameter表
[2:0]–Service/Protocol Status
0-stop
1-start
1
Service portRead and writeGet/Set Service Port
data1-Block Selector =Service Protocol and Port ID
[7:4]-Service Protocol ID, based 1
[2:0]-Service Port ID, based 1,0表示默认端口号
data2:3-Get/Set Service Port
LS-byte first
2
Service session timeoutRead and writedata1:2-Get/Set Service Session Timeout Seconds
LS-byte first
3
Service session maximumRead and writedata1-Get/Set Service Session Maximum4
Service session active numberRead and writedata1-Get/Set Service Session Active Number5
Service session source addressRead onlyGet the Session Source Addr
data1-Block Selector=session No., based 1
data2-real session id
data3:N-Source Addr, IPv4 or IPv6 or Hostname, data type:string
Max 255 Bytes.End by null if less than 255 Bytes.
6
Service session statusRead and writeGet the session status, and set the session disconnect
data1- Block Selector=real session id
data2-session status
0h-disconnect
1h-connect
other reserved
7

返回到索引