< Home

info-center channel

Function

The info-center channel command configures channels for outputting information in various directions.

The undo info-center channel command restores the default settings.

By default, the system outputs information in various directions through channels listed in the table below.

Table 1 Default association between the channel number, channel name, and output direction of information channels

Channel Number

Channel Name

Output Direction

0

console

Console

1

monitor

User terminal

2

loghost

Log host

3

trapbuffer

Trap buffer

4

logbuffer

Log buffer

5

snmpagent

SNMP agent

6

channel6

Unspecified

7

channel7

Unspecified

8

channel8

Unspecified

9

channel9

Log file

Format

info-center { console | logbuffer | logfile | monitor | snmp | trapbuffer } channel { channel-number | channel-name }

undo info-center { { console | monitor | snmp | logfile } channel | { logbuffer | trapbuffer } channel [ channel-number | channel-name ] }

Parameters

Parameter Description Value
console Specifies the channel used to output information to the console. -
logbuffer Specifies the channel used to output information to the log buffer. -
logfile Specifies the channel used to output information to the log file. -
monitor Specifies the channel used to output information to the user terminal. -
snmp Specifies the channel used to output information to the SNMP agent. -
trapbuffer Specifies the channel used to output information to the trap buffer. -
channel-number Specifies the channel number. The value is an integer ranging from 0 to 9.
channel-name Specifies the name of a channel, which can be the default channel name or a user-defined name. 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.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the info-center channel command in the following scenarios: The same information is sent to different directions. For example, the log file and log host record the same content or the trap buffer and the SNMP agent record the same content.

The channels should not have the same name.

For details on how to configure a channel for outputting information to a log host, see info-center loghost.

The info-center channel command takes effect only after the information center function has been enabled using the info-center enable command.

Example

# Configure the channel used to output information to a console.

<HUAWEI> system-view
[HUAWEI] info-center console channel console

# Configure the channel used to output information to the log buffer.

<HUAWEI> system-view
[HUAWEI] info-center logbuffer channel logbuffer

# Configure the channel used to output information to the user terminal.

<HUAWEI> system-view
[HUAWEI] info-center monitor channel monitor

# Configure the channel used to output information to an SNMP agent.

<HUAWEI> system-view
[HUAWEI] info-center snmp channel 5

# Configure the channel used to output information to the trap buffer.

<HUAWEI> system-view
[HUAWEI] info-center trapbuffer channel trapbuffer
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >