Management and Configuration Guide K/KA/KB.15.15

Copies and executes the named text file from a USB flash drive and executes the
ACL commands in the file.
A text file containing ACL commands and stored in the USB flash
drive
filename.txt
The type of workstation used to create the text file.unix | pc
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 USB flash drive.
Using a PC workstation, you then execute the following from the CLI to upload the
file to the switch and implement the ACL commands it contains:
HP Switch(config)# copy usb command-file vlan10_in.txt pc
The switch displays this message:
Running configuration may change, do you want to continue
[y/n]?
To continue with the upload, press the [Y] key. To abort the upload, press the [N]
key. Note that if the switch detects an illegal (non-ACL) command in the file, it
bypasses the illegal command, displays a notice (as in the tftp example shown in
Figure 127 (page 283)), and continues to implement the remaining ACL commands
in the file.
Copying diagnostic data to a remote host, USB device, PC, or UNIX
workstation
Copying command output to a destination device
Syntax
copy command-output <cli-command> tftp ip-address
filepath-filename [oobm]
copy command-output <cli-command> usb <filename>
copy command-output <cli-command> xmodem
These commands direct the displayed output of a CLI command to a remote host,
attached USB device, or to a serially connected PC or UNIX workstation.
For switches that have a separate OOBM port, the oobm parameter specifies that
the transfer is through the OOBM interface. If this parameter is not specified, the
transfer is through the data interface. The oobm parameter is not available on
switches that do not have a separate OOBM port.
284 File transfers