cancel
Showing results for 
Search instead for 
Did you mean: 

How to filter 'show log' to only show STP messages

How to filter 'show log' to only show STP messages

Boopathy_Chandr
New Contributor II
- - - - - Challenge from my BOSS - - -

Can any one help me out in this...? If i put " SHOW LOG"- command, I want to see only STP error logs ?? So , What i have to do for that ???
9 REPLIES 9

StephenW
Extreme Employee
STP doesn't log that much by default. Check to see if your log counters are going up, and you can add more logs to your filter. Anything with debug in front will need the command "enable log debug-mode" for it to show in the logs as Henrique mentioned.

# show log counters stp occurred Componen SubComponent Condition Severity Occurred I Ntfd -------- ------------ --------------------- ------------- -------- - ---- STP DomainEnable Warning 1 Y 1 STP EnterSetPortVPSTState Debug-Verbose 6184 N 0 STP FDBFlush Debug-Summary 1 N 0 STP FlushReason Info 1386 N 0 STP NetLoginClntUnAuth Info 1455 N 0 STP SendClntTopoChgMsg Debug-Summary 15 N 0 STP Warning Info 1 N 0 STP InBPDU Dump Debug-Data 3018512 N 0 STP InBPDU Trace Debug-Verbose 9055536 N 0 STP OutBPDU Dump Debug-Data 15268664 N 0 STP OutBPDU Trace Debug-Verbose 15268664 N 0

StephenW
Extreme Employee
No problem. Let is know if you completed your Boss Challenge.

Thanks a lot Mr.Henrique..!!!

Hi Boopathy,

The procedure described by Stephen should work.

create log filter stp_logs
configure log filter "stp_logs" add events STP
configure log target memory-buffer filter "stp_logs"

Please check the output for show log configuration.

That should be similar to:

Log Target : memory-buffer
Enabled : yes
Filter Name : stp_logs
Match regex : Any
Severity : Debug-Data (through Critical)
Format : MM/DD/YYYY HH:MM:SS.hh
Buffer size : 1000 messagesIf you want to see STP debug messages, you can use enable log debug-mode. However, this command should be enabled only when advanced diagnostics is required (during troubleshooting only) due to a possible performance degradation.

GTM-P2G8KFN