02-14-2018 05:14 AM - edited 03-08-2019 01:50 PM
I came across this script to find ports that have not been used for 6 weeks or more. I can get it to work for anything up to 9 weeks or more. However I'm struggling to figure out how to modify this script to show double digit weeks or more.
For example, I want to show unused ports for 16 weeks or more, but I'm not sure what to change/add.
Shows only admin down or unconnected ports that have no input/input for +6 weeks
show int | i proto.*notconnect|proto.*administratively down|Last in.* [6-9]w|Last in.*[0-9][0-9]w|[0-9]y|disabled|Last input never, output never, output hang never
Script Source:
03-01-2022 09:06 AM
11-08-2022 04:23 PM - edited 11-08-2022 04:24 PM
I created a small python script which filters down inactive port with description. Currently it is locked on 26 weeks. (Value can be changed) It is only tested with a 4500 series switch, it probably works for other series as well. More information can be found @:
and the code:
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide