Outputting log information to a unix log host, Network requirements, Configuration procedure – H3C Technologies H3C MSR 50 User Manual

Page 215

Advertising
background image

[Sysname] info-center source default channel console debug state off log state off trap

state off

To avoid output of unnecessary information, disable the output of log, trap, and debug information of all

modules on the specified channel (console in this example), and then configure the output rule as
needed.
# Configure an output rule to enable the ARP and IP modules to send log information that has a severity

level of at least informational to the console. (The supported source modules depend on the device

model.)

[Sysname] info-center source arp channel console log level informational state on

[Sysname] info-center source ip channel console log level informational state on

[Sysname] quit

# Enable the display of log information on the console. By default, the display of log information on the
console is enabled.

<Sysname> terminal monitor

Info: Current terminal monitor is on.

<Sysname> terminal logging

Info: Current terminal logging is on.

Now, if the ARP and IP modules generate log information, the information center automatically sends the
log information to the console.

Outputting log information to a UNIX log host

Network requirements

Configure the device to send ARP and IP log information that has a severity level of at least informational

to the UNIX log host at 1.2.0.1/16.

Figure 60 Network diagram

Configuration procedure

 

Before the configuration, make sure the device and the log host can reach each other. (Details not

shown.)

1.

Configure the device:
# Enable the information center.

<Device> system-view

[Device] info-center enable

# Specify the log host 1.2.0.1/16, use channel loghost to output log information, and specify
local4 as the logging facility. By default, log information is output to a log host through channel

loghost.

[Device] info-center loghost 1.2.0.1 channel loghost facility local4

# Disable the output of log, trap, and debug information of all modules on channel loghost.

[Device] info-center source default channel loghost debug state off log state off trap

state off

202

Advertising