92 CHAPTER 6: DISPLAY AND DEBUGGING TOOLS

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

 

 

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.

Display and Debug Syslog

Table 70 Turn on/turn off syslog

Operation

Command

 

 

Turn on Syslog

info-center enable

 

 

Turn off Syslog

undo info-center enable

 

 

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.

Perform the following configuration in all views.

Table 71 Display and debug syslog

Operation

Command

 

 

 

Display basic configuration information of Syslog

display

info-center

 

 

 

Display internal buffer information of Syslog

display

info-center logbuffer

 

 

 

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.

1Execute following commands as root (supervisor)

#mkdir/var/log/Router

#touch/var/log/Router/config

#touch/var/log/Router/security

2Edit 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.

Page 96
Image 96
3Com 10014299 manual Turn on/turn off syslog, Configuration of Log Host, Display and Debug Syslog, Display and debug syslog