Huawei NetEngine5000E Configuration Manual page 119

Core router
Table of Contents

Advertisement

HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
1.
2.
3.
4.
Data Preparation
To complete the configuration, you need the following data:
l
Procedure
Step 1 Configure a routing protocol and an IP address for the router to make the router and log host
reachable. (The configuration details are not provided here.)
Step 2 Enable the information center.
<HUAWEI> system-view
[~HUAWEI] info-center enable
Step 3 Configure logs to be output to a specified log host.
# Specify Server 1 as the log host, and Server 2 as the backup log host.
[~HUAWEI] info-center loghost 10.1.1.1
[~HUAWEI] info-center loghost 10.1.1.2
Step 4 Specify a source interface for sending logs to the log host.
# Assign an IP address to Loopback 0 and specify Loopback 0 as the source interface for sending
logs to a log host.
[~HUAWEI] interface loopback 0
[~HUAWEI-loopback0] ip address 1.1.1.1 255.255.255.255
[~HUAWEI-loopback0] quit
[~HUAWEI] info-center loghost source loopback 0
Step 5 Run the commit command to commit the configuration.
Step 6 Configure the log host.
The log host is a host running the UNIX or LINUX operating system or a log software.
l If the host runs the UNIX or LINUX operating system, enable Syslog in the system to record
Issue 01 (2011-10-15)
Enable the information center.
Configure logs to be output to a specified log host.
Specify a source interface for sending logs to the log host.
Configure the log host.
IP address of a log host
and collect log information.
The following part uses a host running the UNIX operating system as an example.
– Create a log file. Run the touch loghost.info command under /var/log to create a file
loghost.info, which is used to store information about the router.
– Edit the configuration file. Enter the information "loghost.info /var/log/router.log" in the
syslog.conf file in the /etc path. The information indicates that the log host is named
loghost, and the log information marked "info" is all recorded to the loghost.log file in
the /var/log path.
– Configure the syslog file in the /etc/sysconfig path. Change syslogd_options="-m o" to
syslogd_option="-1 -m o" to allow the system to record the log information on a remote
device.
– Run the service syslog restart command to enable Syslog.
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
4 Log Management
111

Advertisement

Table of Contents
loading

Table of Contents