Get Account Service Configuration
更新时间: 2026/08/06
在Gitcode上查看源码Get Account Service 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 user service configurations.
Privilege
UserMgmt: The permission for querying the session mode, session timeout interval, and maximum number of sessions is ReadOnly.
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, subcommand=76h |
| 5 | Function. For details about the function ID, see Table 1. |
| 6 | Function param: function parameter corresponding to each function. For details about the value range, see Table 1. |
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 | Indicates the length of the queried configuration information. The value is N. |
| 6:5+N | Response result. For details, see Table 2. |
Table 1 Function number parameters
| Function ID | Function | Functions and specifications |
|---|---|---|
| 01h | Whether weak password check is enabled | This is a reserved field and has no meanings. |
| 02h | Password Change Policy upon First Login | User ID, [7]:[6]: reserved [5]:[0]: Userid |
| 03h | Checking Historical User Passwords | This is a reserved field and has no meanings. |
| 04h | Timeout period for a web session | This is a reserved field and has no meanings. |
| 05h | Emergency Login User | This is a reserved field and has no meanings. |
| 06h | Initial Password Prompt Switch | This is a reserved field and has no meanings. |
| 07h | Password Complexity Requirement | - |
| 08h | Regular expression for password verification | - |
| 09h | Session Mode | Session type, 00h – Web 01h – Redfish 02h - CLI (Only the timeout period can be set.) 04h – KVM 05h – VNC 07h – VIDEO |
| 0Ah | TimeOut | |
| 0Bh | Maximum number of sessions |
Table 2 Function response result
| Function ID | Function | Status code, |
|---|---|---|
| 01h | Weak password check | 00h: Weak password check is disabled. 01h: Weak password check is enabled. |
| 02h | Password change policy upon the first login | 00h: The system prompts you to change the password. 01h: forcible password change |
| 03h | Historical user password check | 00h: The historical password is not verified. 01h: Verify a historical password. The maximum value is 5. |
| 04h | Web timeout duration | Web timeout period (5-480 minutes), MSB first Unit: minute Value range: 5 to 480 |
| 05h | Emergency Login User | 00h: No emergency login user is set. 02h-11h: emergency login user ID |
| 06h | Initial Password Prompt Switch | 00h: The initial password is not prompted. 01h: initial password prompt (default) |
| 07h | Password Complexity Requirement | 01h: The default BMC rules are used for password verification. 02h: Use a customized regular expression to verify the password. 03h: Use the default BMC rules and customized regular expressions for password verification. |
| 08h | - | - |
| 09h | Session Mode | 00h: sharing 01h: exclusive |
| 0Ah | Session timeout period | Timeout period MSB first: Web: 0005h-01e0h-(5-480) min timeout Redfish: 0000001eh-00015180h– (30-86400) second timeout interval CLI: 0000h-01e0h-(0-480) min Timeout KVM: 0000h-01e0h-(0-480) min Timeout VNC: 0000h-01e0h-(0-480) minutes Timeout interval VIDEO: 0000h-01e0h-(0-480) min timeout Note: The value 0 indicates that the session never times out. |
| 0Bh | Maximum number of sessions | Web: 04h ~14h-(4-20) Redfish: 0ah ~14h-(10-20) KVM: 02h-(2) VNC: 05h-(5) VIDEO: 01h-(1) |
Command Example
Query the user service configuration. Weak Password Check Enabled
Request:
bash
ipmitool raw 0x30 0x93 0xDB 0x07 0x00 0x76 0x01 0xffResponse:
text
db 07 00 01 01