ipmcset -t trap -d user
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t trap -d user
命令功能
设置 SNMP Trap 用户
命令格式
text
ipmcset -t trap -d user -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})$"}] | 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 (..). |
响应/输出说明
无
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Method | /bmc/kepler/AccountService/Accounts | bmc.kepler.AccountService.ManagerAccounts | GetIdByUserName | - | {"AccountId": "SNMPv3TrapAccountId"} |
| 2 | Property | /bmc/kepler/AccountService | bmc.kepler.AccountService | - | {"SNMPv3TrapAccountId": "${ProcessingFlow[1]/Destination/SNMPv3TrapAccountId}"} | - |
使用示例
text
ipmcset -t trap -d user -v <username>输出样例
输出样例来源: interface_config/cli/echoes/ipmcset/trap_user, interface_config/cli/echoes/
无
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | trap |
| dataitem | user |
| URI | /cli/v1/trap/user |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/trap.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |