Get Access Rule Configuration
更新时间: 2026/08/06
在Gitcode上查看源码

Get Access Rule Configuration

Change History

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

Basic Information

Function Description

This interface is used to query login rules.

Privilege

Command Information

Request Information

ByteData Field
NetFn30h
CMD93h
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, sub command = 2Fh
5Access rule parameter. For details, see Table 1.
6Block Selector (00h if parameter does not require a block number)
7Read offset, starting from 0.
8Indicates the read length.

Response Information

ByteData Field
1Completion Code
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.
5End 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:NIndicates the data. The returned data may be less than or equal to the read length.

Reference

Table 1 Access Rule Parameter

Parameter-Parameter DataNo. (Decimal)
Access Rule Enableread-writeBlock Selector=Rule ID (rule ID: 1-3)
data1:1-Enabled
0h- Disable
1h-Enable
1
Access Rule- Time Rangeread-writeBlock 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 Sourceread-writeBlock 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-MACread-writeBlock 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 Authwrite onlydata1: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 0

Response:

text
0f MM NN

Back to Index