Querying and Setting the SNMP Trap Mode (trap -d mode)
Function
The trap -d mode command enables you to query and set the SNMP trap mode.
Format
ipmcget -t trap -d mode
ipmcset -t trap -d mode -v <option>
Parameters
Parameter |
Description |
Value |
---|---|---|
option |
Specifies the SNMP trap mode. |
|
Usage Guidelines
Precise Alarm (recommended) provides more accurate information than OID and Event Code. For details, see iBMC Intelligent Management System SNMP API Description.
Example
# Set the SNMP trap mode to Event Code.
iBMC:/->ipmcset -t trap -d mode -v 0
Set trap mode Event Code success.
# Query the current SNMP trap mode.
iBMC:/->ipmcget -t trap -d mode
Trap mode: Event Code