cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1380
Views
0
Helpful
1
Replies

script to ssh into router/switch to shut port

csross
Level 1
Level 1

Does anyone have a script that can automatically ssh or telnet into a router or switch and shut a port?

1 Reply 1

Hello,

have a look at the SSH script below...

I have not tested this, it might require a little bit of tweaking...

This script is used to issue config commands to a cisco device using either telnet or SSHv1.

http://www.cpan.org/authors/id/R/RG/RGRAVES/CCS/CCS_sub_SSH.pl

HTH,

GP