Using the CLI commands described in the section beginning with TFTP: Copying a configuration file to a remote host (CLI), you can copy switch configurations to and from a switch, or copy a software image to configure or replace an ACL in the switch configuration.
|
|
NOTE: For greater security, you can perform all TFTP operations using SFTP, as described in the section Using SCP and SFTP. You can also use the |
|
|
Syntax:
This command can copy a designated config file in the switch to a TFTP server. For more information, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.
Example:
To upload the current startup configuration to a file named sw8200
in the configs directory on drive "d" in a TFTP server having an IP address of 10.28.227.105:
ProCurve# copy startup-config tftp 10.28.227.105 d:\configs\sw8200
Syntax:
This command can copy a configuration from a remote host to a designated config file in the switch. For more information, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.
For more information on flash image use, see "Using Primary and Secondary Flash Image Options" in the Basic Operation Guide for your switch.
Example:
To download a configuration file named sw8200
in the configs
directory on drive "d" in a remote host having an IP address of 10.28.227.105:
HP Switch# copy tftp startup-config 10.28.227.105 d:\configs\sw8200
Using the copy tftp
command with the show-tech
option provides the ability to copy a customized command file to the switch. When the show tech custom
command is executed, the commands in the custom file are executed instead of the hard-coded list of commands. If no custom file is found, the current hard-coded list is executed. This list contains commands to display data, such as the image stamp, running configuration, boot history, port settings, and so on.
Syntax:
Copies a customized command file to the switch (see Using the copy tftp show-tech command to upload a customized command file).
Using the copy tftp show-tech command to upload a customized command file
HP Switch(config)# copy tftp show-tech 10.10.10.3 commandfile1
Syntax:
|
|
NOTE: Exit the global config mode (if needed) before executing |
|
|
You can include show tech
commands in the custom file, with the exception of show tech custom
. For example, you can include the command show tech all
.
If no custom file is found, a message displays stating "No SHOW-TECH file found." (No custom file was uploaded with the copy tftp show-tech
command.)
To use this method, the switch must be connected via the serial port to a PC or UNIX workstation. You will need to:
Syntax:
Uses Xmodem to copy a designated configuration file from the switch to a PC or UNIX workstation. For more information, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.
Example:
To copy a configuration file to a PC serially connected to the switch:
To use this method, the switch must be connected via the serial port to a PC or UNIX workstation on which is stored the configuration file you want to copy. To complete the copying, you need to know the name of the file to copy and the drive and directory location of the file.
Syntax:
Copies a configuration file from a serially connected PC or UNIX workstation to a designated configuration file on the switch.
For more information, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.
Example:
To copy a configuration file from a PC serially connected to the switch:
-
Execute the following command:
HP Switch# copy xmodem startup-config pc Device will be rebooted, do you want to continue [y/n]? y Press 'Enter' and start XMODEM on your host...
-
Execute the terminal emulator commands to begin the file transfer.
-
When the download finishes, you must reboot the switch to implement the newly downloaded software. To do so, use one of the following commands:
Syntax:
Switches boot from the designated configuration file. For more information, see "Multiple Configuration Files" in the Basic Operation Guide for your switch.
Syntax:
(For more on these commands, see "Rebooting the Switch" in the Basic Operation Guide for your switch.)