HPE EVA Storage
1819871 Members
2609 Online
109607 Solutions
New Discussion юеВ

Automating backup of config on a Brocade 2800?

 
Stephen Lentell
Advisor

Automating backup of config on a Brocade 2800?

I have a brocade 3800 with fabric OS 3.0.1b and I have been backing up the configuration to a file on a local unix box by using the
>configupload command...

Does anyone have any ideas on how to automate this process?

Thanks
7 REPLIES 7
Joaquin Gil de Vergara
Respected Contributor

Re: Automating backup of config on a Brocade 2800?

Why do you want to automate it?

Configuration is static, it don't change if you don't change it
Teach is the best way to learn
Stephen Lentell
Advisor

Re: Automating backup of config on a Brocade 2800?

The SAN is in its beginning phase and we add a new server every few days or so and I update the zone info.. somedays we will add a few at a time.. as the SAN grows with multi switches and servers, over the next year... I'd like to make sure that I have a nice up to date config file that I can download in no time at all.. Not that this is a big deal..The SAN is not static quite yet...I see your point, but it would be nice to not have to worry about uploading the config file everytime its updated during this time..
Joaquin Gil de Vergara
Respected Contributor

Re: Automating backup of config on a Brocade 2800?

I think that this is not possible...

Sorry
Teach is the best way to learn
Joaquin Gil de Vergara
Respected Contributor

Re: Automating backup of config on a Brocade 2800?

Perhaps...

The configuration can be upload/download by ftp or tftp

you can schedule a cron that download the config to a server.... but I don't probe it...
Teach is the best way to learn

Re: Automating backup of config on a Brocade 2800?

Hi,

I am doing this using expect. Here is a simple script that you can use to run a command on a Brocade switch from a Unix host (assuming you have not changed default admin password):

#!/opt/expect/bin/expect -f

set username admin
set prompt [lindex $argv 0]:$username>
spawn telnet [lindex $argv 0]
expect login:
send "$username\r"
expect Password:
send "password\r"
expect $prompt
send "[lrange $argv 1 $argc \r"
expect $prompt
send "exit\r"
exit
Ian Dennison_1
Honored Contributor

Re: Automating backup of config on a Brocade 2800?

I back up each side of my SAN weekly, just in case.

I use a script to generate a telnet script which I then run and remove (passwords are enclosed in it!)

echo "(sleep 2; echo admin; echo bobby1; echo 'configUpload \"53.202.171.26\",\"tempftp\",\"/operations/etc/slk04.cfg\",\"robert99\"'; sleep 5; echo logout) | telnet dcsslk04.ourplace.net" >>/tmp/leftsanscript.sh
echo >>/tmp/leftsanscript.sh

chmod 775 /tmp/leftsanscript.sh
/tmp/leftsanscript.sh
rm /tmp/leftsanscript.sh

This works a treat! Share and Enjoy! Ian Dennison
Building a dumber user
Ashwani Kashyap
Honored Contributor

Re: Automating backup of config on a Brocade 2800?

I use a product called fibre zone from EMC . Fibre zone is aset of HPUX based API calls to the brocade switch and is used to manage and configure the switch . It has a simple command line interface and you can use normal unix shell scripting to backup your zones .

This tool is really useful . you can backup your zones in a database and from database into a flat file and vice versa .

Its a really good tool and you should try it .
I am not sure if its available free but try it on http://powerlink.emc.com .