-
Overview of Brocade switches
-
Monitoring and Configuration
-
Hardware components & Architecture
-
Installation and Configuration
Here’s how you go about Backing up and Restoring Brocade Switch Configuration, one step at a time.
- Log in to the switch:
- Use SSH or the console to access the switch:
- ssh admin@<switch-IP>
- Use SSH or the console to access the switch:
- Backup the configuration:
- Use the configupload command to upload the config to an FTP server:
- configupload
- Select the protocol: Pick FTP/SFTP/SCP.
- Provide the FTP/SFTP/SCP server details:
- Host IP
- Path (the folder where the config file will be saved)
- Username and Password
- Examples
- To upload the switch configuration interactively from a switch that is not enabled for Virtual Fabrics:
-
- switch:admin> configupload
- Protocol (scp, ftp, sftp, local) [ftp]: sftp
- Server Name or IP Address [host]: xxx.xx.xxx.xxx
- User Name [user]: user
- File Name [<home dir>/config.txt]: /remote_dir/file_name.txt
- Section (all|chassis|switch [all]):
- Password: ******
- configUpload complete: All config parameters are uploaded
-
- To upload the switch configuration interactively from a switch that is not enabled for Virtual Fabrics:
- Use the configupload command to upload the config to an FTP server:
- Verify backup:
- Confirm that the config file is successfully uploaded to your FTP server.
- Ensure minimal activity:
- Since restore is disruptive, schedule this during a maintenance window.
- Restore using configdownload:
- configdownload
- Protocol: FTP/SFTP/SCP
- Server details: IP, path, and credentials
- Confirm overwrite when prompted
- Examples:
- To download the switch configuration file interactively to the current logical switch from a local directory (no chassis permissions):
-
- switch:admin> configdownload
- Protocol (scp, ftp, sftp, local) [ftp]: sftp
- Server Name or IP Address [host]: xxx.xxx.xxx.xxx
- User Name [user]: admin
- Path/Filename [<home dir>/config.txt]:/remote_dir/file_name.txt
- Section (all|chassis|FID# [all]):
- *** CAUTION ***
- This command is used to download a backed-up configuration
- for a specific switch. If using a file from a different
- switch, this file’s configuration settings will override
- any current switch settings. Downloading a configuration
- file, which was uploaded from a different type of switch,
- may cause the switch to fail.
- A switch reboot is required for the changes to take effect.
- Please make sure all the switches are disabled by
- using chassisdisable command. Downloading configuration
- to an online switch may result in some configuration not
- being downloaded to that switch.
- configDownload operation may take several minutes
- to complete for large files.
- Do you want to continue [y/n]: y
- Password: *******
- Activating configDownload: Switch is disabled
- configDownload complete: All config parameters are downloaded
-
- To download the switch configuration file interactively to the current logical switch from a local directory (no chassis permissions):
- configdownload
- Reboot the switch if needed:
Some configurations might require a switch reboot:
- To reboot a standalone switch with a single CP:
-
-
-
- switch:admin> reboot
- Warning: This command would cause the switch to reboot
- and result in traffic disruption.
- Are you sure you want to reboot the switch [y/n]? y
- Rebooting!…….
- The system is going down for reboot NOW !!
-
-
- To reboot a CP when HA is enabled:
-
-
-
- switch:admin> reboot
- Warning: This command is being run on a control processor (CP)
- based system and will cause the active CP to reboot.
- Are you sure you want to reboot the active CP [y/n]? y
- Rebooting!……
- The system is going down for reboot NOW !!
-
-
- To reboot a CP when haFailoveris disabled:
-
-
-
- switch:admin> reboot
- This command is being run on a control processor (CP)
- based system. Because HA is disabled, it will cause both
- active CP and the standby CP to reboot. After reboot, the
- HA will be enabled.
- Do you want to continue [y/n] y
- Rebooting! …….
- The system is going down for reboot NOW !!
-
-
- To perform Ha reboot in the switch-based systems:
-
-
-
- switch:admin> hareboot
- HA Rebooting …
-
-
- To perform Ha reboot in the chassis-based systems:
-
-
-
- switch:admin> hareboot
- Restarting system with command ‘Machine Rebooting
-
-
- Backup is non-disruptive, so the switch carries on working normally while it runs.
- Restore is disruptive, and you may see a short outage.
- Keep your backups off the switch: configupload can save a copy locally on the chassis (
local) or to a USB stick, but that copy is lost if the switch itself dies, so always send one to an FTP/SFTP/SCP server too. - Before any firmware upgrade, check that your backups are complete and usable.
Interview questions
Click any question to open it. They’re written the way an interviewer would actually ask them, and under each one you’ll find why they ask it and one way you could answer in your own words.
Fresher level
1. How would you back up the configuration of a Brocade switch?
Why they ask this: Taking backups is a routine duty, and they want to know you can do one on your own and know where the file ends up.
How you might answer: I’d SSH in and run configupload. It asks for the protocol first, and I’d choose SFTP or SCP, then the server IP, my user name, the file path and the password. When it reports the upload is complete, I go and check the file is on the server and that its name clearly shows the switch name and the date.
2. Which is risky, taking a backup or restoring one? Why?
Why they ask this: Safe work depends on knowing which actions can touch live traffic, so they want to see you understand that.
How you might answer: A backup with configupload is safe, because it only reads the settings and copies them out, so traffic isn’t touched. A restore with configdownload is disruptive. The switch is disabled while it runs and may need a reboot afterwards, so I’d only do it in an approved maintenance slot.
2–5 years experience
3. A switch was replaced after a hardware failure. How would you get the old configuration onto the new one?
Why they ask this: They want a real recovery process, and they want to see you know the warnings about putting the right file on the right switch type.
How you might answer: I’d take the latest configupload file from the failed switch and make sure it came from the same switch model. On the new switch I’d set the IP, match the firmware version using firmwareshow, disable the switch and run configdownload. After the reboot, and before it goes into the fabric, I’d compare cfgshow and switchshow with the old outputs I’d saved. I never load a file from a different switch type, because that can make the switch fail.
4. Your manager asks for proof that all SAN switch configs are backed up. What would you show?
Why they ask this: It checks whether you think about verifying backups as well as running them.
How you might answer: I’d show the backup folder on the SFTP server, with a dated configupload file for every switch and when each one was last taken, and I’d open one or two of them to prove they’re complete and not empty. If a script runs the backups, I’d show its logs and failure alerts as well, because a backup nobody checks might not be there on the day you need it.
Senior level
5. How would you set up a config backup policy for a SAN with 40 switches across two sites?
Why they ask this: They’re listening for automation, retention, security and testing at scale.
How you might answer: I’d schedule automatic configupload runs to a secure SFTP or SCP server at the other site, at least daily and always before and after every change, with files named by switch and date and kept for an agreed period. I’d stay away from plain FTP, since it sends passwords in clear text. Once or twice a year I’d test a restore on a lab or spare switch, so we know the process works before we need it for real.
6. Before a firmware upgrade on a director, what backup and rollback steps would you insist on?
Why they ask this: They want to see change control discipline and that you know CP-based systems behave differently when they reboot.
How you might answer: I’d want a fresh configupload and a supportsave, plus saved outputs of switchshow, cfgshow and firmwareshow, and I’d check both CPs are in sync so a failover during the upgrade goes cleanly. The rollback plan has to say which firmware we’d go back to and how we’d restore the config if it came to that. And we’d upgrade one fabric at a time, so hosts always have a healthy path.
Further reading: Backing up and Restoring Brocade Switch Configuration
If you’d like more depth on Brocade switch configuration, the official reference is here: Broadcom: Brocade Fibre Channel Networking. You can also work through the full Brocade FC (Fibre Channel) Switches course on SaatVedha one step at a time.
Try it yourself: the Command Builder will write the configupload command for you once you fill in your SCP server, user and folder, and then you can copy the result.
