678
Update scenario
Format of file-path
Remarks
The update file is
stored on an FTP
server.
ftp://username:password@s
erver address/filename
The
username
argument represents the FTP
login username.
The
password
argument represents the FTP
login password.
The
server address
argument represents the IP
address or host name of the FTP server.
If an FTP login username or password includes
colons (:),
at signs (@), or slashes (/), you must
replace these special characters with the
corresponding escape characters.
•
The escape character for the colon
(:)
character is %3A
or
%3a
.
•
The escape character for the at sign (@)
character is
%40
.
•
The escape character for the slash (/)
character is
%2F
or
%2f
.
The update file is
stored on a TFTP
server.
tftp://server address/filename
The
server address
argument represents the IP
address or host name of the TFTP server.
If you specify the host name, make sure the following requirements are met:
The device can resolve the IP address of the FTP or TFTP server through static or dynamic
domain name resolution.
The device and server can reach each other.
For information about DNS, see
Layer 3—IP Services Configuration Guide
.
Examples
# Manually update the APR signature database by using an APR signature file stored on a TFTP
server.
<Sysname> system-view
[Sysname] apr signature update tftp://192.168.0.1/apr-1.0.2-en.dat
# Manually update the APR signature database by using an APR signature file stored on an FTP
server.
<Sysname> system-view
[Sysname] apr signature update
ftp://user%3A123:user%40abc%[email protected]/apr-1.0.2-en.dat
# Manually update the APR signature database by using an APR signature file stored on the device,
The file is stored in directory
cfa0:/apr-1.0.23-en.dat
. In this example, the working directory is
cfa0:
.
<Sysname> system
[Sysname] apr signature update apr-1.0.23-en.dat
# Manually update the APR signature database by using an APR signature file stored on the device,
The file is stored in directory
cfa0:/dpi/apr-1.0.23-en.dat
. In this example, the working directory is
cfa0:
.
<Sysname> system
[Sysname] apr signature update dpi/apr-1.0.23-en.dat
# Manually update the APR signature database by using an APR signature file stored on the device,
The file is stored in directory
cfb0:/dpi/apr-1.0.23-en.dat
. In this example, the working directory is
cfa0:
.
<Sysname> cd cfb0:/
<Sysname> system