ipmcset -t trap -d version
更新时间: 2026/07/16
在Gitcode上查看源码ipmcset -t trap -d version
命令功能
设置 SNMP Trap 版本
命令格式
text
ipmcset -t trap -d version -v <V1|V2C|V3>参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
version | ReqBody | string | 是 | - | [{"Type": "Enum", "Formula": ["V1", "V2C", "V3"]}] | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
version | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | /bmc/kepler/EventService/Subscriptions/Snmp | bmc.kepler.EventService.Subscriptions.Snmp | - | {"Version": "${Statements/version()}"} | - |
使用示例
text
ipmcset -t trap -d version -v <V1|V2C|V3>输出样例
输出样例来源: interface_config/cli/echoes/ipmcset/trap_version, interface_config/cli/echoes/
无
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcset |
| target | trap |
| dataitem | version |
| URI | /cli/v1/trap/version |
| Interface Type | Patch |
| 配置来源 | interface_config/cli/ipmcset/trap.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |