
File Transfers
Transferring Switch Configurations and ACL Command Files
TFTP: Copying a Configuration File to a Remote Host
Syntax:
copy <startup-config | running-config> tftp <ip-addr> <remote-file>
This command copies the switch’s startup configuration
(startup-config file) to a remote TFTP host.
For example, to upload the current startup configuration to a file named
sw5300 in the configs directory on drive “d” in a remote host having an IP
address of 10.28.227.105:
HPswitch# copy startup-config tftp 10.28.227.105
d:\configs\sw5300
TFTP: Uploading an ACL Command File from a TFTP Server
This section describes how to upload and execute a command file to the
switch for configuring or replacing an Access Control List (ACL) in the switch
configuration. Such files should contain only ACE (Access Control Entry)
commands. For an example of creating an ACL command file offline, refer to
“Working Offline To Create or Edit an ACL” in the “Access Control Lists (ACLs)
chapter of the Advanced Traffic Management Guide for your switch.
Syntax:
copy tftp command-file < ip-addr > < filename.txt > < unix | pc >
where:
< ip-addr > = The IP address of a TFTP server available
to the switch
< filename.txt > = A text file containing ACL commands
and stored in the TFTP directory of
the server identified by < ip-addr >
< unix | pc > = The type of workstation used for serial,
Telnet, or SSH access to the switch CLI
This command copies and executes the named text file from
the specified TFTP server address and executes the ACL
commands in the file. 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. (Refer to “Creating an ACL
Offline” in the “Access Control Lists (ACLs)” chapter in
the Advanced Traffic Management Guide for your switch.)
■ Adds to an existing ACL.
A-21
Comentários a estes Manuais