Displaying And Maintaining The Spanning Tree - H3C S7500X Series Configuration Manual

Comware 7 layer 2 - lan switching
Hide thumbs Also See for S7500X Series:
Table of Contents

Advertisement

In STP, MSTP, or RSTP mode, the snmp-agent trap enable stp command enables SNMP
notifications for new-root election events.
In PVST mode, the snmp-agent trap enable stp enables SNMP notifications for spanning tree
topology changes.
To enable SNMP notifications for new-root election and topology change events:
Step
Enter system view.
1.
Enable SNMP notifications
2.
for new-root election events.
Enable SNMP notifications
3.
for spanning tree topology
changes.

Displaying and maintaining the spanning tree

Execute display commands in any view and reset command in user view.
Task
Display information about ports blocked by spanning
tree protection features.
Display BPDU statistics on ports.
Display information about ports shut down by spanning
tree protection features.
(In standalone mode.) Display the port role calculation
history for the specified MSTI or all MSTIs.
(In IRF mode.) Display the port role calculation history
for the specified MSTI or all MSTIs.
(In standalone mode.) Display the incoming and
outgoing TC/TCN BPDU statistics by all ports in the
specified MSTI or all MSTIs.
(In IRF mode.) Display the incoming and outgoing
TC/TCN BPDU statistics by all ports in the specified
MSTI or all MSTIs.
(In standalone mode.) Display the spanning tree status
and statistics.
(In IRF mode.) Display the spanning tree status and
statistics.
Command
system-view
In STP, MSTP, or RSTP mode,
execute either of the following
commands:
snmp-agent trap enable
stp new-root
snmp-agent trap enable
stp
In PVST mode, execute either of
the following commands:
snmp-agent trap enable
stp tc
snmp-agent trap enable
stp
Command
display stp abnormal-port
display stp bpdu-statistics [ interface
interface-type interface-number [ instance
instance-list ] ]
display stp down-port
display stp [ instance instance-list | vlan
vlan-id-list ] history [ slot slot-number ]
display stp [ instance instance-list | vlan
vlan-id-list ] history [ chassis chassis-number
slot slot-number ]
display stp [ instance instance-list | vlan
vlan-id-list ] tc [ slot slot-number ]
display stp [ instance instance-list | vlan
vlan-id-list ] tc [ chassis chassis-number slot
slot-number ]
display stp [ instance instance-list | vlan
vlan-id-list ] [ interface interface-list | slot
slot-number ] [ brief ]
display stp [ instance instance-list | vlan
vlan-id-list ] [ interface interface-list | chassis
53
Remarks
N/A
The default settings are as
follows:
SNMP notifications are
disabled for new-root
election events.
In MSTP mode, SNMP
notifications are enabled in
MSTI 0 and disabled in other
MSTIs for spanning tree
topology changes.
In PVST mode, SNMP
notifications are disabled for
spanning tree topology
changes in all VLANs.

Advertisement

Table of Contents
loading

Table of Contents