5-21
220 FTP service ready.
User (192.168.0.2:(none)): guest // Enter the username set on the device
331 Password required for guest
Password: // Enter the password 123456
230 User logged in.
To back up main.bin from the device to the PC, use the following command:
ftp> binary // Set the transfer mode to binary mode
200 Type set to I.
ftp> lcd c:\temp // Change the local file directory
Local directory now C:\temp.
ftp> get main.bin main.bin // Back up the file from the device to the PC
200 Port command okay.
150 Opening BINARY mode data connection for /main.bin.
226 Transfer complete.
ftp: 19189956 bytes received in 22.53Seconds 851.87Kbytes/sec.
To restore the backup to the device, use the following command:
ftp> put main.bin main.bin
200 Port command okay.
150 Opening BINARY mode data connection for main.bin.
226 Transfer complete.
ftp: 19189956 bytes sent in 11.09Seconds 1727.37Kbytes/sec.
ftp> quit
221 Server closing.
Updating Web Files on the Switching Engine
If the application program is successfully upgraded and the switching engine has upgraded Web files,
the Web files are automatically upgraded after the system reboots (manual upgrade is not
recommended). During the starting process of the switching engine, the device searches files with the
suffix of
.web
in the file system. Such Web files are named
h3c-http3.1.9-000X.web
, in which X varies
with versions. If no such a file is available in the file system, the device loads it from the application
program file package. After the system is rebooted, the Web file in the file system is displayed as
follows:
<System>dir
Directory of unit1>flash:/
1 (*b) -rw- 957976 Apr 02 2000 00:44:15 h3c-http3.1.9-0001.web
2 -rw- 296 Apr 01 2000 23:56:03 config.def
3 (*) -rw- 729 Apr 01 2000 23:59:21 startup.cfg
6858 KB total (5917 KB free)
(*) -with main attribute (b) -with backup attribute
(*b) -with both main and backup attribute