
1-12
Examples
# Set the switch to output information to the SNMP agent through channel 6.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] info-center snmp channel 6
info-center source
Syntax
info-center source
{
modu
-
name
|
default
}
channel
{
channel
-
number | channel
-
name
} [ {
log
|
trap
|
debug
} {
level
severity
|
state
state
} ]*
undo info-center source
{
modu
-
name
|
default
}
channel
{
channel
-
number | channel
-
name
}
View
System view
Parameters
modu
-
name
: Module name.
default
: Defaults the settings of all modules.
channel
-
number
: Number of information channel to be used.
channel
-
name
: Channel name, by default, the name of channel 0 to channel 9 is (in turn)
console
,
monitor
,
loghost
,
trapbuffer
,
logbuffer
,
snmpagent
,
channel6
,
channel7
,
channel8
,
channel9
.
log
: Specifies to output log information.
trap
: Specifies to output trap information.
debug
: Specifies to output debugging information.
level
severity
: Specifies an information severity level. For the value of
severity
, refer to
Table 1-2
.
state state
: Configures whether to output the system information. The value of
state
can be
on
(enabled)
or
off
(disabled).
Description
Use the
info-center source
command to specify the output rules of the system information.
Use the
undo info-center source
command to remove the specified output rules.
By default, the output rules for the system information are listed in
Table 1-4
.
This command can be used to set the filter and redirection rules of log, trap and debugging information.
For example, the user can set to output log information with severity higher than warnings to the log
host, and information with severity higher than informational to the log buffer. The user can also set to
output trap information of the IP module to a specified output destination.
Note that:
z
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.
z
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