I wanted to issue show command on multiple firewalls without any expensive software. I have found a script here
https://docs.google.com/document/d/1Q0TfyezOTCKZ7DF2kPBps_7LG80D3BJLrFDuOwBUZNI/edit?pli=1
This script is good and can be used as a base. I have changed it a bit. See the pic.
I should not hide the codes in pic ;-) . It is here in the future, on google code (mercurial distributed revision control):
https://code.google.com/p/ssh-capture-command/source/browse/
Here is an example how it works:
./capture_asa_command.pl 4.2.2.2 admin mysecret mypassword 3 3 "show interface" |
Posted on September 17, 2013
0