Set KVM Parameter
更新时间: 2026/08/06
在Gitcode上查看源码Set KVM Parameter
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 set KVM parameters.
Privilege
ReadOnly
Command Information
Request Information
| Byte | Data Field |
|---|---|
| NetFn | 30h |
| CMD | 94h |
| 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, sub command = 21h |
| 5 | Parameter selector, starting from 1. For details, see Table 1. |
| 6 | [7:1]: reserved [0]: cascading flag 0: last data 1: middle data |
| 7 | Offset, indicating the offset of the written data. The value starts from 0. Write data in sequence when they are written as multiple frames. |
| 8 | Length: length of the data to be written. |
| 9 | Written data |
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. |
Reference
Table 1 KVM parameters
| Parameter | Query and Setting Capabilities | Data | #(Decimal) |
|---|---|---|---|
| KVM algorithm | Read only | data1: KVM algorithm support bit 7: 2 reservedbit1: new algorithm (RLE_JPEG)bit0: old algorithm (RLE) For each bit, the value 1 indicates that the algorithm is supported, and the value 0 indicates that the algorithm is not supported. | 1 |
| Remote KVM Data Encrypt Enabled | Read and write | Remote KVM data encrypt or not data1: Remote KVM data encrypt bit[1:7]: Remote KVM data encrypt 0-AES128 bit0: Remote KVM data encrypt or not 0-disabled 1-enabled | 2 |
| Remote VMM Data Encrypt Enabled | Read and write | Remote VMM data encrypt or not data1: Remote VMM data encrypt bit[1:7]: Remote VMM data encrypt 0-AES128 bit0: Remote VMM data encrypt or not 0-disabled 1-enabled | 3 |
| Remote KVM Computer Lock Enabled | Read and write | data 1: Remote KVM Computer Lock Enabled 0-disabled1-enabled | 4 |
| Remote KVM Computer Lock Keys | Read and write | Remote KVM computer lock keys, which are sent to the OS to lock the screen or deregister the composite key after the remote KVM is disconnected. data1: key1data2: key2data3: key3data4: key4data5: key5data6: key6 | 5 |
| Set Remote Console Authentication Key | Write-only. Parameters in () are optional, and parameter session No. is used only when the KVM module synchronizes the relationship between the key and username to the VMM module. | Set remote console authentication key: data1:10 KVM module 1 VMM module 2 ISOL module Other reserved data2:1-Authentication key length NData3:N-Authentication Key. Currently, the value contains 20 bytes. LSB first.data(3+N):16-user name. The user name has a length of 16 bytes.data(19+N):1-KVM share mode1 shared mode 2 private mode (data(20+N):1)-Session No. based 0. Currently, a maximum of two dialogs are supported at the same time. | 6 |
| Replace Remote Console Authentication Key | Write-only. The key is replaced only when the old key is matched. Otherwise, an error is returned. | Replace remote console authentication key, replacing a 4-byte key with a 20-byte one which is more secure and compatible with the old KVM integration interface with a 4-byte key. data1:4-old authentication key. which is 4-byte in length and LSB first.data5:1-new authentication key length Ndata6:N-new authentication key. Currently, the length is 20 bytes, and LSB is first. | 7 |
| Remote VMM Floppy Driver Enabled | Read and write to enable the remote VMM floppy drive. | data 1: Remote VMM Floppy Driver Enabled. Note that you need to set the switch status at an interval of 1 second. 0-disabled1: enabled. The remote VMM floppy drive is enabled. | 8 |
Command Example
Request:
bash
ipmitool raw 0x30 0x94 0xDB 0x07 0x00 0x21 0x06 0x01 0x00 0x01 0x00Response:
text
db 07 00