
6-20
Upgrading and Backing Up an Application Using TFTP at the CLI
1) Set up a TFTP upgrading environment
z
The firewall serves as the TFTP client and the PC serves as the TFTP server.
z
For the procedures of setting up a upgrading environment, refer to “Upgrading an Application Using
TFTP on the BootWare Menu”.
z
Run the terminal emulation program on the PC, and configure the IP addresses of the client and
server to be on the same subnet. Ensure the firewall and the PC are reachable to each other. In this
example, configure the IP address of the management Ethernet port as 192.168.80.10 and that of
the PC as 192.168.80.200.
z
You can use the
ping
command to verify the connectivity.
You can upgrade applications of the device through the console port or the management Ethernet port.
2) View the files in the storage medium and its available space.
To prepare for upgrading application files, use the
dir
command on the terminal to view the files stored
in the current file system and the available space of the storage device.
<H3C>dir
Directory of cfa0:/
0 drw- - Oct 28 2000 04:09:30 logfile
1 -rw- 24802996 Oct 21 2007 17:03:26 main.bin
2 -rw- 1355 Oct 04 2007 17:22:12 startup.cfg
3 -rw- 24802996 Sep 13 2037 13:21:20 backup.bin
505480 KB total (456576 KB free)
File system type of cfa0: FAT16
Table 6-8
Output description
Field
Description
Directory of cfa0:/
Name of the existing directory
505480 KB total (456576 KB free)
Used space of the CF card (available space)
File system type of cfa0: FAT16
File system type of the CF card
3) Upgrade an application
Using TFTP, you can download an application file from the server to the firewall and overwrite the
existing main application file to implement application upgrading. The upgraded application file takes
effect when the device reboots.
# Download the application file
main.bin
from the PC to the firewall.
<H3C> tftp 192.168.80.200 get main.bin main.bin