Get Serial Connection
更新时间: 2026/08/06
在Gitcode上查看源码Get Serial Connection
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 obtain the serial port connection direction.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 91h |
| 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=0x18 |
| 5 | Source serial selector. For details, see Table 1. The source serial port can only be 00h, 01h, or 02h. |
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 | Destination serial selector. For details, see Table 1. |
Reference
Table 1 Definition of the BMC system serial port
| Parameter | Name | Description |
|---|---|---|
| 00h | Host Serial | Service system serial port |
| 01h | Panel Connector/base Serial | Serial port on the panel, which does not exist on some products.Base plane serial port NOTE: This parameter is applicable to the XCU and can be used only as the destination serial port. |
| 02h | BMC sol Serial/fabric Serial | BMC serial port redirection input serial port/Fabric plane serial port NOTE: This parameter is applicable to the XCU and can be used only as the destination serial port. |
| 04h | BMC debug Serial | BMC debugging serial port. |
| 05h | FC Serial | FC plane serial port NOTE: This parameter is applicable to the XCU and can be used only as the destination serial port. |
| 06h | Raid Serail | RAID controller card serial port. |
| 07h | EXPANDER Serial | EXPANDER serial port. Some products do not have this port. |
| 08h | Switching system | Serial port of the switching system |
| 0ch | Card Com1 | Serial port 1 of the peripheral card, for example, Taishan 2280 V2 port1 and port4 for connecting to the SDI card |
| 0dh | Card Com2 | Serial port 2 of the peripheral card, for example, Taishan 2280 V2 port1 and port4 for connecting to the SDI card |
| 0eh | SDI SCCL | SCCL serial port on the 1620 of SDI 3.0. |
| 0fh | SDI IMU | IMU serial port on the 1620 of the SDI 3.0. |
| 10h-1fh | NodeN BMC/OS | The BMC and OS serial ports of eight nodes (0 to 7) are applicable to the scenario where the BMC and OS serial ports of multiple nodes need to be switched to the physical serial port or other serial ports of a central management node. Node0: 10h (BMC), 11h (OS) ... Node7: 1eh (BMC), 1fh (OS) |
| feh | CLOSE | The serial port on the panel is disabled. |
| 0xffh | Unconnected | Unconnected port |
Command Example
Obtain the serial port connection direction.
Request:
bash
ipmicmd -k "0f 00 30 91 db 07 00 18 01" smi 0Response:
text
0f 31 00 91 00 db 07 00 00