No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
info-center source channel

info-center source channel

Function

The info-center source channel command configures a rule for outputting information to a channel.

The undo info-center source channel command restores the default rule for outputting information to a channel.

The following lists the default rule for outputting information to a channel.

Table 4-33  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)
NOTE:

The output direction of channel 9 is the logfile.

default on debugging on debugging off debugging

Format

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 }

Parameters

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-sensitive characters. The value consists of letters or numbers and must start with a letter.
log { state { off | on } } Specifies the log status.
  • off: Logs are not sent.
  • on: Logs are sent.
-
log { level severity } Specifies the lowest severity of output logs.
Logs are classified into eight severities. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

trap { state { off | on } } Specifies the trap status:
  • off: Traps are not sent.
  • on: Traps are sent.
-
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:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

debug { state { off | on } } Specifies the debugging message status.
  • off: Debugging messages are not sent.
  • on: Debugging messages are sent.
-
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:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect and query information generated on the AP, 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.

The following lists information severities.
Table 4-34  Information severities

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.

If a module generates a large number of logs, traps, or debugging messages in a short time, use the following methods to suppress this information:
  • Specify level severity to adjust the channel level. Information with lower severity will be filtered.
  • Specify state off to disable information sent by a specified module.
After the lowest severity of output information is specified, information lower than the severity will be filtered.

Example

# Configure the device to send logs higher than or equal to warning of the CFM module.

<Huawei> system-view
[Huawei] info-center source CFM channel snmpagent log level warning
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 91707

Downloads: 63

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next