< Home

display snmp-agent trap feature-name mstp all

Function

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

Format

display snmp-agent trap feature-name mstp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The Simple Network Management Protocol (SNMP) is a standard network management protocol widely used on TCP/IP networks. It uses a central computer (a network management station) that runs network management software to manage network elements. The management agent on the network element automatically reports traps to the network management station. Then the network administrator immediately takes measures to resolve the problem.

The display snmp-agent trap feature-name mstp all command displays whether all trap functions of the MSTP module are enabled.

Example

# Display all trap messages of the MSTP module.

<HUAWEI> display snmp-agent trap feature-name mstp all
------------------------------------------------------------------------------
Feature name: MSTP
Trap number : 24
------------------------------------------------------------------------------
Trap name                       Default switch status   Current switch status
hwMstpiPortStateForwarding      off                     off
hwMstpiPortStateDiscarding      off                     off
hwMstpiBridgeLostRootPrimary    off                     off
hwMstpiPortBpduGuarded          off                     off
hwMstpiPortRootGuarded          off                     off
hwMstpiPortLoopGuarded          off                     off
newRoot                        off                     off
topologyChange                 off                     off
hwMstpiEdgePortChanged          off                     off
hwMstpiTcGuarded                off                     off
hwMstpProNewPortStateForwarding
                                off                     off
hwMstpProNewPortStateDiscarding
                                off                     off
hwMstpProNewBridgeLostRootPrimary
                                off                     off
hwMstpProNewPortBpduGuarded     off                     off
hwMstpProNewPortRootGuarded     off                     off
hwMstpProNewPortLoopGuarded     off                     off
hwMstpProNewEdgePortChanged     off                     off
hwMstpProTcGuarded              off                     off
hwMstpProRootChanged            off                     off
hwMstpProLoopbackDetected       off                     off
hwMstpPortCountThreshold        off                     off
hwMstpPortCountThresholdResume  off                     off
hwMstpProRootLost               on                      off
hwMstpProRootResume             on                      off
Table 1 Description of the display snmp-agent trap feature-name mstp 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 MSTP module:

  • hwMstpiPortStateForwarding: indicates that the port status changes to Forwarding.

  • hwMstpiPortStateDiscarding: indicates that the port status changes to Discarding.

  • hwMstpiBridgeLostRootPrimary: indicates that the current device is no longer the root bridge.

  • hwMstpiPortBpduGuarded: indicates that the edge port enabled with the BPDU guard function can receive BPDUs.

  • hwMstpiPortRootGuarded: indicates that the port enabled with the root guard function receives BPDUs with higher priorities.

  • hwMstpiPortLoopGuarded: indicates that the port enabled with the loop guard function does not receive any BPDU in a specified period.

  • newRoot: indicates that the current device is elected as the root bridge.

  • topologyChange: indicates that the topology changes.

  • hwMstpiEdgePortChanged: indicates that the edge port that is not enabled with the BPDU guard function is no longer the edge port after receiving bridge protocol data units (BPDUs).

  • hwMstpiTcGuarded: indicates that the number of topology change (TC) packets received by the instance enabled with the TC guard function exceeds the upper limit.

  • hwMstpProNewPortStateForwarding: indicates that in the MSTP process the port status changes to Forwarding.

  • hwMstpProNewPortStateDiscarding: indicates that in the MSTP process the port status changes to Discarding.

  • hwMstpProNewBridgeLostRootPrimary: indicates that in the Multiple Spanning Tree Protocol (MSTP) process the device is no longer the root bridge.

  • hwMstpProNewPortBpduGuarded: indicates that in the MSTP process the port enabled with the BPDU guard function can receive BPDUs.

  • hwMstpProNewPortRootGuarded: indicates that in the MSTP process the port enabled with the root guard function receives BPDUs with higher priorities.

  • hwMstpProNewPortLoopGuarded: indicates that in the MSTP process the port enabled with the loop guard function does not receive any BPDU in a specified period.

  • hwMstpProNewEdgePortChanged: indicates that in the MSTP process the edge port that is not enabled with the BPDU guard function is no longer the edge port after receiving BPDUs.

  • hwMstpProTcGuarded: indicates that in the MSTP process the number of TC packets received by the instance enabled with the TC guard function exceeds the upper limit.

  • hwMstpProRootChanged: indicates that the root bridge changes.

  • hwMstpProLoopbackDetected: indicates that port detected loopback, block the port.
  • hwMstpPortCountThreshold: indicates that the number of STP interfaces that were Up on a device exceeded the upper threshold.
  • hwMstpPortCountThresholdResume: indicates that the number of STP interfaces that were Up on a device fell below the lower threshold.
  • hwMstpProRootLost: indicates that the device in an MSTP process lost its root bridge role.
  • hwMstpProRootResume: indicates that the device in an MSTP process had its root bridge role resumed.

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 mstp command.

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