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

ipmcset -t trap -d state

返回总览 | 返回命令索引

命令功能

设置 Trap 启用状态

命令格式

text
ipmcset -t trap -d state -v [destination] <disabled|enabled>

参数说明

NameLocationTypeRequiredDefaultConstraintDescription
destinationReqBodyinteger-[{"Type": "Enum", "Formula": [1, 2, 3, 4]}]-
stateReqBodystring-[{"Type": "Enum", "Formula": ["enabled", "disabled"]}]-

响应/输出说明

NameLocationTypeRequiredDefaultConstraintDescription
destinationRspBody----
stateRspBody----

后端处理流

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

使用示例

text
ipmcset -t trap -d state -v [destination] <disabled|enabled>

输出样例

输出样例来源: interface_config/cli/echoes/ipmcset/trap_state, interface_config/cli/echoes/

来源信息

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