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

Get Service Configuration

Change History

openUBMC VersionRevision DateDescription
25.062025/06/26Initial draft: add command details

Basic Information

Function Description

This command is used to query the service configuration.

Privilege

ReadOnly

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
1:3Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
4Sub command, subcommand = 10h
5Service ID. See Table 1.
6Indicates the service parameter. For details, see Table 2.
7Block Selector (00h if parameter does not require a block number)
8Read offset, starting from 0.
9Indicates the read length.

Response Information

ByteData Field
1Completion Code
2:4Manufacturer ID, LS Byte first. The length is fixed to three bytes. For example, if the vendor ID is 2011 and the corresponding hexadecimal value is 0x0007DB, the first byte is DBh, the second byte is 07h, and the third byte is 00h.
5End of List, indicating whether the current data is complete. Long data may need to be read multiple times. This field is used to check whether data is completely read.
[7:1]: reserved
[0]: End of list
0=last data
1=middle data
6:NIndicates the data. The returned data may be less than or equal to the read length.

Reference

Table 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. Only service control and service port in Table 2 are supported.

Table 2 Service parameters

ParameterParameter Data# (Decimal Format)
Service controlRead and writeBlock Selector --- Service Protocol ID. For details, see the Protocol ID Parameter table.
data1-Get/Set Service/Protocol Start/Stop
[7:3]: service protocol ID. For details, see the protocol ID parameter table.
[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. The value 0 indicates the default port number.
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

Command Example

Obtain the SSH port number.

Request:

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

Response:

text
 db 07 00 00 00 16 00

Back to Index