07-20-2010 02:52 PM
Does anyone have an example of a configupload script using ssh without expect?
I need to modify my old script that used telnet to use ssh. I would prefer not to have to install expect. Any ideas or examples would be appreciated. Thank you.
07-20-2010 05:58 PM
You can SCP the file to flash, running config, append to running config, etc. Check it:
Taken from a NetIron manual I had on me:
07-22-2010 03:18 AM
I like to use Perl for such a task. Take a linux box and install Perl including the Perl net::ssh package. Then you can run a task to collect all your configs from all your boxes in a regular way by using the cron deamon.
If you are not a "linux guru" try to install on a Windows box Cygwin and install Perl and all needed packages within the Cygwin environment.
This works fine too.
Avoid using Perl native on Windows. I the past it was difficult to install a running ssh session within ActiveState Perl. Windows doesn't support out of the box openssh. I does not know if the ActiceState Perl support for SSH is better now. I havn't checked it since one year.
07-22-2010 07:18 AM
an FTP server is necessary for this. it is very easy to take the configupload, do u want to run the script for more than one SW
07-22-2010 07:26 AM
I want to run this from an AIX server to backup config changes as we make them. Currently have 18 Brocade switches & Directors in multiple locations.
I have a script that uses Telnet running on a HPUX server but we are migrating to the AIX server and I want to use ssh instead of telnet.
Thank you for your response.
07-22-2010 07:38 AM
Are the config changes performed by script as well or manually? If it's a manual change and the changes validated manually, then it seems like you can add a step to where you send the config via tftp from the switches to your server. Or still use SCP for upload to the switch or down to the server. That's my $0.02.