148
For more information about the port status detection timer, see device management configuration in
Fundamentals Configuration Guide.
Examples
# Disable the device from reactivating edge ports shut down by BPDU guard.
<Sysname> system-view
[Sysname] stp port shutdown permanent
stp port-log
Use stp port-log to enable outputting port state transition information.
Use
undo stp port-log to disable outputting port state transition information.
Syntax
stp port-log { all | instance instance-list | vlan vlan-id-list }
undo stp port-log { all | instance instance-list | vlan vlan-id-list }
Default
Outputting port state transition information is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
all: Specifies all MSTIs or VLANs.
instance instance-list: Specifies a space-separated list of up to 10 MSTI items. Each item
specifies an MSTI or a range of MSTIs in the form of
instance-id1 [ to instance-id2 ]. The
value for
instance-id2 must be equal to or greater than the value for instance-id1. The
value range for the
instance-id argument is 0 to 4094, and the value 0 represents the CIST.
vlan vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item
specifies a VLAN or a range of VLANs in the form of
vlan-id1 [ to vlan-id2 ]. The value for
vlan-id2 must be equal to or greater than the value for vlan-id1. The value range for the
vlan-id argument is 1 to 4094.
Examples
# In MSTP mode, enable outputting port state transition information for MSTI 2.
<Sysname> system-view
[Sysname] stp port-log instance 2
%Aug 16 00:49:41:856 2011 Sysname STP/3/STP_DISCARDING: Instance 2's port
GigabitEthernet1/0/1 has been set to discarding state.
%Aug 16 00:49:41:856 2011 Sysname STP/3/STP_FORWARDING: Instance 2's port
GigabitEthernet1/0/2 has been set to forwarding state.
The output shows that GigabitEthernet 1/0/1 in MSTI 2 transited to the discarding state and
GigabitEthernet 1/0/2 in MSTI 2 transited to the forwarding state.
# In PVST mode, enable outputting port state transition information for VLAN 1 through VLAN 4094.
<Sysname> system-view
[Sysname] stp port-log vlan 1 to 4094