HP (Hewlett-Packard) 445942-001 Switch User Manual


 
Configuration Commands
185
Saving the active switch configuration
When the copy running-global configuration {tftp|ftp} command is used, the active
configuration commands of the switch will be uploaded to the specified script configuration file on the
FTP/TFTP server. To start the switch configuration upload, at the prompt, enter:
Switch(config)# copy running-config startup-config
NOTE: The output file is formatted with line-breaks but no carriage returns. The file cannot be
viewed with editors that require carriage returns (such as Microsoft Notepad).
NOTE: If the FTP/TFTP server is running SunOS™ or the Solaris™ operating system, the specified
file must exist prior to executing the copy running-config {tftp|ftp} command and must
be writable (set with proper permission, and not locked by any application). The contents of the
specified file will be replaced with the current configuration data.
Restoring the active switch configuration
When the copy {tftp|ftp} running-config command is used, the active configuration will be
replaced with the commands found in the specified configuration file. The file can contain a full switch
configuration or a partial configuration.
To start the switch configuration download, at the prompt, enter:
Switch(config)# copy {tftp|ftp} running-config
NOTE: The switch supports three configuration files: active, backup, and factory. See the “Selecting
a configuration block” section in the “Boot Options” chapter for information on how to set which
configuration file to use upon boot up.