3Com WX3000 operation manual # mkdir /var/log/Switch # touch /var/log/Switch/information

Models: WX3000

1 715
Download 715 pages 21.26 Kb
Page 579
Image 579

#Configure the host whose IP address is 202.38.1.10 as the log host. Permit ARP and IP modules to output information with severity level higher than informational to the log host.

[Switch] info-center loghost 202.38.1.10 facility local4

[Switch] info-center source arp channel loghost log level informational debug state off trap

state off

[Switch] info-center source ip channel loghost log level informational debug state off trap

state off

2)Configure the log host:

The operations here are performed on SunOS 4.0. The operations on other manufacturers' Unix operation systems are similar.

Step 1: Execute the following commands as the super user (root user).

#mkdir /var/log/Switch

#touch /var/log/Switch/information

Step 2: Edit the file “/etc/syslog.conf” as the super user (root user) to add the following selector/action pairs.

#Switch configuration messages

local4.info /var/log/Switch/information

When you edit the file “/etc/syslog.conf”, note that:

zA note must start in a new line, starting with a “#” sign.

zIn each pair, a tab should be used as a separator instead of a space.

zNo space is allowed at the end of a file name.

zThe device name (facility) and received log information severity level specified in the file “/etc/syslog.conf” must be the same as those corresponding parameters configured in the commands info-center loghost and info-center source. Otherwise, log information may not be output to the log host normally.

Step 3: After the log file “information” is created and the file “/etc/syslog.conf” is modified, execute the following command to send a HUP signal to the system daemon “syslogd”, so that it can reread its configuration file “/etc/syslog.conf”.

#ps -ae grep syslogd 147

#kill -HUP 147

After all the above operations, the device can make records in the corresponding log file.

1-15

Page 579
Image 579
3Com WX3000 operation manual # mkdir /var/log/Switch # touch /var/log/Switch/information