Get Service Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Service Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This command is used to query the service configuration.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 93h |
| 1:3 | Manufacturer 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. |
| 4 | Sub command, subcommand = 10h |
| 5 | Service ID. See Table 1. |
| 6 | Indicates the service parameter. For details, see Table 2. |
| 7 | Block Selector (00h if parameter does not require a block number) |
| 8 | Read offset, starting from 0. |
| 9 | Indicates the read length. |
Response Information
| Byte | Data Field |
|---|---|
| 1 | Completion Code |
| 2:4 | Manufacturer 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. |
| 5 | End 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:N | Indicates the data. The returned data may be less than or equal to the read length. |
Reference
Table 1 Service IDs
| Parameter | Parameter Data |
|---|---|
| FTP | 1 |
| SSH | 2 |
| Telnet | 3 |
| KVM | 4 |
| VMM | 5 |
| CIM Server | 6 |
| WS-MAN | 7 |
| SNMP Agent | 8 |
| Web Server | 9 |
| IPMI LAN | 0x0A |
| Video | 0x0B |
| BlackBox | 0x0C |
| VNC | 0x0D |
| ALL Service | 0xFF. Only service control and service port in Table 2 are supported. |
Table 2 Service parameters
| Parameter | Parameter Data | # (Decimal Format) | |
|---|---|---|---|
| Service control | Read and write | Block 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 port | Read and write | Get/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 timeout | Read and write | data1:2-Get/Set Service Session Timeout Seconds LS-byte first | 3 |
| Service session maximum | Read and write | data1-Get/Set Service Session Maximum | 4 |
| Service session active number | Read and write | data1-Get/Set Service Session Active Number | 5 |
| Service session source address | Read only | Get 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 status | Read and write | Get 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 0xffResponse:
text
db 07 00 00 00 16 00