Querying and Setting the SNMP Trap Version (trap -d version)
Function
The trap -d version command is used to query and set the SNMP trap version.
Format
ipmcget -t trap -d version
ipmcset -t trap -d version -v <V1 | V2C | V3>
Parameters
Parameter |
Description |
Value |
---|---|---|
V1 |
Indicates SNMPv1. |
- |
V2C |
Indicates SNMPv2c. |
- |
V3 |
Indicates SNMPv3. |
- |
Usage Guidelines
The default value is V1. However, V3 is recommended. Exercise caution when using V1 and V2C, because they pose security risks.
Example
# Set the SNMP trap version to SNMPv2c.
iBMC:/->ipmcset -t trap -d version -v V2C
Set trap V2C success.
# Query the SNMP trap version.
iBMC:/->ipmcget -t trap -d version
Trap version : V2C