
5-14
Maintaining the AC Through the TFTP Server
In the TFTP service, H3C WX5002 AC serve as TFTP clients, while the file server serves as the TFTP
server. You can enter commands on the PC to upload or download configuration files and application
programs of the AC to or from the file server.
Setting up a configuration environment
First, set up a hardware environment (for the procedure, refer to section “Upgrading an Application
Program” on page 5-12), and point the server path to the directory where the file is stored.
Figure 5-8
Network diagram for maintenance through command lines
Configure the IP addresses of the two sides on the same network. For example, the IP address of the
TFTP server is set to 192.168.0.1, and that of the AC is set to 192.168.0.2. Use the
ping
command on
the TFTP server or AC to check whether the connection is successful.
Backing up and restoring application programs and configuration files
After setting up the environment, perform the following operations on the PC:
View the files included in the current file system with the
dir
command.
<H3C>dir
Directory of flash:/
0 -rw- 14323376 Apr 03 2006 15:36:48 main.bin
1 drw- - Mar 20 2006 09:55:28 logfile
2 -rw- 909 Apr 04 2006 10:54:38 startupbak.cfg
3 -rw- 1045 Apr 04 2006 11:31:36 startup.cfg
4 -rw- 14323376 Mar 31 2006 17:50:22 backup.bin
63340 KB total (20928 KB free)
<H3C>
Use the following command to upload the startup.cfg file from the AC to the TFTP server and save it as
startup.bak.
<H3C>tftp 192.168.0.1 put startup.cfg startup.bak
File will be transferred in binary mode
Sending file to remote tftp server. Please wait... \
TFTP: 1045 bytes sent in 0 second(s).
File uploaded successfully.
Use the following command to download the startup.cfg file from the server to the AC.