ipmcset -t user -d weakpwddic
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t user -d weakpwddic
命令功能
管理弱口令字典
命令格式
text
ipmcset -t user -d weakpwddic -v <option> [localpath/URL]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
option | ReqBody | - | 是 | - | [{"Type": "Enum", "Formula": ["enabled", "disabled", "import", "export"]}] | enabled Enable weak password dictionary check. disabled Disable weak password dictionary check. import <localpath/URL> Import weak password dictionary. export [localpath/URL] Export weak password dictionary. Localpath e.g.:/tmp/weakdictionary URL :protocol://[username:password@]IP[:port]/directory/filename The parameters in the URL are described as follows: The protocol must be https,sftp,cifs,scp or nfs. The URL can contain only letters, digits, and special characters. The directory or file name cannot contain @. Use double quotation marks (") to enclose the URL that contains a space or double quotation marks ("). Escape the double quotation marks (") and back slash () contained in the URL. For example, if you want to enter: a b\cd" Enter: "a b\cd"" |
value | ReqBody | - | 否 | - | [{"Type": "Regex", "Formula": "^((https|sftp|nfs|cifs|scp)😕/.{1,1000}|/tmp/.{1,246})$"}] | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
Option | RspBody | - | 否 | - | - | - |
IsLocalFile | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | /bmc/kepler/AccountService | bmc.kepler.AccountService | - | {"WeakPasswordDictionaryEnabled": "${Statements/value()}"} | - |
| 2 | Property | /bmc/kepler/AccountService | bmc.kepler.AccountService | - | {"WeakPasswordDictionaryEnabled": "${Statements/value()}"} | - |
| 3 | Method | /bmc/kepler/Managers/1/Security/File | bmc.kepler.Managers.Security.File | IsPermitted | - | {"Result": "Result"} |
| 4 | Method | /bmc/kepler/AccountService | bmc.kepler.AccountService | ImportWeakPasswordDictionary | - | - |
| 5 | Method | /bmc/kepler/AccountService | bmc.kepler.AccountService | ExportWeakPasswordDictionary | - | - |
| 6 | Task | /bmc/kepler/AccountService | bmc.kepler.AccountService | ImportWeakPasswordDictionary | - | {"TaskId": "TaskId"} |
| 7 | Task | /bmc/kepler/AccountService | bmc.kepler.AccountService | ExportWeakPasswordDictionary | - | {"TaskId": "TaskId"} |
| 8 | Method | /bmc/kepler/Managers/1/Security/File | bmc.kepler.Managers.Security.File | ChangeOwner | - | - |
使用示例
text
ipmcset -t user -d weakpwddic -v <option> [localpath/URL]输出样例
| Scenario | Output | Source |
|---|---|---|
| 成功 | <value> weak password dictionary successfully. | interface_config/cli/echoes/ipmcset/user_weakpwddic |
| 失败 | <value> weak password dictionary failed. | interface_config/cli/echoes/ipmcset/user_weakpwddic |
| 成功 | <value> weak password dictionary successfully. | interface_config/cli/echoes/ipmcset/user_weakpwddic |
| 失败 | <value> weak password dictionary failed. | interface_config/cli/echoes/ipmcset/user_weakpwddic |
| 成功 | Enabled weak password dictionary check successfully. | interface_config/cli/echoes/ipmcset/user_weakpwddic |
| 成功 | Disabled weak password dictionary check successfully. | interface_config/cli/echoes/ipmcset/user_weakpwddic |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | user |
| dataitem | weakpwddic |
| URI | /cli/v1/user/weakpwddic |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/user.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |