Get Access Rule Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Access Rule Configuration
Change History
| openUBMC Version | Revision Date | Description |
|---|---|---|
| 25.06 | 2025/06/26 | Initial draft: add command details |
Basic Information
Function Description
This interface is used to query login rules.
Privilege
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, sub command = 2Fh |
| 5 | Access rule parameter. For details, see Table 1. |
| 6 | Block Selector (00h if parameter does not require a block number) |
| 7 | Read offset, starting from 0. |
| 8 | 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 Access Rule Parameter
| Parameter | - | Parameter Data | No. (Decimal) |
|---|---|---|---|
| Access Rule Enable | read-write | Block Selector=Rule ID (rule ID: 1-3) data1:1-Enabled 0h- Disable 1h-Enable | 1 |
| Access Rule- Time Range | read-write | Block Selector=Rule ID (rule ID: 1-3) data1:2-Allow login start time, year, LSB first. The value ffffh indicates that the parameter is not involved. data3:1-Allow login start time, month. ffh indicates that the parameter is not involved. data4:1-Allow login start time, day. ffh indicates that the parameter is not involved. data5:1-Allow login start time, hour. ffh indicates that the parameter is not involved. data6:1-Allow login start time, minute. ffh indicates that the parameter is not involved. data7:2-Allow login end time, year, LSB first. The value ffffh indicates that the parameter is not involved. data9:1-Allow login end time, month. ffh indicates that the parameter is not involved. data10:1-Allow login end time, day. ffh indicates that the parameter is not involved. data11:1-Allow login end time, hour. ffh indicates that the parameter is not involved. data12:1-Allow login end time, minute. ffh indicates that the parameter is not involved. | 2 |
| Access Rule-Access Source | read-write | Block Selector=Rule ID (rule ID: 1-3) data1:N-access IPv4 or IPv6 or FQDN Max 128 Bytes. End by null if less than 128 Bytes | 3 |
| Access Rule-MAC | read-write | Block Selector=Rule ID (rule ID: 1-3) data1:N-access MAC Max 18 Bytes. End by null if less than 18 Bytes | 4 |
| Access Rule-Login Auth | write only | data1:1-login type 0- local user only 1- domain user data2:1-user id If data1 is a local user, data2 is the user ID, which is 1 based. If data1 is a domain user, data2 is the group ID, which is 0based. data3: N-login IP addr (v4 or v6), string type | 5 |
Command Example
Query login rules.
Request:
bash
ipmicmd -k "0f 00 MM NN" smi 0Response:
text
0f MM NN