ipmcset -d password
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -d password
命令功能
修改用户密码
命令格式
text
ipmcset -d password -v <username>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
username | ReqBody | string | 是 | - | [{"Type": "Regex", "Formula": "^(?!.*[<>&,'/\%:" ])(?=[A-Za-z0-9~!@#$%^&*()_+-={};[\\]?.|])(?!#)(?!\\+)(?!-)([A-Za-z0-9~!@#$%^&*()_+-={};[\\]?.|]{1,16})$"}, {"Type": "Script", "Formula": "local privilege = #Context.Privilege if privilege ~= 9 and Context.UserName ~= Input then error(base_messages.InsufficientPrivilege()) else return true end"}] | 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 (..). |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
UserName | RspBody | - | 否 | - | - | - |
PwdValid | RspBody | - | 否 | - | - | - |
GetPathSuccess | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/MdbService | bmc.kepler.Mdb | GetPath | - | {"Path": "Path"} |
| 2 | Method | ${ProcessingFlow[1]/Destination/Path} | bmc.kepler.AccountService.ManagerAccount | ChangePwd | - | - |
使用示例
text
ipmcset -d password -v <username>输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | Set user password successfully. | interface_config/cli/echoes/ipmcset/_password |
| 其他 | The length of user password is too long. | interface_config/cli/echoes/ipmcset/_password |
| 其他 | User password should not exceed 512 characters. | interface_config/cli/echoes/ipmcset/_password |
| 其他 | Input password contains incorrect characters. | interface_config/cli/echoes/ipmcset/_password |
| 其他 | Correct character contains any digits, letters, space or the following characters: `~!@#$%%^&*()-_=+\|[{}];'",<.>/? | interface_config/cli/echoes/ipmcset/_password |
| 失败 | Confirm password error. | interface_config/cli/echoes/ipmcset/_password |
| 其他 | The password cannot be empty | interface_config/cli/echoes/ipmcset/_password |
| 其他 | User <value> doesn't exist. | interface_config/cli/echoes/ipmcset/_password |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | _ |
| dataitem | password |
| URI | /cli/v1/_/password |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/target.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |