1-12
z 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.
z 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.
z 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.
z 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 1-4 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 warnings Enabled debugging Enabled debugging
Monitor
terminal
default (all
modules)
Enabled warnings Enabled debugging Enabled debugging
Log host
default (all
modules)
Enabled
information
al
Enabled debugging Disabled debugging
Trap buffer
default (all
modules)
Disabled
information
al
Enabled warnings Disabled debugging
Log buffer
default (all
modules)
Enabled warnings Disabled debugging Disabled debugging
SNMP
module
default (all
modules)
Disabled debugging Enabled warnings Disabled
debugging
Log file
default (all
modules)
Enabled debugging Enabled debugging Disabled debugging
Examples
# Set the output channel for the log information of VLAN module to snmpagent and to output
information with severity being emergencies. Log information of other modules cannot be output to this
channel.
<Sysname> system-view
[Sysname] info-center source default channel snmpagent log state off
[Sysname] info-center source vlan channel snmpagent log level emergencies state on
# Set the output channel for the log information of VLAN module to snmpagent and to output
information with severity being emergencies. Log information of other modules and all the other
system information cannot be output to this channel.
<Sysname> system-view
[Sysname] info-center source default channel snmpagent debug state off log state off trap
state off
[Sysname] info-center source vlan channel snmpagent log level emergencies state on