ipmcget -t trap -d state
更新时间: 2026/07/16
在Gitcode上查看源码

ipmcget -t trap -d state

返回总览 | 返回命令索引

命令功能

查询 Trap 启用状态

命令格式

text
ipmcget -t trap -d state [-v destination]

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
destinationReqBody--[{"Type": "Enum", "Formula": ["1", "2", "3", "4"]}]-

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
destinationRspBody----
Enabled_trapRspBody----
Enabled_destRspBody----

后端处理流

StepTypePath/URIInterfaceField/MethodSourceDestination
1Property/bmc/kepler/EventService/Subscriptions/Snmpbmc.kepler.EventService.Subscriptions.Snmp--{"Enabled": "Enabled"}
2Property/bmc/kepler/EventService/Subscriptions/Snmp/Nmses/${ReqBody/destination}bmc.kepler.EventService.Subscriptions.Snmp.Nms--{"Enabled": "Enabled"}

使用示例

text
ipmcget -t trap -d state [-v destination]

输出样例

ScenarioOutputSource
其他trap state : enabledinterface_config/cli/echoes/ipmcget/trap_state
其他trap state : disabledinterface_config/cli/echoes/ipmcget/trap_state

来源信息

ItemValue
命令类型ipmcget
targettrap
dataitemstate
URI/cli/v1/trap/state
Interface TypeGet
配置来源interface_config/cli/ipmcget/trap.json
请求版本26.06_2026.06.30
源码提交5606349e
生成时间2026-07-16T01:48:37