Operation Manual – Information Center
H3C S3610&S5510 Series Ethernet Switches
Chapter 1 Information Center Configuration
1-16
Caution:
z
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.
z
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 and IP.
[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
2)
Configuring the log host
The following configurations were performed on SunOS 4.0 which has similar
configurations to the Unix operating systems implemented by other vendors.
Step 1: issue the following commands as a root user.
# mkdir /var/log/MyDevice
# touch /var/log/MyDevice/information
Step 2: Edit the file /etc/syslog.conf as a root user and add the following selector/action
pair.
# MyDevice configuration messages
local4.info /var/log/MyDevice/information
Note:
Be aware of the following issues while editing the /etc/syslog.conf file:
z
Comments must be on a separate line and must begin with the # sign.
z
The selector/action pair must be separated with a tab key, rather than a space.
z
No redundant spaces are allowed in the file name.
z
The device name and the accepted severity of log information specified by the
/etc/syslog.conf file must be identical to those configured on the device using the
info
-
center loghost
or
info-center source
command; otherwise the log
information may not be output properly to the log host.
Step three: after the log file information has been created and the configuration file
/etc/syslog.conf has been modified, ensure that the configuration file /etc/syslog.conf is
reread: