HP MSR Series Command Reference Manual page 146

Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

specify a URL. If you specify a directory, the device copies the specified file to the directory and saves it
with its original file name. Whether a URL is case sensitive depends on the server.
vpn-instance vpn-instance-name: Specifies the VPN instance to which the destination FTP or TFTP server
belongs. The vpn-instance-name argument is a case-sensitive string of 1 to 31 characters. If the server
belongs to the public network, do not specify this option.
source interface interface-type interface-number: Specifies the source interface used to connect to the
server. After you specify the source interface, the device uses the primary IP address of the source
interface as the source IP address for outgoing packets. If you do not specify this option, the device uses
the outgoing interface as the source interface.
Usage guidelines
In non-FIPS mode, you can use the copy command to perform the following tasks:
Copy a local file and save it locally.
Copy a local file and save it to an FTP or TFTP server.
Copy a file on an FTP or TFTP server and save it locally.
To specify a file or directory, use the following guidelines:
Location
On the device
On an FTP server
On a TFTP server
In FIPS mode, you can only use the copy command to copy a local file and save it locally.
Examples
# Copy the test.cfg file in the current folder and save it to the current folder as testbackup.cfg.
<Sysname> copy test.cfg testbackup.cfg
Copy flash:/test.cfg to flash:/testbackup.cfg?[Y/N]:y
Copying file flash:/test.cfg to flash:/testbackup.cfg...Done.
# Copy the 1.cfg file from the flash memory's test folder to the CF card. Save the copy to the testbackup
folder in the root directory with the file name 1backup.cfg.
<Sysname> copy flash:/test/1.cfg cfa0:/testbackup/1backup.cfg
Name format
Use the file name guidelines in
Fundamentals Configuration Guide.
Enter the URL in the format ftp://FTP
username[:password]@server
address[:port number]/file path[/file
name].
Enter the URL in the format
tftp://server address[:port
number]/file path[/file name].
Remarks
N/A
The username and password must be the same as
those configured on the FTP server. If the server
authenticates users only by the username, you are
not required to enter the password.
For example, to use the username 1 and password
1 and specify the startup.cfg file in the authorized
working directory on FTP server 1.1.1.1, enter
ftp://1:1@1.1.1.1/startup.cfg.
To specify an IPv6 address, enclose the IPv6
address in square brackets ([ ]), for example,
ftp://test:test@[2001::1]:21/test.cfg.
For example, to specify the startup.cfg file in the
working directory on TFTP server 1.1.1.1, enter
the URL tftp://1.1.1.1/startup.cfg.
To enter an IPv6 address, enclose the IPv6 address
in square brackets ([ ]), for example,
ftp://test:test@[2001::1]:21/test.cfg.
138

Advertisement

Table of Contents
loading

Table of Contents