cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1590
Views
0
Helpful
2
Replies

How to debug STP TCN's information to external log file

Hi,

I've got cisco nexus 6001.

When I issue show spanning-tree detail command I can see many of the interesting information.

 

 # show spanning-tree detail 

 MST0000 is executing the mstp compatible Spanning Tree protocol
  Bridge Identifier has priority 4096, sysid 0, address 002a.6a60.d101
  Configured hello time 2, fex hello time 12, max age 20, forward delay 15
  We are the root of the spanning tree
  Topology change flag not set, detected flag not set
  Number of topology changes 11558 last change occurred 0:01:48 ago
          from Ethernet1/2

Can I log all TCN changes to external log file to further investigation later?

My current setup:

# show running-config | include log
logging level spanning-tree 6
+            All activities on this system are logged.              +
logging event link-status default
logging server 10.4.0.2 5 use-vrf management facility local6
logging monitor 6

 

1 Accepted Solution

Accepted Solutions

ngkin2010
Level 7
Level 7
Hi,

Do you want the "external log file" to be stored on switch? or and remote server?

[On Switch]

# logging logfile spanning-tree-event.txt 7 [size bytes]

# dir log:

# debug spanning-tree events

# copy log:spanning-tree-event.txt bootflash:

[On Remote Syslog server]

#logging server <syslog_server> 7 use-vrf management
# debug spanning-tree events


Although debugging spanning-tree event should not cause high loading to your system, still be aware of the loading issue before enabling it.

View solution in original post

2 Replies 2

ngkin2010
Level 7
Level 7
Hi,

Do you want the "external log file" to be stored on switch? or and remote server?

[On Switch]

# logging logfile spanning-tree-event.txt 7 [size bytes]

# dir log:

# debug spanning-tree events

# copy log:spanning-tree-event.txt bootflash:

[On Remote Syslog server]

#logging server <syslog_server> 7 use-vrf management
# debug spanning-tree events


Although debugging spanning-tree event should not cause high loading to your system, still be aware of the loading issue before enabling it.

Thanks for help.

All my low end switched very wordy about various STP or other events.

But nexus is core switch in my case, so I'll take in mind your warns ))

Review Cisco Networking products for a $25 gift card