ipmcset -t user -d interface
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t user -d interface
命令功能
设置用户登录接口
命令格式
text
ipmcset -t user -d interface -v <username> <enabled/disabled> <option1 option2 ...> Options are: 1 Web 2 SNMP 3 IPMI 4 SSH 5 SFTP 7 Local 8 Redfish参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
username | ReqBody | string | 是 | - | [{"Type": "Regex", "Formula": "^(?!.*[<>&,'/\%:" ])(?=[A-Za-z0-9~!@#$%^&*()_+-={};[\\]?.|])(?!#)(?!\\+)(?!-)([A-Za-z0-9~!@#$%^&*()_+-={};[\\]?.|]{1,16})$"}] | Contain any digits, letters, or characters except (:,<>&"'/%) and space. User name's length is limitted to 1-16. User name cannot start with character "#" "+" or "-". User name cannot be just a dot (.) or two consecutive dots (..). |
enabled | ReqBody | - | 是 | - | [{"Type": "Enum", "Formula": ["enabled", "disabled"]}] | - |
option1 | ReqBody | integer | 是 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
option2 | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
option3 | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
option4 | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
option5 | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
option6 | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
option7 | ReqBody | integer | 否 | - | [{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}] | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
UserName | RspBody | - | 否 | - | - | - |
PwdValid | RspBody | - | 否 | - | - | - |
GetUserExist | RspBody | - | 否 | - | - | - |
GetLoginInterfaces | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/AccountService/Accounts | bmc.kepler.AccountService.ManagerAccounts | GetIdByUserName | - | {"AccountId": "AccountId"} |
| 2 | Property | /bmc/kepler/AccountService/Accounts/${ProcessingFlow[1]/Destination/AccountId} | bmc.kepler.AccountService.ManagerAccount | - | - | {"LoginInterface": "LoginInterface"} |
| 3 | Method | /bmc/kepler/AccountService/Accounts/${ProcessingFlow[1]/Destination/AccountId} | bmc.kepler.AccountService.ManagerAccount | ChangePwd | - | - |
| 4 | Property | /bmc/kepler/AccountService/Accounts/${ProcessingFlow[1]/Destination/AccountId} | bmc.kepler.AccountService.ManagerAccount | - | {"LoginInterface": "${Statements/GetLoginInterfaces()[2]}"} | - |
使用示例
text
ipmcset -t user -d interface -v <username> <enabled/disabled> <option1 option2 ...> Options are: 1 Web 2 SNMP 3 IPMI 4 SSH 5 SFTP 7 Local 8 Redfish输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | Set user login interface successfully. | interface_config/cli/echoes/ipmcset/user_interface |
| 其他 | The length of user password is too long. | interface_config/cli/echoes/ipmcset/user_interface |
| 其他 | User password should less than 512 characters. | interface_config/cli/echoes/ipmcset/user_interface |
| 其他 | Input password contains incorrect characters. | interface_config/cli/echoes/ipmcset/user_interface |
| 其他 | Correct character contains any digits, letters, space or the following characters: `~!@#$%%^&*()-_=+\|[{}];'",<.>/? | interface_config/cli/echoes/ipmcset/user_interface |
| 失败 | Confirm password error. | interface_config/cli/echoes/ipmcset/user_interface |
| 成功 | Set user login interface successfully. | interface_config/cli/echoes/ipmcset/user_interface |
| 其他 | User <value> doesn't exist. | interface_config/cli/echoes/ipmcset/user_interface |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | user |
| dataitem | interface |
| URI | /cli/v1/user/interface |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/user.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |