The info-center source channel command configures a rule for outputting information to a channel.
The undo info-center source channel command deletes the rules for outputting information to a channel.
The following lists the default rule for outputting information to a channel.
Output Channel |
Module Enabled to Output Information |
Log |
Trap |
Debugging Message |
|||
---|---|---|---|---|---|---|---|
Status |
Lowest Output Severity |
Status |
Lowest Output Severity |
Status |
Lowest Output Severity |
||
0 (console) |
default |
on |
warning |
on |
debugging |
on |
debugging |
1 (remote terminal) |
default |
on |
warning |
on |
debugging |
on |
debugging |
2 (log host) |
default |
on |
informational |
on |
debugging |
off |
debugging |
3 (trap buffer) |
default |
off |
informational |
on |
debugging |
off |
debugging |
4 (log buffer) |
default |
on |
warning |
off |
debugging |
off |
debugging |
5 (SNMP agent) |
default |
off |
debugging |
on |
debugging |
off |
debugging |
6 (channel 6) |
default |
on |
debugging |
on |
debugging |
off |
debugging |
7 (channel 7) |
default |
on |
debugging |
on |
debugging |
off |
debugging |
8 (channel 8) |
default |
on |
debugging |
on |
debugging |
off |
debugging |
9 (channel 9) |
default |
on |
debugging |
on |
debugging |
off |
debugging |
info-center source { module-name | default } channel { channel-number | channel-name } [ log { state { off | on } | level severity } * | trap { state { off | on } | level severity } * | debug { state { off | on } | level severity } * ] *
undo info-center source { module-name | default } channel { channel-number | channel-name }
Parameter | Description | Value |
---|---|---|
module-name |
Specifies the module name. |
Enumerated type. The value depends on the registered module. |
default |
Indicates the default module. |
- |
channel-number |
Specifies the number of a channel. |
The value is an integer that ranges from 0 to 9. |
channel-name |
Specifies the name of a channel. |
The value is a string of 1 to 30 case-insensitive characters. The value consists of letters or numbers and must start with a letter. |
log { state { off | on } } |
Specifies the log status.
NOTE:
This field does not take effect for diagnostic logs. |
- |
log { level severity } |
Specifies the lowest severity of output logs. NOTE:
This field does not take effect for diagnostic logs. |
Logs are classified into eight severities. The following severities are listed in descending order of priority:
|
trap { state { off | on } } |
Specifies the trap status:
|
- |
trap { level severity } |
Specifies the lowest severity of output traps. |
Logs are classified into eight severities. The following severities are listed in descending order of priority:
|
debug { state { off | on } } |
Specifies the debugging message status.
|
- |
debug { level severity } |
Specifies the lowest severity of output debugging messages. |
Logs are classified into eight severities. The following severities are listed in descending order of priority:
|
Usage Scenario
To collect and query information generated on the Switch, define severities for various types of information that is output to different channels. You can run the info-center source channel command to configure a rule for outputting information to a channel.
Value |
Severity |
Description |
---|---|---|
0 |
emergencies |
A fault causes the device to fail to run normally unless it is restarted. For example, the device is restarted because of program exceptions or a memory error is detected. |
1 |
alert |
A fault needs to be rectified immediately. For example, memory usage of the system reaches the upper limit. |
2 |
critical |
A fault needs to be analyzed and processed. For example, the memory usage falls below the lower threshold; temperature falls below the alarm threshold; BFD detects that a device is unreachable or detects locally generated error messages. |
3 |
error |
An improper operation is performed or exceptions occur during service processing. The fault does not affect services but needs to be analyzed. For example, users enter incorrect commands or passwords; error protocol packets are received from other devices. |
4 |
warning |
Some events or operations may affect device running or cause service processing faults, which requires full attention. For example, a routing process is disabled; BFD detects packet loss; error protocol packets are detected. |
5 |
notification |
A key operation is performed to keep the device running normally. For example, the shutdown command is run; a neighbor is discovered; protocol status changes. |
6 |
informational |
A normal operation is performed. For example, a display command is run. |
7 |
debugging |
A normal operation is performed, which requires no attention. |
Precautions
Each information channel has a default record with the module name default. The default configuration for logs, traps, and debugging messages in different channels may differ.
After the lowest severity of output information is specified, information lower than the severity will be filtered.