< Home

display snmp-agent trap feature-name stack all

Function

The display snmp-agent trap feature-name stack all command displays the status of all stack traps.

Format

display snmp-agent trap feature-name stack all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can use this command to check the status of all stack traps. These traps can be enabled or disabled using the snmp-agent trap enable feature-name command.

Example

# Display the status of all stack traps.

<HUAWEI> display snmp-agent trap feature-name stack all
------------------------------------------------------------------------------                                                      
Feature name: stack                                                                                                                 
Trap number : 22                                                                                                                    
------------------------------------------------------------------------------                                                      
Trap name                       Default switch status   Current switch status                                                       
hwStackLinkUp                   on                      on                                                                          
hwStackLinkDown                 on                      on                                                                          
hwStackStandbyChange            on                      on                                                                          
hwStackSwitchOver               on                      on                                                                          
hwStackSystemRestart            on                      on                                                                          
hwStackStackMemberAdd           on                      on                                                                          
hwStackStackMemberLeave         on                      on                                                                          
hwStackStackMacChange           on                      on                                                                          
hwStackLogicStackPortLinkErr    on                      on                                                                          
hwStackPhyStackPortLinkErr      on                      on                                                                          
hwPhyStackPortIsDown            on                      on                                                                          
hwPhyStackPortIsUp              on                      on                                                                          
hwStackPortConfigureFailed      on                      on                                                                          
hwStackMemberExceedSpec         on                      on                                                                          
hwPhyStackPortErrorDown         on                      on                                                                          
hwPhyStackPortErrorDownRecover  on                      on                                                                          
hwPhyStackVlanConflict          on                      on                                                                          
hwStackPortErrorDown            on                      on                                                                          
hwStackPortErrorDownRecovery    on                      on                                                                          
hwStackSetUpFailure             on                      on                                                                          
hwStackAutoConfigFailed         on                      on                                                                          
hwStackPortLinkErr              on                      on             
Table 1 Description of the display snmp-agent trap feature-name stack all command output

Item

Description

Feature name

Name of the feature for which the traps are defined.

Trap number

Number of traps.

Trap name

Name of a trap:
  • hwStackLinkUp: A stack port was Up.
  • hwStackLinkDown: A stack port was Down.
  • hwStackStandbyChange: A slave switch was elected as the standby switch.
  • hwStackSwitchOver: The standby switch became the master switch.
  • hwStackSystemRestart: A stack restarted, and the original master switch was no longer the master after master preemption.
  • hwStackStackMemberAdd: A new member switch joined the stack.
  • hwStackStackMemberLeave: A member switch left the stack.
  • hwStackStackMacChange: The stack MAC address changed.
  • hwStackLogicStackPortLinkErr: A logical stack port was incorrectly connected.
  • hwStackPhyStackPortLinkErr: A physical member port was incorrectly connected.
  • hwPhyStackPortIsDown: The physical member port was Down.
  • hwPhyStackPortIsUp: The physical member port was Up.
  • hwStackPortConfigureFailed: The stack port configuration was incorrect.
  • hwStackMemberExceedSpec: The number of member switches reached the maximum value.
  • hwPhyStackPortErrorDown: An Error-down event occurred on a physical member port that was added to a logical stack port.
  • hwPhyStackPortErrorDownRecover: The physical member port that was added to a logical stack port recovered from the Error-down state.
  • hwPhyStackVlanConflict: The service VLAN conflicted with the stack reserved VLAN.
  • hwStackPortErrorDown: The stack port entered the Error-down state.
  • hwStackPortErrorDownRecovery: The stack port recovered from the Error-down state.
  • hwStackSetUpFailure: The stack failed to be set up.
  • hwStackAutoConfigFailed: After a dedicated stack cable was connected, the interface did not automatically become a stack port.
  • hwStackPortLinkErr: Service ports are corrected with stack cables incorrectly.

Default switch status

Default status of a trap:

  • on: The trap is enabled by default.
  • off: The trap is disabled by default.

Current switch status

Current status of a trap:

  • on: The trap is enabled.
  • off: The trap is disabled.

A trap can be enabled or disabled using the snmp-agent trap enable feature-name command.

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