cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2949
Views
20
Helpful
4
Replies

Automate port shutdown based on downtime??

mweaver84
Level 1
Level 1

Hey!  So currently part my tasks at my job is to shutdown ports on switches on my network that have been down for 15 days.   My team gets a spreadsheet once a week that lists of ports that have been down for 15 days and lists their Switchname, Port, Port downtime, and Description.

 

I then log into each one and manually shut down each ports and change the description to Available.... I have to assume there has to be a way to automate this right??  Seems way too manual. 

 

Is there a way to configure switches to automatically shut the port after a certain amount of down time?  Or a way I could use the spreadsheet info I currently get and run a script against that?   


If anyone has any ideas or just point me in the direction I might be able to figure this out on my own with a little research, I'm all ears!  Thanks in advance!  Would be a HUGE help.  

 

 

4 Replies 4

Hello,

 

an EEM or TCL script that scans the interfaces and then shuts the ports should work. Which parameter on the interface do you currently use to determine that the interface has been down for 15 days ?

Francesco Molino
VIP Alumni
VIP Alumni
Hi

In addition to what @Georg Pauwen said, if you're getting a speadsheet, you can automate it using a python script reading at your file and doing all the config automatically.

If the information you're getting are from a certain output in your switches, then you can go with a TCL script directly on each switch to avoid this speadsheet and shutdown automatically unused port.

Thanks
Francesco
PS: Please don't forget to rate and select as validated answer if this answered your question

Reza Sharifi
Hall of Fame
Hall of Fame

You can use switchmap to collect all information like; how long a port has been down, mac address, IP address, name, vlan, etc..

You can then use what Paul suggested to shut the unused ports.

 

https://sourceforge.net/projects/switchmap/

HTH

Review Cisco Networking products for a $25 gift card