
56
By default, the output rules for the system information are listed in
.
This command can be used to set the filter and redirection rules of log, trap and debugging information.
For example, the user can set rules to output log information with a severity higher than warning to the
log host, and information with a severity higher than informational to the log buffer. The user can also set
rules to output traps of the IP module to a specified output destination.
Note that:
•
If you do not use the
module-name
argument to set output rules for a module, the module uses the
default output rules or the output rules set by the
default
keyword; otherwise the module uses the
output rules separately set for it.
•
If you use the
default
keyword to set the output rules for all the modules without specifying the
debug
,
log
, and
trap
keywords, the default output rules for the modules are used. See
for more
information.
•
If you use the
module-name
argument to set the output rules for a module without specifying the
debug
,
log
, and
trap
keywords, the default output rules for the module are as follows: the output of
log and trap information is enabled, with
severity
being informational; the output of debugging
information is disabled, with
severity
being debug. For example, if you execute the command
info-center source cmd channel
0, the command is actually equal to the command
info-center
source snmp cmd 0 debug level debugging state off log level informational state on trap level
informational state on
.
•
If you repeatedly use the command to set the output rules for a module or for all the modules with
the
default
keyword, the last configured output rules take effect
•
After you separately set the output rules for a module, you must use the
module-name
argument to
modify or remove the rules. The new configuration by using the
default
keyword is invalid on the
module.
•
You can configure to output the log, trap and debugging information to the trap buffer, but the trap
buffer only receives the trap information and discards the log and debugging information.
•
You can configure to output the log, trap and debugging information to the log buffer, but the log
buffer only receives the log and debugging information and discards the trap information.
•
You can configure to output the log, trap and debugging information to the SNMP module, but the
SNMP module only receives the trap information and discards the log and debugging information.
Table 16
Default output rules for different output destinations
LOG TRAP DEBUG
Output
destinatio
n
Modules
allowed
Enabled/
disabled
Severity
Enabled/
disabled
Severity
Enabled/
disabled
Severity
Console
default (all
modules)
Enabled
Informatio
nal
Enabled Debug Enabled Debug
Monitor
terminal
default (all
modules)
Enabled
Informatio
nal
Enabled Debug Enabled Debug
Log host
default (all
modules)
Enabled
Informatio
nal
Enabled Debug Disabled Debug
Trap buffer
default (all
modules)
Disabled
Informatio
nal
Enabled
Informatio
nal
Disabled Debug
Log buffer
default (all
modules)
Enabled
Informatio
nal
Disabled Debug Disabled Debug