Tcl script to disable all inactive interfaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 05:23 AM
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!
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2022 06:33 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2022 04:41 AM
Hello,
@Joe Clarke has a really nice TCL script. Have a look at the thread below:
