ipmcget -t trap -d state
更新时间: 2026/07/16
在Gitcode上查看源码ipmcget -t trap -d state
命令功能
查询 Trap 启用状态
命令格式
text
ipmcget -t trap -d state [-v destination]参数说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
destination | ReqBody | - | 否 | - | [{"Type": "Enum", "Formula": ["1", "2", "3", "4"]}] | - |
响应/输出说明
| Name | Location | Type | Required | Default | Constraint | Description |
|---|---|---|---|---|---|---|
destination | RspBody | - | 否 | - | - | - |
Enabled_trap | RspBody | - | 否 | - | - | - |
Enabled_dest | RspBody | - | 否 | - | - | - |
后端处理流
| Step | Type | Path/URI | Interface | Field/Method | Source | Destination |
|---|---|---|---|---|---|---|
| 1 | Property | /bmc/kepler/EventService/Subscriptions/Snmp | bmc.kepler.EventService.Subscriptions.Snmp | - | - | {"Enabled": "Enabled"} |
| 2 | Property | /bmc/kepler/EventService/Subscriptions/Snmp/Nmses/${ReqBody/destination} | bmc.kepler.EventService.Subscriptions.Snmp.Nms | - | - | {"Enabled": "Enabled"} |
使用示例
text
ipmcget -t trap -d state [-v destination]输出样例
| Scenario | Output | Source |
|---|---|---|
| 其他 | trap state : enabled | interface_config/cli/echoes/ipmcget/trap_state |
| 其他 | trap state : disabled | interface_config/cli/echoes/ipmcget/trap_state |
来源信息
| Item | Value |
|---|---|
| 命令类型 | ipmcget |
| target | trap |
| dataitem | state |
| URI | /cli/v1/trap/state |
| Interface Type | Get |
| 配置来源 | interface_config/cli/ipmcget/trap.json |
| 请求版本 | 26.06_2026.06.30 |
| 源码提交 | 5606349e |
| 生成时间 | 2026-07-16T01:48:37 |