< Home

display snmp-agent trap feature-name l2if all

Function

The display snmp-agent trap feature-name l2if all command displays all trap messages of the L2IF module.

Format

display snmp-agent trap feature-name l2if all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After the trap function of a specified feature is enabled, you can run the display snmp-agent trap feature-name l2if all command to check the status of all traps of l2if. You can use the snmp-agent trap enable feature-name l2if command to enable the trap function of l2if.

Prerequisites

SNMP has been enabled. See snmp-agent.

Example

# Display all trap messages of the L2IF module.

<HUAWEI> display snmp-agent trap feature-name l2if all
------------------------------------------------------------------------------
Feature name: L2IF
Trap number : 2
------------------------------------------------------------------------------
Trap name                           Default switch status   Current switch status
hwSlotMacLimitNumRaisingThreshold                                                                                                   
                                off                     off                                                                         
hwSlotMacLimitNumFallingThreshold                                                                                                   
                                off                     off                                                                         
Table 1 Description of the display snmp-agent trap feature-name l2if all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message of the L2IF module:
  • hwSlotMacLimitNumRaisingThreshold: A Huawei proprietary trap when the number of MAC addresses dynamically learnt through the Slot exceeds below the lower limit.
  • hwSlotMacLimitNumFallingThreshold: A Huawei proprietary trap when the number of MAC addresses dynamically learnt through the Slot falls the upper limit.

Default switch status

Status of the default trap function:

  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap function:

  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

To specify the parameter, run the snmp-agent trap enable feature-name l2if command.

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