< Home

display snmp-agent trap feature-name mid_am all

Function

The display snmp-agent trap feature-name mid_am all command displays the status of all traps for the AM module.

Format

display snmp-agent trap feature-name mid_am all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After enabling the trap function for the AM module, you can run this command to check the status of all traps for the AM module. You can run the snmp-agent trap enable feature-name mib_am command to enable the trap function for the AM module.

Prerequisites

SNMP has been enabled on the device. You can enable SNMP using the snmp-agent command.

Example

# Display the status of all traps for the AM module.

<sysname>display snmp-agent trap feature-name mid_am all
------------------------------------------------------------------------------
Feature name: MID_AM
Trap number : 2
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwUsedIPReachThreshold          on                      on
hwUsedIPReachThresholdResume    on                      on 
Table 1 Description of the display snmp-agent trap feature-name mid_am all command output

Item

Description

Feature name

Name of the module that the trap belongs to.

Trap number

Number of traps.

Trap name

Names of the traps related to the AM module, including:

  • hwUsedIPReachThreshold: When the number of used IP addresses in an IP address pool exceeds the upper trap threshold, the device sends a Huawei proprietary trap.
  • hwUsedIPReachThresholdResume: When the number of used IP addresses in an IP address pool falls below the lower trap threshold, the device sends a Huawei proprietary trap.

Default switch status

Default status of the trap function:
  • on: The trap function is enabled by default.

  • off: The trap function is disabled by default.

Current switch status

Status of the trap function:

  • on: The trap function is enabled.

  • off: The trap function is disabled.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >