< Home

snmp-agent trap enable feature-name stack

Function

The snmp-agent trap enable feature-name stack command enables a specified stack trap or all stack traps.

The undo snmp-agent trap enable feature-name stack command disables a specified stack trap or all stack traps.

By default, all stack traps are enabled.

Format

snmp-agent trap enable feature-name stack [ trap-name trap-name ]

undo snmp-agent trap enable feature-name stack [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Specifies the name of a trap.
This parameter has enumerated values:
  • 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.
  • hwphystackportisdown: The physical member port was Down.
  • hwphystackportisup: The physical member port was Down.
  • hwphystackvlanconflict: The service VLAN conflicted with the stack reserved VLAN.
  • hwstackautoconfigfailed: After a dedicated stack cable was connected, the interface did not automatically become a stack port.
  • hwstacklinkdown: A stack port was Down.
  • hwstacklinkup: A stack port was Up.
  • hwstacklogicstackportlinkerr: A logical stack port was incorrectly connected.
  • hwstackmemberexceedspec: The number of member switches reached the maximum value.
  • hwstackphystackportlinkerr: A physical member port was incorrectly connected.
  • hwstackportconfigurefailed: The stack port configuration was incorrect.
  • 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.
  • hwstackstackmacchange: The stack MAC address changed.
  • hwstackstackmemberadd: A new member switch joined the stack.
  • hwstackstackmemberleave: A new member switch left the stack.
  • 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.
  • hwstackportlinkerr: service ports are connected with stack cables incorrectly.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, all stack traps are enabled. You can learn about stack status changes from these traps. If you disable a type of stack trap, the switch no longer sends this trap. Disabling the stack traps is not recommended.

Example

# Enable the hwstackswitchover trap.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name stack trap-name hwstackswitchover
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >