![Huawei NetEngine5000E Configuration Manual Download Page 117](http://html.mh-extra.com/html/huawei/netengine5000e/netengine5000e_configuration-manual_169429117.webp)
Figure 4-3
Networking diagram for saving logs to a local log file
FTP Server
RouterA
IP network
10.1.1.1/16
10.2.1.1/16
GE1/0/0
Configuration Roadmap
The configuration roadmap is as follows:
1.
Save logs to a log file.
2.
Upload the log file to the FTP server.
Data Preparation
To complete the configuration, you need the following data:
l
IP address of the FTP server
l
User name and password used on the FTP server
Procedure
Step 1
Configure a routing protocol to make the router and the FTP server reachable. (The configuration
details are not provided here.)
Step 2
Configure user name and password used on the FTP server. (The configuration details are not
provided here.)
Step 3
Save logs to a log file.
<RouterA>
save logfile
Step 4
Upload the log file to the FTP server.
# Switch to the path of the log file.
<RouterA>
cd cfcard:/logfile/
# Log in to the FTP server.
<RouterA>
ftp 10.1.1.1
Trying to connect...
Press CTRL+K to abort
Connected to the server
220 FTP service ready.
User(ftp 10.1.1.1:(none)):
huawei
331 Password required for huawei
Password:
230 User logged in.
# Upload the log file in binary mode to the FTP server.
[ftp]
binary
[ftp]
put log_17_20110504041811.log.zip
[ftp]
quit
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
4 Log Management
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
109