Maintaining Application Program and Configuration Through Command Lines
55
Configuring environment
Step 1: Set up hardware environment (refer to “Upgrading Application Program
Through Ethernet Interface” on page 52 for details), and point the server path to
the folder where the file is put.
Figure 35
Networking diagram for maintenance under command line mode
Configure the IP addresses of the two sides to be in the same network. In this
section, the TFTP server is set to 192.168.0.1, and the Ethernet interface
connected to it (Ethernet interface 0/0 in this example; so, any interface is OK) is
set to 192.168.0.2. Both can use the
ping
command to check if the connection is
successful.
Backing up and recovering application program and configure file
After finishing environment building, perform the following operations:
View the files included in current file system with the
dir
command:
<H3C>dir
Directory of cf:/
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
configbak.cfg
3
-rw-
1045
Apr 04 2006 11:31:36
config.cfg
4
-rw-
14323376
Mar 31 2006 17:50:22
backup.bin
63340 KB total (20928 KB free)
File system type of cf: FAT32
<H3C>
Use the command as follows to backup the config.cfg file on the router to TFTP
server and save as config.bak:
<H3C>tftp 192.168.0.1 put config.cfg config.bak
File will be transferred in binary mode
Sending file to remote tftp server. Please wait... <HardReturn
TFTP:
1045 bytes sent in 0 second(s).
File uploaded successfully.
Use this command to download the config.cfg file on the server to the router:
<H3C>tftp 192.168.0.1 get config.cfg config.cfg
The file config.cfg exists. Overwrite it?[Y/N]:y
Verifying server file...
Ethernet
ROUTER
(TFTP/FTP Client)
PC
(TFTP/FTP Server)
Console
Содержание MSR 20-20
Страница 4: ...4 GET THE LATEST DOCUMENTATION AND SOFTWARE FOR YOUR H3C ROUTER ...
Страница 32: ...32 CHAPTER 3 INSTALLATION ...