22
C
11: S
M
HAPTER
YSTEM
Example: Log
Configuration
ANAGEMENT
This configuration is performed on the info-center loghost. The following
configuration example is implemented on SunOS 4.0. The configurations on the
Unix operating systems of other vendors are basically the same.
a Perform the following commands with the identity of root
mkdir /var/log/SW7700
touch /var/log/SW7700/config
touch /var/log/SW7700/security
b Edit the file "/etc/syslog.conf" with the identity of root and add the following
selector/action pairs.
SW7700 configuration messages:
Local4.crit
/var/log/SW7700/config
SW7700 security messages:
local5.notice /var/log/SW7700/security
Pay attention to the following points when editing the file "/etc/syslog.conf":
The description must start from a fresh line and begin with a pound key #.
■
Use tab character to separate the selectors/action pairs instead of space.
■
No redundant spaces should be left behind the name of the file.
■
c When the log files "config" and "security" are created, and the file
"/etc/syslog.conf" is modified, perform the following commands to send a HUP
signal to the system demon syslogd, so that the syslogd can read the
configuration file "/etc/syslog.conf" again.
ps -ae | grep syslogd 147
kill -HUP 147
After the above operations are performed, the system can record information in
the corresponding logging files
Note: Configuring integrally the facility, severity, filter and the file "syslog.conf"
makes it possible to perform the detailed classification for the purpose of
information filtering.
Configure to output log on the Console, as follows:
1 Enable the logging system.
[SW7700] info-center enable
2 Configure the logging output of the console and allows the log output of RSTP
module with the severity ranged from "emergencies" to "debugging".
[SW7700] info-center console channel console
[SW7700] info-center source rstp channel 6 log level debugging
3 Enable RSTP module debugging.
<SW7700> debugging rstp all
Need help?
Do you have a question about the 7700 and is the answer not in the manual?