89
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Disable the device to
reactivate edge ports shut
down by BPDU guard.
stp port shutdown permanent
By default, the device reactivates
the shutdown edge ports after a
port status detection interval.
Enabling SNMP notifications for PVST topology
changes
This feature is available on the HPE 3100 v2 EI switches.
This feature enables the device to generate logs and report PVST topology changes to SNMP when
the device detects topology changes or receives a TCN BPDU. For the event notifications to be sent
correctly, you must also configure SNMP as described in
Network Management and Monitoring
Configuration Guide
.
To enable SNMP notifications for PVST topology changes:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable SNMP notifications
for PVST topology changes.
snmp-agent trap enable stp
[
tc
]
By default, SNMP notifications
are disabled for PVST topology
changes in all VLANs.
Displaying and maintaining the spanning tree
Task Command
Remarks
Display information about ports blocked
by spanning tree protection functions.
display stp abnormal-port
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display BPDU statistics on ports.
display stp bpdu-statistics
[
interface
interface-type interface-number
[
instance instance-id
] ] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display information about ports shut
down by spanning tree protection
functions.
display stp down-port
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the historical information of port
role calculation for the specified MSTI or
all MSTIs.
display stp
[
instance instance-id
|
vlan
vlan-id
]
history
[
slot
slot-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the statistics of TC/TCN BPDUs
sent and received by all ports in the
specified MSTI or all MSTIs.
display stp
[
instance
instance-id
|
vlan
vlan-id
]
tc
[
slot
slot-number
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the spanning tree status and
statistics.
display stp
[
instance instance-id
|
vlan
vlan-id
]
[
interface interface-list
|
slot
slot-number
]
[
brief
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view