Good Day Everyone,
In my organisation we are going to disable any non-trunk Ethernet port that has been inactive for over 14 days. Now, this job has fallen to me and it appears that there are close to 500 switches I'll need to sort through.
There is an EEM policy getting around the web that apparently achieves this (I've modified to not shut trunk ports) but I believe it needs to be running on the switch for at least the period of time defined before it can work, so if I apply it today I still have to wait 14 days for it to work.
What I would like to know, is if I can use NeDi to do bulk shut of interfaces. I found out quite by accident that I can shut an interface by clicking on the interface symbol in the interfaces list. If I could somehow get this to work on a defined set of interfaces that would be awesome, rather than 1 by 1.
I tried sorting in interfaces:
Interfaces Type = 6 (ethernet)
Status = 1 (operational down)
PVID = 0 (This should hopefully not include trunk ports?)
***Last Change > 14 days?
(I can't figure out what to put in to filter by last change > 14 days.)
Then once I have the list, any idea if it's possible for NeDi to do bulk shut of all those interfaces?
Also open to any other ideas!
We have Ansible in our environment but I have limited experience with it, though I feel I could use it to query switches and maybe the 'Last in' time per interface. Any Ansible experts here?