Information Center
Configuration
Example
Outputting Log
Information to a Unix
Log Host
Network requirements
Send log information to a Unix log host with an IP address of 1.2.0.1/16;
■
Log information with severity higher than informational will be output to the
■
log host;
The source module is ARP.
■
Network diagram
Figure 633 Network diagram for outputting log information to a Unix log host
1.1.0.1/16
Device
Configuration procedure
1 Configuring the device
# Enable information center.
<Sysname> system-view
[Sysname] info-center enable
# Specify the channel to output log information to the log host (loghost by
default, optional).
[Sysname] info-center loghost 1.2.0.1 channel loghost
# Disable the output of log, trap, and debug information of all modules to the log
host.
[Sysname]info-center source default channel loghost debug state off
log state off trap state off
c
CAUTION:
As the default system configurations for different channels vary, ensure that
■
the output of log, trap, and debug information for the specified channel
(loghost in this example) of all modules is disabled before the system
information can be output to meet the current network requirements.
Use the display channel command to display the state of a channel.
■
# Set the host with an IP address of 1.2.0.1/16 to be the log host, set the severity
to informational, and the source modules to ARP. (Note that the source modules
vary with devices.).
[Sysname] info-center loghost 1.2.0.1 facility local4
[Sysname] info-center source arp channel loghost log level informational
[Sysname] info-center source ip channel loghost log level informational
Information Center Configuration Example
1.2.0.1/16
Internet
PC
2149