The snmp-agent packet-priority command sets the transmission priority for SNMP messages.
The undo snmp-agent packet-priority command restores the default setting.
snmp-agent packet-priority { snmp | trap } priority-level
undo snmp-agent packet-priority { snmp | trap }
| Parameter | Description | Value |
|---|---|---|
| snmp | Indicates the transmission priority of SNMP data messages
(excluding trap messages). The SNMP data messages include:
|
- |
| trap | Indicates the transmission priority of SNMP trap messages.
The SNMP trap messages include:
|
- |
| priority-level | Specifies the transmission priority of SNMP messages. | The value is an integer ranging from 0 to 7. The default value is 6. Priority 0 is the lowest and priority 7 is the highest. |
By default, the transmission priority of SNMP messages is 6.
Usage Scenario
SNMP messages may be lost if the number of SNMP messages on a network exceeds the processing capability of the NMS. Run the snmp-agent packet-priority command to set the transmission priority of SNMP messages to ensure that the NMS can process important messages first.
To prevent trap messages from being discarded, increase the transmission priority of SNMP trap messages to ensure that the NMS can receive the trap messages.
To ensure reliability of MIB operations through the NMS, increase the transmission priority of SNMP data messages (excluding SNMP trap messages) to ensure that the NMS can quickly receive response packets from the device.
If a network is severely congested and a large number of trap messages are generated, you can decrease all the priorities of the SNMP messages (including SNMP trap messages).