< Home

snmp-agent packet-priority

Function

The snmp-agent packet-priority command sets the transmission priority for SNMP messages.

The undo snmp-agent packet-priority command restores the default setting.

Format

snmp-agent packet-priority { snmp | trap } priority-level

undo snmp-agent packet-priority { snmp | trap }

Parameters

Parameter Description Value
snmp Indicates the transmission priority of SNMP data messages (excluding trap messages). The SNMP data messages include:
  • Get-Response message
  • Set-Response message
-
trap Indicates the transmission priority of SNMP trap messages. The SNMP trap messages include:
  • Trap message
  • Inform message
-
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.

Views

System view

Default Level

3: Management level

Usage Guidelines

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.

You can run the snmp-agent packet-priority command to set the transmission priority of SNMP messages in one of the following scenarios:
  • 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).

Example

# Set the priority of SNMP data messages to 5.
<sysname> system-view
[sysname] snmp-agent packet-priority snmp 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >