Set Switch Info Parameters Command
更新时间: 2026/08/06
在Gitcode上查看源码

Set Switch Info Parameters Command

Change History

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

Basic Information

Function Description

Set switch parameters.

Privilege

Command Information

Request Information

ByteData Field
NetFn30h
CMD94h
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 = 03h
5Parameter selector
6:NConfiguration parameter data

Response Information

ByteData Field
1Completion Code
80h=parameter not supported
81h=attempt to set the 'set in progress' value (in parameter #0) when not in the 'set complete' state. (This completion code provides a way to recognize that another party has already 'claimed' the parameters.)
82h=attempt to write read-only parameter
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.

Reference

Table 1 Switch parameters

Parameter#Parameter Data
Set in progress00hdata 1: This parameter is used to indicate when any of the following parameters are being updated, and when the updates are completed.
The bit is primarily provided to alert software than some other software or utility is in the process of making changes to the data. An implementation can also elect to provide a 'rollback' feature that uses this information to decide whether to 'roll back' to the previous configuration information, or to accept the configuration change.
Port Number (Read Only)01hdata1: Port Number
Port Type (Read Only)02hdata1: Interface Selector (Set Selector)
NOTE: Interface selection: 0-external, 1-internal
data2 -Port Selector (Block Selector)
data3 -Port type
00h GE
01h 10GE
02h 40GE
03h FC
04h FCoE
Port Name
(Read Only)
03hdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3-N -Name String
Port Dest
(Read Only)
04hdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3 -Dest Slot --0xFF indicates that the port does not have a destination slot.
data4 -Dest Port --0xFF indicates that the port does not have a destination port.
Port Adapter Present
(Read Only)
05hdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3 -Present
00h Absent
01h Present
Port Link Status
(Read Only)
06hdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
Overall link status of the data3 -Link Status -- port
00h link down
01h link up
data4 -Sub Link Status: indicates the specific link status of the port. The link status may vary with boards.
00h link up
01h phy link down
02h phy link up
03h link fault
0xFFh invalid data: indicates that the link status of the port is not used and the upper layer does not need to parse the data.
Port Adapter AssetsTag
(Read Only)
07hdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3 -Sub String Selector (Sub Block Selector)
data4-N -AssetsTag, a long string
Port Control (Write Only)08hdata1 -Interface Selector
data2 -Port Selector
data3 -Control
00h port reset
other reserved
Port Rate09hdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3 -Port Rate
0:10M
1:100M
2:1000M
3:10G
4:40G
5:100G
other reserved
Port Mode0Ahdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3 -Port Mode
0:simplex
1:Half Duplex
2:Full Duplex
other reserved
Port CRC
Data
0Bhdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3:data6 -Port TX CRC(LSB)
data7:data10 -Port RX CRC(LSB)
Port CRC
Control
0Chdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3 -Control
00h Disable
01h Enable
Port Adapter Hardware Info
NOTE: The data of each block and sub-block is 16 bytes.
0Dhdata1 -Interface Selector (Set Selector)
data2 -Port Selector (Block Selector)
data3:data6 -temp(LSB)
data7:data10 -VCC(LSB)
data11:data14 -BIAS(LSB)
data15:data18 -TXpwr(LSB)
data19:data22 -RXpwr(LSB)
Port Description(Read Only)0EhDescription of the switch port. The 5:N part of the response is as follows:
data5 -Length
data6-N -Port Description String

Command Example

Set switch parameters.

Request:

bash
ipmicmd -k "0f 00 MM NN" smi 0

Response:

text
0f MM NN

Back to Index