I’ve just implemented this simple filter for Filtering LinkStateUp and LinkStateDown on Extreme Switches. I had an issue on an Extreme switch stack that required me to check the logs to see what had been going on. My problem is that the switch stack had filled the 1000 log buffer entries with linkstateup and linkstatedown events as users had come in to work and started up/shut down their PC’s. The simple fix here will allow filtering LinkStateUp and LinkStateDown on Extreme switches.
The below script also increases the log buffer from 1000 messages to 5000. This is great for Workstation/Edge switches, I’d recommend leaving these log messages for any Server/Core switches.
I’m talking about events that fill the log like this :
10/08/2014 09:52:19.17 Slot-2: Port 3:28 link UP at speed 1 Gbps and full-duplex 10/08/2014 09:52:16.67 Slot-2: Port 3:28 link down
Filtering LinkStateUp and LinkStateDown on Extreme Switches
The below script creates the filter, adds all events for logging, then excludes the specific events you wish to filter on. It then applies the filter to the memory buffer and sets the max messages at 5000.
create log filter ExclLinkState copy "DefaultFilter" conf log filter "ExclLinkState" add events all conf log filter "ExclLinkState" add exclude events "vlan.msgs.portLinkStateUp" conf log filter "ExclLinkState" add exclude events "vlan.msgs.portLinkStateDown" conf log target memory-buffer filter "ExclLinkState" conf log target memory-buffer number-of-messages 5000