Tuesday, December 27, 2016

The MSTP Configuration on debugging stp

Function

The debugging stp command is used to enable the debugging switch of the global error or global event of MSTP, or enable the debugging switch of the RX/TX packet and event of the port. When you need to query the details of all ports or the specified port, enable the related debugging switch. After that, the system reports the related details of the ports.
The undo debugging stp command is used to disable the debugging switch of the global error or global event of MSTP, or disable the debugging switch of the RX/TX packet and event of the port. When you do not need to query the details of all ports or the specified port, disable the related debugging switch. After that, the system does not report the related details of the ports.

Format

debugging stp { global-error | global-event | all }
debugging stp [ port frameid/slotid/portid [ instance { all | startinstance [ to endinstance ] } ] ] { packet { send | receive | all } | event }
debugging stp instance startinstance event
debugging stp [ port frameid/slotid/portid ] packet { send | receive | all } number integer
undo debugging stp { global-error | global-event | all }
undo debugging stp [ port frameid/slotid/portid [ instance { all | startinstance [ to endinstance ] } ] ] { packet { send | receive | all } | event }
undo debugging stp instance startinstance event

Parameters

Parameter Description Value
global-error
Indicates the debugging switch of the global errors. It includes:
  • packet format error
  • invoke function error
-
global-event
Indicates the debugging switch of the global event. It includes:
  • RX/TX packet
  • port status/role transition
  • state machine transition
-
all In the command of debugging stp global-event | all, indicates all debugging switches (errors and events). -
port frameid/slotid/portid Indicates the subrack ID, slot ID, and port ID. Enter a slash (/) between the subrack, slot, and port IDs. When you need to set the debugging switch of the port, use this parameter. Please see Differences Between Shelves.
instance Indicates the keyword of the spanning tree instance. -
all In the commend of debugging stp port frameid/slotid/portid instance all, indicates all spanning tree instances. -
startinstance Indicates the start instance. The value 0 indicates the common and internal spanning tree (CIST) instance and the other values indicate the multiple spanning tree instance (MSTI). Numeral type. Range: 0-16.
to endinstance Indicates the end instance. When you need to set a sequence of spanning tree instances, use this parameter. Numeral type. Range: 0-16.
packet
Indicates the debugging switch of the BPDU. It includes:
  • RST (Rapid Spanning Tree) BPDU
  • MST (Multiple Spanning Tree) BPDU
  • Config BPDU
-
send Indicates the debugging switch of the TX BPDU packet. -
receive Indicates the debugging switch of the RX BPDU packet. -
event
Indicates the debugging switch of the event. It includes:
  • RX/TX packet
  • port status/role transition
  • state machine transition
-
all In the commend of debugging stp packet all, indicates the debugging switches of the RX and TX BPDU packet. -
number integer Indicates the number of printed packets. The command will stop automatically after printing all the information of the packets with indicated number. Numeral type. Range: 1-65535.

Modes

Privilege mode, OSN 7500, OSN 3500

Level

Operator level

Usage Guidelines

  • This command must be used with the terminal monitor and terminal debugging commands. The debugging information can be reported to the CLI terminal only when the functions in these two commands are enabled.
  • After the debugging switch of the global event of MSTP is enabled, you can query the related information about the RX packets and the state machine of all ports.
  • After the debugging switch of the global error of MSTP is enabled, you can query the error information about the port.
  • After the debugging switch of the RX/TX packets of the specified MSTP port is enabled, you can query the details of the RX/TX packets of the specified port, debugging by instance is not supported.
  • After the event debugging switch of the specified MSTP instance is enabled, you can query the related information about the state machine of the instance, debugging by port is not supported.

Example

To enable the debugging switch of the global event of MSTP, do as follows:
huawei#debugging stp                                                            
{ all<K>|event<K>|global-error<K>|global-event<K>|instance<K>|packet<K>|port<K> 
}:global-event
                                                                                
  Command:                                                                      
          debugging stp global-event                                            
To enable the debugging switch of the RX/TX packets of port 0/19/0, do as follows:
huawei#debugging stp                                                            
{ all<K>|event<K>|global-error<K>|global-event<K>|instance<K>|packet<K>|port<K> 
}:port                                                                          
{ frameid/slotid/portid<S><Length 5-18> }:0/19/0                                              
{ event<K>|instance<K>|packet<K> }:packet                                       
{ all<K>|receive<K>|send<K> }:all                                               
{ <cr>|number<K> }:                                                                                

  Command:                                                                      
          debugging stp port 0/19/0 packet all                                   
To disable the debugging switch of the RX/TX packets of port 0/19/0, do as follows:
huawei#undo debugging stp                                                       
{ all<K>|event<K>|global-error<K>|global-event<K>|instance<K>|packet<K>|port<K> 
}:port                                                                          
{ frameid/slotid/portid<S><Length 5-18> }:0/19/0                                              
{ event<K>|instance<K>|packet<K> }:packet                                       
{ all<K>|receive<K>|send<K> }:all                                               
                                                                                
  Command:                                                                      
          undo debugging stp port 0/19/0 packet all                              
To enable the debugging switch of RX/TX packets of port 0/19/0 , and indicate the number of packets, do as follows:
huawei#debugging stp                                                            
{ all<K>|event<K>|global-error<K>|global-event<K>|instance<K>|packet<K>|port<K> 
}:port                                                                          
{ frameid/slotid/portid<S><Length 5-18> }:0/19/0
{ event<K>|instance<K>|packet<K> }:packet                                     
{ all<K>|receive<K>|send<K> }:all                                             
{ <cr>|number<K> }:number
{ integer<U><1,65535> }:5
                                                                                
  Command:                                                                      
          debugging stp port 0/19/0 packet all number 5                   

No comments:

Post a Comment