92 CHAPTER 6: DISPLAY AND DEBUGGING TOOLS
Here, module stands for the module name. Only the log information related to a
specified module can be filtered and output.
Turn on/turn off syslog
Please enter the following commands in system view.
Table 70 Turn on/turn off syslog
When Syslog is turned on, the performance of the system will be affected due to
the information classification and output - especially when processing a large
amount of information.
Display and Debug
Syslog
Perform the following configuration in all views.
Table 71 Display and debug syslog
Typical Syslog
Configuration Example
Configuration of Log Host
The configuration, implemented on SunOS 4.0, is almost the same as that
performed on the Unix operating system of other manufacturers.
1 Execute following commands as root (supervisor)
#mkdir /var/log/Router
#touch /var/log/Router/config
#touch /var/log/Router/security
2 Edit the file /etc/syslog.conf as the root and add the following selector/action
pairs.
#Router configuration messages
Local4.crit /var/log/Router/config
When editing /etc/syslog.conf, note the following:
■ The comments can only be in separate lines, beginning with character #.
■ The selector/action pairs must be separated with one Tab instead of a space.
■ There must not be redundant spaces behind the file name.
Set terminal Filter info-center monitor filter module
Delete terminal Filter undo info-center monitor filter
Set Filter of internal buffer info-center logbuffer filter module
Delete Filter of terminal buffer undo info-center logbuffer filter
Set Filter of log host info-center loghost <0-9> { local<0-7>
| ip-address } filter module
Delete Filter of log host undo info-center loghost <0-9> {
local<0-7> | ip-address } filter
Operation Command
Turn on Syslog info-center enable
Turn off Syslog undo info-center enable
Operation Command
Display basic configuration information of Syslog display info-center
Display internal buffer information of Syslog display info-center logbuffer