Management and Configuration Guide K/KA/KB.15.15

Copying a configuration file from a USB device
To use this method, the switch must be connected via the USB port to a USB flash drive on which
is stored the configuration file you want to copy. To execute the command, you will need to know
the name of the file to copy.
Syntax
copy usb startup-config filename
Copies a configuration file from a USB device to the startup configuration file on
the switch.
Example
To copy a configuration file from a USB device to the switch:
1. Insert a USB device into the switch's USB port.
2. Execute the following command:
HP Switch# copy usb startup-config HP Switch-config
where HP Switch-config is the name of the file to copy.
3. At the prompt, press [Enter] to reboot the switch and implement the newly
downloaded software.
Transferring ACL command files
Uploading an ACL command file from a TFTP server
Syntax
copy tftp command-file ip-addr filename.txt unix | pc [oobm]
Copies and executes the named text file from the specified TFTP server address and
executes the ACL commands in the file.
The IP address of a TFTP server available to the switchip-addr
A text file containing ACL commands and stored in the TFTP directory
of the server identified by ip-addr
filename.txt
The type of workstation used for serial, Telnet, or SSH access to the
switch CLI
[ unix | pc ]
For switches that have a separate out-of-band management port,
specifies that the transfer will be through the out-of-band management
interface. (Default is transfer through the data interface.)
[oobm]
Depending on the ACL commands used, this action does one of the following in
the running-config file:
Creates a new ACL.
Replaces an existing ACL.
Adds to an existing ACL.
Example
Suppose you:
1. Created an ACL command file named vlan10_in.txt to update an existing
ACL.
2. Copied the file to a TFTP server at 18.38.124.16.
282 File transfers