Using TFTP to Download the Configuration

You can download previously saved XML formatted XOS configuration files from a TFTP host to the switch to modify the switch configuration. Do not use a text editor to view or modify your switch configuration files; modify your switch configurations directly in the CLI.

To view your current switch configuration in ASCII-format, see Uploading ASCII-Formatted Configuration Files for more information about uploading and downloading ASCII-formatted configuration files.

For more information about TFTP, see Using the Trivial File Transfer Protocol.

Note

Note

By default, if you transfer a file with a name that already exists on the system, the switch prompts you to overwrite the existing file. For more information, see the tftp get command in the Switch Engine 32.7.1 Command Reference Guide .
To download the configuration from a TFTP host to the switch, you can use either the tftp or the tftp get command:
tftp [ ip-address | host-name ] { -v vr_name } { -b block_size } [ -g | -p ] [ -l local-file { -r remote-file } | -r remote-file { -l local-file } ]
Where the options are:
  • host-name — Specifies the host name of the TFTP server
  • ip-address — Specifies the IP address of the TFTP server
  • -p — Puts the specified file from the local host and copies it to the TFTP server
  • -l local-file — Specifies the name of the configuration file that you want to save to the TFTP server
  • -r remote-file — Specifies the name of the configuration file on the TFTP server
tftp get [ ip-address | host-name] { vr vr_name } { block-size block_size } remote-file local-file} {force-overwrite}

Where the optons are:

  • get — Gets the specified file from the TFTP server and copies it to the local host
  • host-name — Is the host name of the TFTP server
  • ip-address — Is the IP address of the TFTP server
  • remote_file — Specifies the name of the configuration file that you want to retrieve from the TFTP server
  • local-file — Specifies the name of the configuration file on the switch
  • force-overwrite — Specifies the switch to automatically overwrite an existing file

If you download a configuration file and see the following message:

Error: Transfer timed out

Make sure that you entered the filename correctly, including the .cfg extension, and that you entered the correct host name or IP address for the TFTP server.

If your download is successful, the switch displays a message similar to the following:

Downloading megtest2.cfg to switch... done!

Configurations are downloaded and saved into the switch nonvolatile memory. The configuration is applied after you reboot the switch.

If the configuration currently running in the switch does not match the configuration that the switch used when it originally booted, an asterisk (*) appears before the command line prompt when using the CLI.

You can also download the current configuration in ASCII format from a TFTP server on your network to the switch. For more information, see Uploading ASCII-Formatted Configuration Files.