cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
498
Views
5
Helpful
2
Replies

Tcl script to disable all inactive interfaces

EmaT
Level 1
Level 1

Hi,

I have not learned to ‘speak’ Tcl yet, so I’m looking for a script that disable all of the interfaces that have been inactive for a specific time.

So..have anyone Tcl-fluid people seen such a script or feel like helping me out?

Thank you!

2 Replies 2

Tima_20
Level 1
Level 1

Your problem is not „speaking tcl“, but how are you going to find out the last active date?

if you know, where it is specified, it’s a simple for each loop, otherwise (and this is the only one known possibility for me) you have to document interface status periodically, probably each hour, and evaluate this data for required time period. Afterward you can use this data to disable unused interface.

But TCL running on some network device isn’t the right tool for data analysis, I would suggest to look for some external tool 

Review Cisco Networking for a $25 gift card