2)
Use the
dir
command on the console terminal to view the files contained in the current file
system, and the available space of the storage device. For details, refer to step 2 in “
Updating
and Backing Up an Application Using TFTP at the CLI
” on page 5-19.
3)
Start FTP server on the PC and set the path where the application file is stored, the FTP
username, and the password. In the example, the FTP username is
guest
and the password is
123456
.
4)
Log into the FTP server.
<HP>ftp 192.168.80.200
Trying 192.168.80.200 ...
Press CTRL+K to abort
Connected to 192.168.80.200.
220 HP 3CDaemon FTP Server Version 2.0
User(192.168.80.200:(none)):guest
331 User name ok, need password
Password:
230 User logged in
[ftp]
After you log into the server, you can update and backup an application file at the CLI.
Table 5-9
Description on the information displayed when the FTP client logs in to the
FTP server
Display information
Description
ftp 192.168.80.200
Log into the FTP server, and enter FTP client view.
User(192.168.80.200:(none))
Input the username configured on the FTP server.
331 User name ok, need password
The user name is correct. Input the password.
230 User logged in
You have logged into the FTP server successfully.
5)
Update an application file.
Using FTP, you can download an application file from the server to the router, and overwrite the
original main application file to implement the application update. The updated application file
takes effect when the router reboots.
# Download file
main.bin
from the PC to the router, and save it as
main.bin
.
[ftp] get main.bin main.bin
cfa0:/main.bin has been existing. Overwrite it? [Y/N]:y
227 Entering passive mode (192,168,80,200,4,206)
125 Using existing data connection
226 Closing data connection; File transfer successful.
FTP: 11673608 byte(s) received in 120.735 second(s), 96.00K byte(s)/sec
When you download an application file, if the file name already exists on the router, the system
prompts whether to overwrite the file on the router. You need to choose
Y
or
N
for confirmation.
For details about the
get
command, refer to
HP SR6600 Routers User Manual
.
You can update a configuration file in the way you update an application file. A configuration file
can be modified by a text editor. You can modify a configuration file and then download the
modified configuration file to the router, and the modification takes effect after the router
reboots.
6)
Back up an application file.
Using FTP, you can back up an application file by uploading it to the server.