The technology blog



« Current promotional and discount codes at Godaddy | Changing the registration key in office 2007 »

Backing up SAN switch configuration

Easy AdSense by Unreal

If you are working in a Storage Area Networks, have you ever thought of saving 100’s of san switch configuration without logging in using telnet/ssh or using a web browser?

I recently came across a small tool that can help you backup your san switch configuration in no time, yes without logging in.

A simple tool which make the configuration’s backup of your SAN switches simple and easy. It actually works with Cisco, Brocade and McData switches and allows you to get the configuration of your switch by SCP or FTP. You don’t need to install or configure a SSH or a FTP server on your computer.

It is a command-line program that connect with SSH to your switch. The support of telnet connections will come soon.

It uses different components : Paramiko, pyftpdlib.

The support of the TFTP protocol doesn’t work for the moment because the library tftpy doesn’t support downloads.

It is very simple to use it. options are :

-i : IP of the switch.

-s : Type of the switch. Possible values are : cisco or brocade or mcdata

-u : User on the switch.

-p : Password of the user on the switch.

-t : Type of transfert. Possible values are : scp (by default) or ftp

-c : Type of client. Possible values are : ssh or telnet (SSH by default).

-g : Generate a RSA key for the SSH server. Possible values are : yes or no (no by default). The key will be stored in the file new_server_rsa.key. If you want to use it, please rename the new file with the name : server_rsa.key

-e : Execute a command. Save the output of the command fulfilled in a file.

-l : The IP interface on which the server will be attached

-n : The NAT IP address on which the server will be recheable

-o : The float timeout value in for SSH or Telnet commands. 5.0 seconds by default

Your configuration will be stored in a directory with the name of your switch.

Examples:

For making a backup of a cisco switch by SCP with a SSH connection :

SaveSimplyyourSAN -i 192.168.0.1 -u admin -p password -s cisco -t scp -c ssh

or more simply (SCP and SSH connection are values by default) :

SaveSimplyyourSAN -i 192.168.0.1 -u admin -p password -s cisco

For making a backup of a brocade switch by FTP with a telnet connection :

SaveSimplyyourSAN -i 192.168.0.1 -u admin -p password -s brocade -t ftp -c telnet

For making a backup of a McData switch and redirect the result in a file (works on windows):

SaveSimplyyourSAN -i 192.168.0.1 -u admin -p password -s mcdata >mcdata-backup.log 2>&1

For making a backup of a configuration of a McData switch (grab the output of the command “show all” by telnet)

SaveSimplyyourSAN -i 192.168.0.1 -u admin -p password -s mcdata -c telnet -e “show all”

Download the SAN switch configuration backup software or Save your san switch configuration

ref: You can also visit Google for more info.

Share and Enjoy:

Posted by Haresh Madnani on February 23, 2010.

Tags: , , , , , , , ,

Categories: Switch

0 Responses

Leave a Reply

« Current promotional and discount codes at Godaddy | Changing the registration key in office 2007 »




Recent Posts


Pages



Hi, my name is Haresh Madnani and I am from UK.

I have been into IT for more than 15 years. I have worked as a Unix and SAN Administrator on different platforms and SAN infrastructure. Website Desinging, Blogging, SEO is my hobby.

If you have any questions, feel free to contact me.

Share and Enjoy:

About The technology blog

more →