Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a way to back up my Brocade FC switch configs (including zoning!). Does anyone have commands or automated methods that they use for this?

share|improve this question
up vote 2 down vote accepted

You'll want to telnet/ssh into the switch, and use the "configupload" command. The switch will then need to be supplied the IP/hostname to upload to, the username and password, and the method of transport. FTP and RSH are both supported in most switches.

share|improve this answer

I wrote a simple expect script to automate this for me nightly:

#!/usr/bin/expect -f
spawn ssh admin@$argv 
expect "password:"
send "mypassword\r"
expect "admin>"
send "configupload -all -ftp IPADDRESS,ftpuser,$argv.cfg,ftpuserpassword\r"
expect "admin>"
send "exit\r"

If you use a different user other than admin, make sure to change those expect "admin>" lines likely to your username used.

Then you run it as (if I named the expect script as brocade_backup):

/path/to/script/brocade_backup switchhostname

Throw it in a for loop if you have multiple switches you want to backup, etc.

for SWITCH in host1 host2 host3; do
    /path/to/script/brocade_backup $SWITCH

Make sure all the ssh keys are already confirmed in your known_hosts file before you run it or the script will error with y's scrolling across your screen.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.