Querying and Setting the SNMP Trap State (trap -d state)
Function
The trap -d state command is used to query and set the SNMP trap state.
Format
ipmcget -t trap -d state [-v destination]
ipmcset -t trap -d state -v [destination] <disabled | enabled>
Parameters
Parameter |
Description |
Value |
---|---|---|
destination |
Identifies an SNMP trap destination. |
|
disabled |
Disables SNMP trap. |
- |
enabled |
Enables SNMP trap. |
- |
Usage Guidelines
- To set trap for a specific channel, specify destination. The value range of destination is 1 to 4.
- To enable or disable the trap function, leave destination unspecified.
Example
# Disable SNMP trap destination 1.
iBMC:/->ipmcset -t trap -d state -v 1 disabled
Set trap dest1 disabled successfully.
# Query the state of SNMP trap destination 1.
iBMC:/->ipmcget -t trap -d state -v 1
trap dest1 state : disabled