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

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
usernameReqBodystring-[{"Type": "Regex", "Formula": "^(?!.*[<>&,'/\%:" ])(?=[A-Za-z0-9~!@#$%^&amp;*()_+-={};[\\]?.|])(?!#)(?!\\+)(?!-)([A-Za-z0-9~!@#$%^&*()_+-={};[\\]?.|]{1,16})$"}]Contain any digits, letters, or characters except (:,&lt;>&"'/%) 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 (..).
enabledReqBody--[{"Type": "Enum", "Formula": ["enabled", "disabled"]}]-
option1ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-
option2ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-
option3ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-
option4ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-
option5ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-
option6ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-
option7ReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4, 5, 7, 8]}]-

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
UserNameRspBody----
PwdValidRspBody----
GetUserExistRspBody----
GetLoginInterfacesRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Method/bmc/kepler/AccountService/Accountsbmc.kepler.AccountService.ManagerAccountsGetIdByUserName-{"AccountId": "AccountId"}
2Property/bmc/kepler/AccountService/Accounts/${ProcessingFlow[1]/Destination/AccountId}bmc.kepler.AccountService.ManagerAccount--{"LoginInterface": "LoginInterface"}
3Method/bmc/kepler/AccountService/Accounts/${ProcessingFlow[1]/Destination/AccountId}bmc.kepler.AccountService.ManagerAccountChangePwd--
4Property/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

输出样例

ScenarioOutputSource
成功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: `~!@#$%%^&*()-_=+\|[&#123;&#125;];'",<.>/?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

来源信息

ItemValue
命令类型ipmcset
targetuser
dataiteminterface
URI/cli/v1/user/interface
Interface TypePatch
配置来源interface_config/cli/ipmcset/user.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37