< Home

snmp-agent packet-priority

Function

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

The undo snmp-agent packet-priority command restores the default priority of SNMP messages.

By default, the priority of SNMP messages is 6.

Format

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

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

Parameters

Parameter Description Value
snmp Sets the priority of common SNMP messages (excluding trap messages), including:
  • Get-Response packets
  • Set-Response packets
-
trap Sets the priority of SNMP trap messages, including:
  • Trap packets
  • Inform packets
-
priority-level Specifies the priority of SNMP messages. The value is an integer that ranges from 0 to 7. The default value is 6. The value 0 indicates the lowest priority, and the value 7 indicates the highest priority.

Views

System view

Default Level

3: Management level

Usage Guidelines

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. This command can be used in the following situations:
  • To prevent traps from being discarded, increase the priority of SNMP trap messages so that traps can be successfully sent to the NMS.

  • To improve reliability of MIB operations performed on the device by the NMS, increase the priority of common SNMP messages, excluding SNMP trap messages.

  • When the network is severely congested and traps are generated frequently, reduce the priority of all SNMP messages, including SNMP trap messages.

Example

# Set the priority of common SNMP messages to 5.

<HUAWEI> system-view
[HUAWEI] snmp-agent packet-priority snmp 5
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >