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?
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.
I wrote a simple expect script to automate this for me nightly:
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):
Throw it in a for loop if you have multiple switches you want to backup, etc.
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.