McDATA® 4Gb SAN Switch for HP p-Class BladeSystem Command Line Interface Guide (AA-RWEJA-TE, November 2006)

36
Back up and restore a switch configuration
Backing up and restoring a configuration is useful to protect your work or for use as a template in
configuring other switches. Backing up and restoring the switch configuration involves the following:
Creating the backup file, page 36
Downloading the configuration file, page 36
Restoring the configuration file, page 36
Creating the backup file
The Config Backup command creates a file on the switch, named configdata. This file can be used
to restore a switch configuration only from the command line interface; it cannot be used to restore a switch
using McDATA Web Server or Element Manager.
McDATA4GbSAN #> config backup
The configdata file contains the following switch configuration information:
All named switch configurations including port, switch, port threshold alarm, and zoning configurations
components.
All SNMP and network information defined with the Set Setup command.
The zoning database includes all zone sets, zones, and aliases.
The security database except the group primary and secondary secrets.
See the ”Config command” on page 100.
Downloading the configuration file
You use FTP to download the configdata file to your workstation for safe keeping and to upload the file
back to the switch for the restore function. To download the configdata file, open an FTP session on the
switch and login with the account name images and password images. Transfer the file in binary mode
with the Get command, as shown in the following example:
>ftp ip_address
user:images
password: images
ftp>bin
ftp>get configdata
xxxxx bytes sent in xx secs.
ftp>quit
You should rename the configdata file on your workstation with the switch name and date, for example,
config_switch_169_10112003.
Restoring the configuration file
The restore operation begins with FTP to upload the configuration file from the workstation to the switch,
then finishes with a Telnet session and the Config Restore command. To upload the configuration file,
config_switch_169_10112003 in this case, open and FTP session with account name images and
password images. Transfer the file in binary mode with the Put command as shown in the following
example:
ftp ip_address
user:images
password: images
ftp> bin
ftp> put config_switch_169_10112003 configdata
Local file config_switch_169_10112003
Remote file configdata
ftp>quit