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

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).
Information Center Configuration Commands

Information Center Configuration Commands

debugging timeout

Function

The debugging timeout command sets the timeout interval for disabling debugging.

The undo debugging timeout command restores the configuration.

By default, the timeout interval for disabling debugging is 5 minutes.

Format

debugging timeout time

undo debugging timeout

Parameters

Parameter Description Value
time

Specifies the timeout interval for disabling debugging.

The value is an integer that ranges from 0 to 1440, in minutes. The default value is 5.

The value 0 indicates that debugging will not be disabled automatically.

Views

User view

Default Level

3: Management level

Usage Guidelines

You can run the debugging timeout command sets the timeout interval for disabling debugging. After the timeout interval expires, debugging is disabled.

Example

# Set the timeout interval for disabling debugging to 10 minutes.

<HUAWEI> debugging timeout 10

display debugging

Function

The display debugging command displays debugging messages allowed to be sent by the device.

Format

display debugging

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

Debugging affects device performance. The display debugging command displays debugging messages allowed to be sent by the Switch.

Prerequisites

By default, sending debugging messages is prohibited. The debugging of a specified module has been enabled.

Example

# Display debugging messages allowed to be sent by the Switch.

<HUAWEI> debugging arp error
<HUAWEI> display debugging
ARP error debugging switch is on

display debugging timeout

Function

The display debugging timeout command displays the timeout interval for disabling debugging.

Format

display debugging timeout

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

None

Example

# Display the timeout interval for disabling debugging.

<HUAWEI> display debugging timeout
Debugging timeout
-----------------------------
Interval(min) RemainTime(sec)
-----------------------------
            5               0
-----------------------------
Table 5-35  Description of the display debugging timeout command output

Item

Description

Interval(min)

Timeout interval for disabling debugging, in minutes.

RemainTime(sec)

Remaining time for disabling debugging, in seconds.

Related Topics

display info-center

Function

The display info-center command displays the output configuration of the information center.

Format

display info-center

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

None

Example

# Display output configuration of the information center.

<HUAWEI> display info-center
Information Center:enabled                                                      
Log host:                                                                       
        10.1.1.1, channel number 2, channel name loghost,                        
language English , host facility local2                                         
Console:                                                                        
        channel number : 0, channel name : console                              
Monitor:                                                                        
        channel number : 1, channel name : monitor                              
SNMP Agent:                                                                     
        channel number : 5, channel name : snmpagent                            
Log buffer:                                                                     
        enabled,max buffer size 10240, current buffer size 512,                 
current messages 63, channel number : 4, channel name : logbuffer               
dropped messages 0, overwritten messages 0                                      
Trap buffer:                                                                    
        enabled,max buffer size 1024, current buffer size 256,                  
current messages 44, channel number:3, channel name:trapbuffer                  
dropped messages 0, overwritten messages 0                                      
logfile:                                                                        
        channel number : 9, channel name : channel9, language : English         
Information timestamp setting:                                                  
        log - date, trap - date, debug - date millisecond                       
Table 5-36  Description of the display info-center command output

Item

Description

Information Center

Information center status:
  • enabled
  • disabled

To enable the information center, run the info-center enable command.

Log host

Log host configuration.

10.1.1.1

Log host IP address.

To set the log host IP address, run the info-center loghost command.

channel number

Number of a channel used to output information.

To set the number of a channel used to output information, run the info-center channel command.

channel name

Name of a channel used to output information.

To set the name of a channel used to output information, run the info-center channel name command.

language

Language mode in which information is output to a log host.

host facility

Logging tool.

To configure the logging tool, run the info-center loghost command.

Console

Console configuration.

Monitor

Remote terminal configuration.

SNMP Agent

SNMP agent configuration.

Log buffer

Log buffer configuration.

enabled

Whether the Switch is enabled to send logs/traps to the log/trap buffer.

  • enabled
  • disabled

To enable the Switch to send logs/traps to the log/trap buffer, run the info-center logbuffer or info-center trapbuffer command.

max buffer size

Maximum number of logs/traps in the log/trap buffer.

current buffer size

Maximum number of logs/traps in the current log/trap buffer.

To set the maximum number of logs/traps in the current log/trap buffer, run the info-center logbuffer size or info-center trapbuffer size command.

current messages

Number of messages recorded in the log/trap buffer.

dropped messages

Number of messages discarded by the log/trap buffer.

overwritten messages

Number of overwritten messages in the log/trap buffer.

Trap buffer

Trap buffer configuration.

logfile

Log file configuration.

Information timestamp setting

Timestamp format of logs, traps, and debugging messages:
  • boot: indicates that the timestamp is expressed in the format of relative time, a period of time since system start.
  • date: indicates the current system date and time. It is expressed in mm dd yyyy hh:mm:ss format.
  • short-date: indicates the short date. This timestamp differs from date is that the year is not displayed.
  • format-date: indicates that the timestamp is expressed in YYYY-MM-DD hh:mm:ss format.

To configure the timestamp format, run the info-center timestamp command.

display info-center channel

Function

The display info-center channel command displays the channel configuration.

Format

display info-center channel [ channel-number | channel-name ]

Parameters

Parameter Description Value
channel-number

Specifies the number of a channel.

The value is an integer that ranges from 0 to 9. That is, the system has 10 channels. Channels 0 to 5 have default names and the six channels map to six different output directions.

Table 5-37 shows the relationship between channels and output directions.

channel-name

Specifies the name of a channel.

The name of a channel must already exist.

Table 5-37  Relationship between channel and output directions

Channel Number

Default Channel Name

Output Direction

Description

0

console

console

Console that can receive logs, traps, and debugging messages.

1

monitor

monitor

VTY terminal that can receive logs, traps, and debugging messages, which facilitates remote maintenance.

2

loghost

loghost

Log host that can receive logs and traps. By default, information is saved on the log host in file format for easy reference.

3

trapbuffer

trapbuffer

Trap buffer that can receive traps.

4

logbuffer

logbuffer

Log buffer that can receive logs.

5

snmpagent

snmpagent

SNMP agent that can receive traps.

6

channel6

Unspecified

Reserved. You can specify to which destination this channel can output information.

7

channel7

Unspecified

Reserved. You can specify to which destination this channel can output information.

8

channel8

Unspecified

Reserved. You can specify to which destination this channel can output information.

9

channel9

logfile

Log file that can receive logs and traps. Information is saved to the storage device in file format.

Views

All views

Default Level

3: Management level

Usage Guidelines

The display info-center channel command displays the channel configuration.

When using this command, note the following points:

  • When channel-number or channel-name is specified, the display info-center channel command displays the specified channel that information passes through and information severity.
  • When channel-number or channel-name is not specified, the display info-center channel command displays all the channels that information passes through and information severity.

Example

# Display the configuration of channel 0.

# Display the configuration of all channels.

<HUAWEI> display info-center channel
channel number:0, channel name:console
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      warning       Y      debugging     Y      debugging

channel number:1, channel name:monitor
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      warning       Y      debugging     Y      debugging

channel number:2, channel name:loghost
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      informational Y      debugging     N      debugging

channel number:3, channel name:trapbuffer
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       N      informational Y      debugging     N      debugging

channel number:4, channel name:logbuffer
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      warning       N      debugging     N      debugging

channel number:5, channel name:snmpagent
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       N      debugging     Y      debugging     N      debugging

channel number:6, channel name:channel6
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      debugging     Y      debugging     N      debugging

channel number:7, channel name:channel7
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      debugging     Y      debugging     N      debugging

channel number:8, channel name:channel8
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      debugging     Y      debugging     N      debugging

channel number:9, channel name:channel9
ModuID   Name          Enable LogLevel      Enable TrapLevel     Enable DebugLevel
ffffffff default       Y      debugging     Y      debugging     N      debugging
Table 5-38  Description of the display info-center channel command output

Item

Description

channel number

Channel number, which ranges from 0 to 9.

channel name

Channel name. Table 5-37 lists default channel names.

To set the channel name, run the info-center channel name command.

ModuID

Module ID. The default value is ffffffff.

Name

Module name. The default value is default.

To set the module name, run the info-center source channel command.

Enable

Whether logs are allowed to pass through a channel:
  • Y
  • N

To specify the channel, run the info-center source channel command.

LogLevel

Lowest severity of output logs. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

To set the lowest severity of output logs, run the info-center source channel command.

Enable

Whether traps are allowed to pass through a channel:
  • Y
  • N

To specify the channel, run the info-center source channel command.

TrapLevel

Lowest severity of output traps. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

To set the lowest severity of output traps, run the info-center source channel command.

Enable

Whether debugging messages are allowed to pass through a channel:
  • Y
  • N

To specify the channel, run the info-center source channel command.

DebugLevel

Lowest severity of output debugging messages. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

To set the lowest severity of output debugging messages, run the info-center source channel command.

display info-center statistics

Function

The display info-center statistics command displays statistics on the information center.

Format

display info-center statistics

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

You can run the display info-center statistics command to view statistics on the information center, including logs, traps, and debugging messages of each module.

Example

# Display statistics on the information center.

<HUAWEI> display info-center statistics
Information statistics data:
ModuleID    ModuleName          LogRecv   LogDrop  DiagRecv  DiagDrop  EventTrapRecv  EventTrapDrop DebugRecv DebugDrop
0x815       CFG                       0         0         0         0             42              0         0         0
0x816       CLI                     973         0         0         0              0              0         0         0
0x963       CPUDEFEND                 0         0         0         0              0              0         0         0
0x811       DEBUG                     0         0         0         0              0              0         0         0
0x801       DEVM                      2         0         0         0              5              0         0         0
0x813       DEVM                      0         0         0         0              1              0         0         0
0x852       ERROR-DOWN                0         0         0         0             26              0         0         0
0x95E       FEI                       0         0         0         0             97              0         0         0
0x9A5       FEI_TRUNK                 0         0         0         0              0              0         0         0
0x822       FTPS                      4         0         0         0              0              0         0         0
0x874       GRESM                    27         0         0         0              0              0         0         0
0x957       IM                        0         0         0         0              0              0         0         0
0x955       ISSU                      0         0         0         0              1              0         0         0
0x9AB       LLDP                      0         0         0         0             15              0         0         0
0x9D9       OPS                       3         0         0         0              0              0         0         0
0x962       QOS                       0         0         0         0              0              0         0         0
0x872       SOCKET                    0         0         0         0              0              0         0         0
0x970       SPM                       0         0         0         0              0              0         0         0
0x806       SSPBASE                   0         0         0         0              0              0         0         0
0x9A2       STACKMNG                  0         0         0         0              0              0         0         0
0xD30       SYSTEM                    0         0         0         0              1              0         0         0
Table 5-39  Description of the display info-center statistics command output

Item

Description

ModuleID

Registered ID of the module.

ModuleName

Name of the module that generates logs.

LogRecv

Number of received logs.

LogDrop

Number of discarded logs.

DiagRecv

Number of received diagnostic messages.

DiagDrop

Number of discarded diagnostic messages.

EventTrapRecv

Number of received traps.

EventTrapDrop

Number of discarded traps.

DebugRecv

Number of received debugging messages.

DebugDrop

Number of discarded debugging messages.

display logbuffer

Function

The display logbuffer command displays information recorded in the log buffer.

Format

display logbuffer [ security ] [ slot slot-id | module module-name | starttime starttime [ endtime endtime ] | level { severity | level } | size size ] *

display logbuffer brief

Parameters

Parameter Description Value
security Displays the security logs. -
slot slot-id

Displays logs of the specified device. slot-id specifies the stack ID of a device.

The value is an integer. You can enter a question mark (?) and select a value from the displayed value range.

module module-name

Displays logs of the specified module.

Enumerated type. Select a module from the values displayed by the system.
starttime starttime

Displays logs with the specified start time.

The value is in YYYY/MM/DD,HH:MM:SS format.
  • YYYY/MM/DD indicates year/month/date. YYYY is greater than 1969; MM ranges from 1 to 12; DD ranges from 1 to 31.

  • HH:MM:SS indicates hour:minute:second. HH ranges from 0 to 23; MM and SS range from 0 to 59.

endtime endtime

Displays logs with the specified end time.

The value is in YYYY/MM/DD,HH:MM:SS format.
  • YYYY/MM/DD indicates year/month/date. YYYY is greater than 1969; MM ranges from 1 to 12; DD ranges from 1 to 31.

  • HH:MM:SS indicates hour:minute:second. HH ranges from 0 to 23; MM and SS range from 0 to 59.

level { severity | level }
Displays logs of specified severity name or ID.
  • severity specifies the severity ID.

  • level specifies the severity name.

The value of severity is an integer that ranges from 0 to 7.
  • 0: Emergencies

  • 1: Alert

  • 2: Critical

  • 3: Error

  • 4: Warning

  • 5: Notification

  • 6: Informational

  • 7: Debugging

The value of level is the enumerated type:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

size size

Displays logs of the specified number.

The value is an integer that ranges from 1 to 10240.

brief

Displays the summary of logs in the log buffer.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

The display logbuffer command displays the information of recent logs. If the actual number of logs is smaller than the value specified by size, the system displays logs of the actual number.

Example

# Display all the logs in the log buffer.

<HUAWEI> display logbuffer
Logging buffer configuration and contents : enabled                             
Allowed max buffer size : 10240                                                 
Actual buffer size : 512                                                        
Channel number : 4, Channel name : logbuffer                                    
Dropped messages : 0                                                            
Overwritten messages : 0                                                        
Current messages : 158                                                          
                                                                                
Feb 16 2010 18:27:43+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
Feb 16 2010 18:27:28+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
Feb 16 2010 18:27:19+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
Feb 16 2010 18:27:06+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
Feb 16 2010 18:26:48+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
Feb 16 2010 18:26:28+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
Feb 16 2010 18:26:21+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.1, No
tificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=0, Rea
sonInfo=Failed to receive an ack for the inform.)                               
# Display the summary of information in the log buffer.
<HUAWEI> display logbuffer brief
Logging buffer configuration and contents : enabled
Allowed max buffer size : 10240
Actual buffer size : 512
Channel number : 4 , Channel name : logbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 2

2014-07-29 12:05:11 HUAWEI : The interface status changes. (ifName=GE1/0/8, AdminStatus=UP, OperStatus=UP, Reason=Interface phy
sical link is up, mainName=GE1/0/8)
2014-07-29 12:00:52 HUAWEI : The interface status changes. (ifName=GE1/0/8, AdminStatus=UP, OperStatus=DOWN, Reason=Interface p
hysical link is down, mainName=GE1/0/8) 
Table 5-40  Description of the display logbuffer command output

Item

Description

Logging buffer configuration and contents

Whether the device is enabled to output logs to the log buffer:
  • enabled
  • disabled

To configure the device to output logs to the log buffer, run the info-center logbuffer command.

Allowed max buffer size

Maximum size of the log buffer.

Actual buffer size

Actual size of the log buffer.

To set the log buffer size, run the info-center logbuffer size command.

Channel number

Number of the channel used to send logs to the log buffer.

To configure the number of a channel used to send logs to the log buffer, run the info-center channel command.

Channel name

Name of the channel used to send logs to the log buffer.

To configure the name of a channel used to send logs to the log buffer, run the info-center channel name command.

Dropped messages

Number of dropped messages.

Overwritten messages

Number of overwritten messages.

Current messages

Number of current messages.

display logfile

Function

The display logfile command displays information about a log file.

Format

display logfile file-name [ offset ]

Parameters

Parameter Description Value
file-name Displays the log file with the specified driver, path, and file name. The driver, path, and file name must already exist.
offset Displays the log file with the specified offset or byte.

The value is an integer that ranges from 1 to 4294967295.

Views

All views

Default Level

3: Management level

Usage Guidelines

When encountering problems, you can query log information to know about what happened during device operation. This is helpful for fault location.

Log files are saved in flash:/logfile. The system supports the following types of log files:
  • User log file: The file name is log.log. This log file saves common user logs in the log buffer and provides important information for device maintenance and fault location.

  • Diagnostic log file: The file name is diag.log. This log file saves information about exceptions and key events that occur during device running, and provides more detailed information for fault diagnosis and location.

  • System diagnostic log file: The file name is diagnostic_information.zip. This log file saves internal information about the operating system. Diagnostic information can be collected using the collect diagnostic information slot slot-id command.

Example

# Display log information saved in the log file in a specified path.

<HUAWEI> display logfile flash:/logfile/log.log     
############################################################################### 
#     This logfile is generated at :1 
############################################################################### 
                                                                                
Feb 16 2010 18:27:28+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.2, Not
ificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=1, Reas
onInfo=Failed to receive an ack for the inform.)                                
Feb 16 2010 18:27:19+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.2, Not
ificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=2, Reas
onInfo=Failed to receive an ack for the inform.)                                
Feb 16 2010 18:27:06+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.2, Not
ificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=3, Reas
onInfo=Failed to receive an ack for the inform.)                                
Feb 16 2010 18:26:48+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.2, Not
ificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=4, Reas
onInfo=Failed to receive an ack for the inform.)                                
Feb 16 2010 18:26:28+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.2, Not
ificationName=hwCfgChgNotify, AlarmID=0x8150016, NotificationQueueLength=3, Reas
onInfo=Failed to receive an ack for the inform.)                                
Feb 16 2010 18:26:21+10:00 DST HUAWEI %%01SNMP/3/SNMP_NOTIFICATION_SEND_FAILED(l
):CID=0x80d503fc;SNMP agent failed to send notification. (IPAddress=10.1.1.2, Not
ificationName=hwArpsGatewayConflict, AlarmID=0x8590003, NotificationQueueLength=
4, ReasonInfo=Failed to receive an ack for the inform.)                         
......

display logfile list

Function

The display logfile list command displays log files generated in the specified time range.

Format

display logfile [ log | diagnose ] list starttime starttime-value endtime endtime-value [ slave ]

Parameters

Parameter Description Value
log

Displays user log files generated in the specified time range.

-

diagnose

Displays diagnostic log files generated in the specified time range.

-

starttime starttime-value

Specifies the start time for the query of log files.

The value is in the YYYY/MM/DD,HH:MM:SS format.
  • YYYY indicates the year and is an integer ranging from 1970 to 9999.
  • MM indicates the month and is an integer ranging from 1 to 12.
  • DD indicates the day and is an integer ranging from 1 to 31.
  • HH indicates the hour and is an integer ranging from 0 to 23.
  • MM indicates the minute and is an integer ranging from 0 to 59.
  • SS indicates the second and is an integer ranging from 0 to 59.
NOTE:
  • If YYYY/MM/DD is not specified, the system year, month, and day are used by default.
  • The value of starttime-value must be earlier than that of endtime-value.
endtime endtime-value

Specifies the end time for the query of log files.

The value is in the YYYY/MM/DD,HH:MM:SS format.
  • YYYY indicates the year and is an integer ranging from 1970 to 9999.
  • MM indicates the month and is an integer ranging from 1 to 12.
  • DD indicates the day and is an integer ranging from 1 to 31.
  • HH indicates the hour and is an integer ranging from 0 to 23.
  • MM indicates the minute and is an integer ranging from 0 to 59.
  • SS indicates the second and is an integer ranging from 0 to 59.
NOTE:
  • If YYYY/MM/DD is not specified, the system year, month, and day are used by default.
  • The value of endtime-value must be later than that of starttime-value.
slave

Displays log files generated on the slave main control board in the specified time range.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

To check device running status, run the display logfile list command to display log files generated in the specified time range. If no log file type (log/diagnose) is specified, the command displays all types of log files generated in the specified time range.

Example

# Display all log files generated from 08:12:12 on December 10, 2015 to 12:17:43 on December 12, 2015.

<HUAWEI> display logfile list starttime 2015/12/10,08:12:12 endtime 2015/12/12,12:17:43
-------------------------------------------------------------------------------------------
LogType    LogFilePath
-------------------------------------------------------------------------------------------
log        1#flash:/logfile/log.log
log        1#flash:/logfile/log_1_20160218074838.log.zip
diagnose   1#flash:/logfile/diag.log
diagnose   1#flash:/logfile/diaglog_1_20151210204028.log.zip
diagnose   1#flash:/logfile/diaglog_1_20160104173108.log.zip
-------------------------------------------------------------------------------------------
Table 5-41  Description of the display logfile list command output

Item

Description

LogType Log file type:
  • log
  • diagnose
LogFilePath

Log file path

Related Topics

display snmp-agent trap feature-name info all

Function

display snmp-agent trap feature-name info all command displays all trap messages of the Information Center module.

Format

display snmp-agent trap feature-name info all

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

The display snmp-agent trap feature-name info all command displays whether all trap functions of the Information Center module are enabled.

Example

# Display all trap messages of the Information Center module.

<HUAWEI> display snmp-agent trap feature-name info all
------------------------------------------------------------------------------
Feature name: INFO
Trap number : 4
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status
hwICLogFileAging               on                      on
hwICLogFileStorageThrd         on                      on
hwICLogWriteFail               on                      on
hwICLogWriteFailCleared        on                      on
Table 5-42  Description of the display snmp-agent trap feature-name info all command output

Item

Description

Feature name

Name of the module to which a trap message belongs.

Trap number

Number of trap messages.

Trap name

Name of a trap message.

Default switch status

Status of the default trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

display trapbuffer

Function

The display trapbuffer command displays information recorded in the trap buffer.

Format

display trapbuffer [ size value ]

display trapbuffer brief

Parameters

Parameter Description Value
size value Displays the specified number of traps recently generated in the trap buffer. If this parameter is not specified, all traps are displayed. The value is an integer that ranges from 1 to 1024.
brief

Displays the summary of traps in the trap buffer.

-

Views

All views

Default Level

3: Management level

Usage Guidelines

The display trapbuffer command displays the information of recent traps. If the number of traps in the trap buffer is smaller than value, traps of the actual number are displayed.

Example

# Display all traps in the trap buffer.

<HUAWEI> display trapbuffer
Trapping buffer configuration and contents : enabled                            
Allowed max buffer size : 1024                                                  
Actual buffer size : 256                                                        
Channel number : 3, Channel name : trapbuffer                                   
Dropped messages : 0                                                            
Overwritten messages : 0                                                        
Current messages : 129                                                          
                                                                                
Feb 16 2010 19:25:22+10:00 DST HUAWEI %%01ARP/4/hwArpsGatewayConflict(t):CID=0x8
07703fd-OID=1.3.6.1.4.1.2011.5.25.165.2.2.2.1;Received an ARP packet with a dupl
icate IP address from the interface. (InterfaceName=Vlanif17, IpAddress=192.168.
17.2, MacAddress=0025-9e95-7c41, PE-VLAN=17, CE-VLAN=0)                         
Feb 16 2010 19:13:45+10:00 DST HUAWEI %%01CONFIGURATION/6/hwCfgChgNotify(t):CID=
0x80cb001a-OID=1.3.6.1.4.1.2011.5.25.191.3.1;Configuration changed. (CurrentCfgC
hgSeqID=115, CfgChgSeqIDReveralCount=0, CfgChgTableMaxItem=10000, CfgBaselineTim
e=2010-2-15 23:23:46)                                                           
Feb 16 2010 18:26:42+10:00 DST HUAWEI %%01CONFIGURATION/6/hwCfgChgNotify(t):CID=
0x80cb001a-OID=1.3.6.1.4.1.2011.5.25.191.3.1;Configuration changed. (CurrentCfgC
hgSeqID=114, CfgChgSeqIDReveralCount=0, CfgChgTableMaxItem=10000, CfgBaselineTim
e=2010-2-15 23:23:46)                                                           
Feb 16 2010 18:26:27+10:00 DST HUAWEI %%01CONFIGURATION/6/hwCfgChgNotify(t):CID=
0x80cb001a-OID=1.3.6.1.4.1.2011.5.25.191.3.1;Configuration changed. (CurrentCfgC
hgSeqID=113, CfgChgSeqIDReveralCount=0, CfgChgTableMaxItem=10000, CfgBaselineTim
e=2010-2-15 23:23:46)                                                           
Feb 16 2010 18:26:18+10:00 DST HUAWEI %%01CONFIGURATION/6/hwCfgChgNotify(t):CID=
0x80cb001a-OID=1.3.6.1.4.1.2011.5.25.191.3.1;Configuration changed. (CurrentCfgC
hgSeqID=112, CfgChgSeqIDReveralCount=0, CfgChgTableMaxItem=10000, CfgBaselineTim
e=2010-2-15 23:23:46)                                                           
Feb 16 2010 18:26:06+10:00 DST HUAWEI %%01CONFIGURATION/6/hwCfgChgNotify(t):CID=
0x80cb001a-OID=1.3.6.1.4.1.2011.5.25.191.3.1;Configuration changed. (CurrentCfgC
hgSeqID=111, CfgChgSeqIDReveralCount=0, CfgChgTableMaxItem=10000, CfgBaselineTim
e=2010-2-15 23:23:46)                                                           

# Display the summary of information in the trap buffer.
<HUAWEI> display trapbuffer brief
Trapping buffer configuration and contents : enabled
Allowed max buffer size : 1024
Actual buffer size : 256
Channel number : 3 , Channel name : trapbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 5

2014-07-29 19:55:30 HUAWEI : The VTY login successful. (UserIndex=34, UserName=**, UserIP=10.135.19.152, UserChannel=VTY0, Auth
Type=password, VpnInstanceName=_public_)
2014-07-29 14:14:34 HUAWEI : The VTY is logout. (UserIndex=34, UserName=**, UserIP=10.135.19.152, UserChannel=VTY0, AuthType=pa
ssword, VpnInstanceName=_public_)
2014-07-29 14:04:25 HUAWEI : The VTY login successful. (UserIndex=34, UserName=**, UserIP=10.135.19.152, UserChannel=VTY0, Auth
Type=password, VpnInstanceName=_public_) 
2014-07-29 12:05:11 HUAWEI : LLDP neighbor information was changed. (Added=1, Deleted=0, Dropped=0, Aged=0)
2014-07-29 12:00:52 HUAWEI : LLDP neighbor information was changed. (Added=0, Deleted=0, Dropped=0, Aged=1)
Table 5-43  Description of the display trapbuffer command output

Item

Description

Trapping buffer configuration and contents

Whether the device is enabled to output traps to the trap buffer:
  • enabled
  • disabled

To enable the device to output traps to the trap buffer, run the info-center trapbuffer command.

Allowed max buffer size

Maximum size of the trap buffer.

Actual buffer size

Actual size of the trap buffer.

To set the size of the trap buffer, run the info-center trapbuffer size command.

Channel number

Number of the channel used to send traps to the trap buffer.

To set the channel number, run the info-center channel command.

Channel name

Name of the channel used to send traps to the trap buffer.

To set the channel name, run the info-center channel name command.

Dropped messages

Number of dropped messages.

Overwritten messages

Number of overwritten messages.

Current messages

Number of current messages.

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 5-44  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

Log file is saved in flash:/logfile/log.log.

Format

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

info-center logbuffer channel { channel-number | channel-name } [ size logbuffer-size ]

info-center trapbuffer channel { channel-number | channel-name } [ size trapbuffer-size ]

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

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 name of a channel must already exist.
logbuffer-size Specifies the maximum number of logs in the log buffer. The value is an integer that ranges from 0 to 10240. If size is 0, logs are not displayed.
trapbuffer-size Specifies the maximum number of traps in the trap buffer. The value is an integer that ranges from 0 to 1024. If size is 0, traps are not displayed.

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.

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

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 log file.

<HUAWEI> system-view
[~HUAWEI] info-center logfile channel 9

# 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

info-center channel name

Function

The info-center channel name command names a channel with a specified number.

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

The following lists default channel names.

Table 5-45  Default channel names

Channel Number

Default Channel Name

0

console

1

monitor

2

loghost

3

trapbuffer

4

logbuffer

5

snmpagent

6

channel6

7

channel7

8

channel8

9

channel9

Format

info-center channel channel-number name channel-name

undo info-center channel channel-number

Parameters

Parameter Description Value
channel-number Specifies the number of a channel. The value is an integer that ranges from 0 to 9. That is, the system has 10 channels.
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.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can rename channels, which facilitates memorization and usage.

Precautions

Channel names must be unique. It is recommended that channel names represent channel functions.

Example

# Name channel 0 execconsole.

<HUAWEI> system-view
[~HUAWEI] info-center channel 0 name execconsole

info-center enable

Function

The info-center enable command enables the information center.

The undo info-center enable command disables the information center.

By default, the information center is enabled.

Format

info-center enable

undo info-center enable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

During device running, the information center records device operation. The system outputs system information to destinations such as the log host and the console only after the information center is enabled. Network administrators can store and query output information to monitor device running and locate faults.

Precautions

After the undo info-center enable command is executed, the device only records logs to the log buffer and log file but not to the terminal or log host. Additionally, the device does not record traps or debugging messages.

Follow-up Procedure

Configure a rule for outputting information to the terminal or remote server.

Example

# Enable the information center.

<HUAWEI> system-view
[~HUAWEI] info-center enable
Info: Information center is enabled.              

info-center filter-id

Function

The info-center filter-id command configures the Switch to filter a specified log or trap.

The undo info-center filter-id command disables the Switch from filtering a specified log or trap.

By default, no log or trap is filtered.

Format

info-center filter-id { id | bymodule-alias modname alias }

undo info-center filter-id { all | id | bymodule-alias modname alias }

Parameters

Parameter Description Value
id Specifies the ID of the log or trap to be filtered.
NOTE:
The ID is the log or trap ID defined by the system.
The value is an integer that ranges from 0 to 4294967295.

To view the ID, see Usage Scenario.

bymodule-alias modname alias Specifies the module name and alias name corresponding to the log or trap to be filtered.
NOTE:

You are advised to use the module name and alias for filtering. The modname value can be obtained by running the display configuration data running table-data ModuleInfo command in the diagnostic view. The alias value can be displayed after you enter a module name.

The value is an enumerated value and must be set as prompted by the device.

all Filters all logs or traps. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If some logs or traps are unnecessary, configure the Switch not to output the logs and traps. When the filtering function is enabled, the information center does not send the traps with a specified ID that satisfy the filtering condition to any channel. As a result, the trap buffer, log file, console, terminal, or SNMP agent cannot receive the traps with the specified ID.

To view the log or trap ID, run the display info-center register-info [ module module-name ] { log | trap } command.
<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] display info-center register-info module configuration log
A/B/C/D E "F"
A=Module, B=Level, C=Alias, D=Info ID
E=O(oper log) | E(event log) | D(diagnose log) | A(alarm log) | T(trap)
F="the content of registration information"

CONFIGURATION/6/CFG_FILE_CHANGE/0x08150001 E Configuration file was changed. (LogIndex=%d, SrcCmd=%d, SrcData=%d, DestData=%d, TerUs
er="%s", SrcAddr=%s, ConfigChangeId=%u, LogTime=%u, CfgBaselineTime="%s")
......
In the preceding command output, CFG_FILE_CHANGE is a log name, and 0x08150001 is a log ID. This ID is in hexadecimal notation and needs to be converted into the decimal notation as 135593985. If you need to filter the log named CFG_FILE_CHANGE, its id is 135593985.

Precautions

  • You cannot add the same ID or alias name repeatedly.

  • When you add an unregistered or nonexistent ID or alias name, the system displays a message indicating that the system fails to filter the trap with the specified ID or alias name.

Example

# Filter information by module names and alias names.
<HUAWEI> system-view
[~HUAWEI] info-center filter-id bymodule-alias configuration cfg_file_change
# Cancel filtering for all logs.
<HUAWEI> system-view
[~HUAWEI] undo info-center filter-id all
Related Topics

info-center logbuffer

Function

The info-center logbuffer command enables the Switch to send logs to the log buffer.

The undo info-center logbuffer command disables the Switch from sending logs to the log buffer.

By default, the Switch is enabled to send logs to the log buffer.

Format

info-center logbuffer

undo info-center logbuffer

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

To view logs in the log buffer, run the info-center logbuffer command to enable the Switch to send logs to the log buffer.

Example

# Enable the Switch to send logs to the log buffer.

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

info-center logbuffer size

Function

The info-center logbuffer size command sets the maximum number of logs in the log buffer.

The undo info-center logbuffer size command restores the default maximum number of logs in the log buffer.

By default, a log buffer can store a maximum of 512 logs.

Format

info-center logbuffer size logbuffer-size [ channel { channel-number | channel-name } ]

undo info-center logbuffer size

Parameters

Parameter Description Value
logbuffer-size Specifies the maximum number of logs in the log buffer. The value is an integer that ranges from 0 to 10240. If logbuffer-size is 0, logs are not displayed.
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 name of a channel must already exist.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If the number of logs in the log buffer reaches the maximum value, new logs will replace the existing logs that were placed earlier in the log buffer until all the new logs are stored.

You can run the info-center logbuffer size command to set the number of logs in the log buffer to view logs of different numbers.

Precautions

When you run the info-center logbuffer size command multiple times, only the latest configuration takes effect.

Example

# Set the maximum number of logs in the log buffer to 50.

<HUAWEI> system-view
[~HUAWEI] info-center logbuffer size 50

info-center logfile size

Function

The info-center logfile size command sets the log file size.

The undo info-center logfile size command restores the default log file size.

By default, the log file size is 8 MB.

Format

info-center logfile size size

undo info-center logfile size

Parameters

Parameter Description Value
size Specifies the log file size. The value is an integer that is 4, 8, 16, or 32, in MB. The default value is 8 MB.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To configure the Switch to export information to a log file, run the info-center logfile size command to set the log file size.

Precautions

If you configure the device to export information to a log file, exported information is saved in the log.log file. When the log.log file exceeds the specified size, the system compresses the file into a zip package. The file name of the compress file is "log_slot-id_time.log.zip". The slot-id indicates the device where the log is generated and time indicates the time when the log is recorded.

Example

# Set the log file size to 32 MB.

<HUAWEI> system-view
[~HUAWEI] info-center logfile size 32

info-center loghost

Function

The info-center loghost command configures the device to output information to a log host.

The undo info-center loghost command disables the device from outputting information to a log host.

By default, no information is output to the log host.

Format

info-center loghost ip-address [ channel { channel-number | channel-name } | { public-net | vpn-instance vpn-instance-name } | source-ip source-ip-address | facility local-number | port port-number | level info-level | { local-time | utc } | transport { udp | tcp [ ssl-policy policy-name ] } | brief ] *

info-center loghost ipv6 ipv6-address [ channel { channel-number | channel-name } | { public-net | vpn-instance vpn-instance-name } | facility local-number | port port-number | level info-level | { local-time | utc } | transport { udp | tcp [ ssl-policy policy-name ] } | brief ] *

info-center loghost domain domain-name [ channel { channel-number | channel-name } | { public-net | vpn-instance vpn-instance-name } | facility local-number | port port-number | level info-level | { local-time | utc } | transport { udp | tcp [ ssl-policy policy-name ] } | brief ] *

undo info-center loghost ip-address [ vpn-instance vpn-instance-name ]

undo info-center loghost ipv6 ipv6-address [ vpn-instance vpn-instance-name ]

undo info-center loghost domain domain-name [ vpn-instance vpn-instance-name ]

Parameters

Parameter Description Value
ip-address Specifies the IPv4 address of the log host. The value is in dotted decimal notation.
channel { channel-number | channel-name } Specifies the channel used to send information to a log host.
  • channel-number: specifies the number of a channel.
  • channel-name: specifies the name of a channel. The name can be the default or user-defined channel name.

The value of channel-number is an integer that ranges from 0 to 9.

The value of channel-name is a string of 1 to 30 case-insensitive characters. The value must start with a letter. It cannot contain spaces, hyphen (-), slash (/), or back slash (\).

public-net Specifies public network as the network in which a device sends logs to a log host.

-

vpn-instance vpn-instance-name Specifies the VPN instance name of a log host. The value is a string of 1 to 31 case-sensitive characters except spaces. When double quotation marks are used to include the string, spaces are allowed in the string. The value _public_ is reserved and cannot be used as the VPN instance name.
source-ip source-ip-address Specifies the source IP address of packets to be sent to a log host. The value is in dotted decimal notation.
facility local-number Specifies the logging tool, which is used to distinguish the source of log information. You can use this field to plan a local value for a specified type of log information, so that the log host can handle received log information based on the parameter. The value ranges from local0 to local7. The default value is local7.
port port-number Specifies the number of the port that sends logs. The value is an integer that ranges from 1 to 65535. If UDP is specified as the transport mode, the default port number is 514. If TCP is specified as the transport mode, the default port number is 601. If Secure Sockets Layer (SSL) is specified in the TCP transport mode, the default port number is 6514.
level info-level Specifies the log level.
Logs are classified into eight severities. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

local-time Indicates the local time when logs are sent to the log host.

By default, the system sends logs to the log host at the UTC time.

utc Indicates the Coordinated Universal Time (UTC) when logs are sent to the log host.

-

transport { udp | tcp }
Indicates the transmission mode of log packets:
  • udp: uses the User Datagram Protocol (UDP) to transmit log packets.

  • tcp: uses the Transmission Control Protocol (TCP) to transmit log packets.

By default, UDP is used to transmit log packets.

-

ssl-policy policy-name

Specifies the name of a Secure Sockets Layer (SSL) policy.

SSL encrypted transmission provides high security. If packets are transmitted on insecure networks, configure SSL encrypted transmission by specifying ssl-policy policy-name. Specify udp or tcp to transmit packets over UDP or TCP.

The value is a string of 1 to 23 case-insensitive characters without spaces.
ipv6 ipv6-address

Specifies the IPv6 address of the log host.

The value is a 32-digit hexadecimal number.

domain domain-name

Specifies the domain name of a log host.

The value is a string of 1 to 255 case-sensitive characters without spaces.

brief

Sends logs to a log host in brief mode.

-

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To query information generated on the device deployed remotely, configure the device to export information to a log host so that you can view device information on the log host. Run the info-center loghost command to configure the device to export information to a log host.

To configure the device to output information to different log hosts using different channels, specify the channels used to send information to the log hosts. For example, you can configure the device to output information to log hosts at 192.168.0.1 and 192.168.0.2 using channels 7 and 8 respectively.

You can choose whether to set brief as needed:
  • When brief is not set, logs are sent to the log host in non-brief mode. The log content is displayed in the format of timestamp/host name/module name/log level/summary/log details.
  • When brief is set, logs are sent to the log host in brief mode. The log content contains only details output by each module and is displayed in the format of timestamp/host name/log details.
For example:
  • When brief is not set, the log content is displayed as follows:
    May 15 2016 21:48:33 HUAWEI %%01SSH/5/SSH_USER_LOGIN_FAIL(s):CID=0x80932723; The SSH user failed to login. (ServiceType=**, FailedReason=Client requested disconnection, UserName=u2000test, IPAddress=10.1.1.1, VPNInstanceName=_public_.)
  • When brief is set, the log content is displayed as follows:
    May 15 2016 21:48:33 HUAWEI : The SSH user failed to login. (ServiceType=**, FailedReason=Client requested disconnection, UserName=u2000test, IPAddress=10.1.1.1, VPNInstanceName=_public_.)
Precautions

To transfer logs to the log hosts using TCP and encrypt logs using SSL, create an SSL policy first.

Table 5-46  Source interface binding modes

Single Host's Source IP Address

Source Interface's IP Address

Single Host's VPN

Source Interface's VPN

Global VPN

Source Interface Binding Mode

N/A

N/A

N/A

N/A

Configured

Logs are sent normally. The source IP address is the outbound interface's IP address, and the VPN is the global VPN.

N/A

N/A

N/A

Configured

N/A or configured

Logs are sent normally. The source IP address is the outbound interface's IP address no matter the source interface's VPN is consistent with the global VPN or not.

N/A

N/A

Configured

N/A or configured

N/A or configured

Logs are sent normally. The source IP address is the outbound interface's IP address, and the VPN is the single host's VPN.

N/A

Configured

N/A or configured

N/A or configured

N/A or configured

The VPN is the single host's VPN when the source interface's VPN is inconsistent with the single host's VPN.

Configured

N/A or configured

N/A or configured

N/A or configured

N/A or configured

The source IP address is the single host's source IP address.

In Table 5-46, N/A indicates that no corresponding command is configured, and Configured indicates:
  • Single Host's Source IP Address: The info-center loghost command is run with a specified ipv4-address or ipv6-address.
  • Source Interface's IP Address: The info-center loghost source interface-type interface-number command is run, and an IP address has been configured for the interface.
  • Single Host's VPN: The info-center loghost command is run with a specified vpn-instance vpn-instance-name.
  • Source Interface's VPN: The info-center loghost source interface-type interface-number command is run, and a VPN has been bound to the interface.
  • Global VPN: The set net-manager vpn-instance command is run.

Example

# Configure a device to use channel 6 to output information to the log host at 10.1.1.1.

<HUAWEI> system-view
[~HUAWEI] info-center loghost 10.1.1.1 channel channel6 
# Configure a device to send information to the log host at 192.168.2.2 in TCP mode, using the SSL policy huawei123 that has been created in the system.
<HUAWEI> system-view
[~HUAWEI] info-center loghost 192.168.2.2 transport tcp ssl-policy huawei123

info-center loghost source

Function

The info-center loghost source command configures the source interface used by the Switch to send information to a log host.

The undo info-center loghost source command restores the default source interface used by the Switch to send information to a log host.

By default, the source interface for a device to send logs to a log host is the actual interface that sends the logs.

Format

info-center loghost source interface-type interface-number

undo info-center loghost source

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and number of an interface. -

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If multiple devices send log messages to the same log host, you can identify the devices by setting different source interfaces to index the received log messages.

The source interface specified in the info-center loghost source command for a device to send logs to a log host is not necessarily the actual interface that sends the logs, but the IP address of the specified source interface is carried in logs.

Prerequisites

There is a reachable route between the source interface and the log host.

Example

# Specify Loopback0 IP address as the source interface address to send information to a log host.

<HUAWEI> system-view
[~HUAWEI] interface loopback 0
[*HUAWEI-LoopBack0] ip address 10.1.1.1 255.255.255.0
[*HUAWEI-LoopBack0] commit
[~HUAWEI-LoopBack0] quit
[~HUAWEI] info-center loghost source loopback 0

info-center loghost source-port

Function

The info-center loghost source-port command configures a source interface through which the device sends information to the log host.

The undo info-center loghost source-port command restores the default source interface through which the device sends information to the log host.

By default, the source interface number is 38514.

Format

info-center loghost source-port source-port

undo info-center loghost source-port

Parameters

Parameter Description Value
source-port Specifies the number of the source interface through which the device sends information to the log host. The value is an integer ranging from 1025 to 65535.

Views

System view

Default Level

3: Management level

Usage Guidelines

If the device uses the default source interface to send information to the log host, attackers may keep accessing this interface. As a result, the log host cannot send information. To improve system security, you can run the info-center loghost source-port source-port command to change the source interface through which the device sends information to the log host so that attackers cannot obtain the new source interface.

Example

# Change the number of the source interface through which the device sends information to the log host to 1026.

<HUAWEI> system-view
[~HUAWEI] info-center loghost source-port 1026

info-center log-severity

Function

The info-center log-severity command sets the severity of logs.

The undo info-center log-severity command restores the default log severity.

By default, different logs have different severities.

Format

info-center log-severity bymodule-alias module-name log-name severity severity

undo info-center log-severity bymodule-alias module-name log-name severity

Parameters

Parameter Description Value
bymodule-alias module-name log-name

Specifies the module name of a log and name of the log.

The value is a character string and must be selected from the values displayed by the system.
severity severity

Specifies the log severity.

The value can be:

  • emergency: mapped to 0. An error of the urgency level occurs.
  • alert: mapped to 1. An error needs to be corrected immediately.
  • critical: mapped to 2. A serious error occurs.
  • error: mapped to 3. An error occurs.
  • warning: mapped to 4. An error may occur.
  • notification: mapped to 5. An event occurs that you need to pay attention.
  • informational: mapped to 6. An event occurs, and no action is required.
  • debugging: mapped to 7. Debugging information is displayed.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the info-center log-severity command to set the severity of logs according to the severity level and urgency.

Example

# Set the severity of CLI operation logs to warning.

<HUAWEI> system-view
[~HUAWEI] info-center log-severity bymodule-alias cli cmdrecord severity warning

info-center max-logfile-number

Function

The info-center max-logfile-number command sets the maximum number of log files to be saved.

The undo info-center max-logfile-number command restores the default maximum number of log files to be saved.

By default, a maximum of 200 log files can be saved.

Format

info-center max-logfile-number filenumbers

undo info-center max-logfile-number

Parameters

Parameter Description Value
filenumbers Specifies the maximum number of log files that can be saved. The value is an integer that ranges from 3 to 500.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If too many log files are saved on the Switch, many disk space resources are occupied. To view log files generated recently, run the info-center max-logfile-number command to set the maximum number of log files that can be saved.

Precautions

If the number of log files generated on the Switch exceeds the limit, the system deletes the oldest log file so that the number of log files is not larger than the maximum value.

If the number of saved log files is greater than the default value, more system resources are consumed. The default value is recommended. Excess log files can be deleted manually or automatically. When the system deletes excess log files, high CPU usage may last for a short period.

Example

# Set the maximum number of log files to be saved to 100.

<HUAWEI> system-view
[~HUAWEI] info-center max-logfile-number 100

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 5-47  Default output rules
Output Channel Module Enabled to Output Information Status Lowest Output Severity
0 (console) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Enabled
  • Log: warning
  • Trap: debugging
  • Debugging: debugging
1 (remote terminal) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Enabled
  • Log: warning
  • Trap: debugging
  • Debugging: debugging
2 (log host) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: informational
  • Trap: debugging
  • Debugging: debugging
3 (trap buffer) default (all modules)
  • Log: Disabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: informational
  • Trap: debugging
  • Debugging: debugging
4 (log buffer) default (all modules)
  • Log: Enabled
  • Trap: Disabled
  • Debugging: Disabled
  • Log: warning
  • Trap: debugging
  • Debugging: debugging
5 (SNMP agent) default (all modules)
  • Log: Disabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: debugging
  • Trap: debugging
  • Debugging: debugging
6 (channel 6) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: debugging
  • Trap: debugging
  • Debugging: debugging
7 (channel 7) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: debugging
  • Trap: debugging
  • Debugging: debugging
8 (channel 8) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: debugging
  • Trap: debugging
  • Debugging: debugging
9 (channel 9) default (all modules)
  • Log: Enabled
  • Trap: Enabled
  • Debugging: Disabled
  • Log: debugging
  • Trap: debugging
  • Debugging: 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 } [ log { state | level } * | trap { state | level } * | debug { state | level } * ] *

Parameters

Parameter Description Value
module-name Specifies the module name.

You can query all the currently supported modules in Log Reference. In this manual, the log format is simplified as module name/log severity/information keyword, such as INFO/4/FILE_DELETE. (INFO indicates 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 name of a channel must already exist.
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

3: Management level

Usage Guidelines

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.

The following lists information severities.
Table 5-48  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 Switch to send logs higher than or equal to warning of the BFD module in the SNMP agent channel.

<HUAWEI> system-view
[~HUAWEI] info-center source bfd channel snmpagent log level warning

info-center statistic-suppress enable

Function

The info-center statistic-suppress enable command enables suppression of statistics about consecutive repeated logs.

The undo info-center statistic-suppress enable command disables suppression of statistics about consecutive repeated logs.

By default, suppression of statistics about consecutive repeated logs is enabled.

Format

info-center statistic-suppress enable

undo info-center statistic-suppress enable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

In the system, service modules generate logs and control the volume of generated logs. The information center processes the received logs.

A large number of repeated logs are generated in a short time in some scenarios, for example, when ARP and VRRP are enabled. This wastes both the storage space and CPU resources. Generally, users do not want to view the repeated logs. You can run the info-center statistic-suppress enable command to suppress statistics on consecutive repeated logs so that the system can still record other logs.
NOTE:
Logs that are generated consecutively and with the identical log ID and parameters can be regarded as repeatedly generated logs.

Precautions

Statistics about repeatedly generated logs are first output at the 30th seconds from the time the first log is output, and then statistics about repeatedly generated logs are output at the 120th seconds. After being output two times, statistics about repeatedly generated logs are output every 600 seconds.

By default, once receiving a log, the information center outputs the log. If the information center receives repeatedly generated logs within a period, it outputs the number of these logs and will output logs only when it receives a new log (a log with a different log ID). For example, a module sends logs to the information center in the sequence of A1(T1) A2(T2) A3(T2) B1(T3) B2(T4) B3(T4) C1(T5) C2(T6) A4(T7) B4(T8) B5(T8) B5(T8) B7(T9) A5(T9) B8(T10) D1(T11) A6(T11) A7(T12) A8(T12) A9(T13) A10(T14) A11(T15) A12(T16) A13(T17) A14(T18) B9(T18). A1 to A14 are the same; B1 to B9 are the same; C1, C2 and D1 are different from others; T1 to T18 are sequence numbers. The log information output by the information center is as follows:
T1:A1
T3(1): last message repeated 2 times
T3:B1
T5: last message repeated 2 times
T5:C1
T6:C2
T7:A4
T8:B4
T9(1): last message repeated 3 times
T9:A5
T10:B8
T11:D1
T11:A6
T13(2): last message repeated 3 times
T18(2): last message repeated 5 times
T18:B9
Logs of the service module received by the information center show that:
  • Statistics about repeatedly generated logs are output when either of the following conditions is met:
    • The next log is a different log, as shown in (1).
    • The time period (every 30 seconds, 120 seconds, and 600 seconds) for outputting log statistics expires, as shown in (2).
  • Each time the statistics are output, the service module clears the count and starts counting again. For example, during the period from T11 to T18, log A is generated 9 times.
  • The information center outputs logs in the same sequence the logs are generated, making the trace of information and scenario easy.
NOTE:
Logs with the sequence being A B A B A B A B are alternate logs; therefore, the info-center statistic-suppress enable command is unable to output the statistics about these logs.

Example

# Disable suppression of statistics about consecutive repeated logs.

<HUAWEI> system-view
[~HUAWEI] undo info-center statistic-suppress enable

info-center syslog packet-priority

Function

The info-center syslog packet-priority command configures an output priority for information center packets.

The undo info-center syslog packet-priority command restores the default output priority of information center packets.

The default output priority of information center packets is 0.

Format

info-center syslog packet-priority priority-level

undo info-center syslog packet-priority

Parameters

Parameter Description Value
priority-level Specifies an output priority for information center packets. The value is an integer ranging from 0 to 7. A larger value indicates a higher priority.

Views

System view

Default Level

3: Management level

Usage Guidelines

Network packets have different priorities, and high-priority packets will be transmitted first. The default output priority of information center packets is 0. To output information center packets first, run the info-center syslog packet-priority command to increase the output priority of the packets based on service traffic conditions on the network.

Example

# Set the output priority of information center packets to 3.

<HUAWEI> system-view
[~HUAWEI] info-center syslog packet-priority 3

info-center timestamp

Function

The info-center timestamp command sets the timestamp format of logs, traps, and debugging messages.

The undo info-center timestamp command restores the default timestamp format of logs, traps, and debugging messages.

By default, the timestamp format of logs, traps, and debugging messages is date.

Format

info-center timestamp { debugging | log | trap } { { date | format-date | short-date } [ precision-time { second | tenth-second | millisecond } ] | boot } [ without-timezone ]

undo info-center timestamp { debugging | trap | log }

Parameters

Parameter Description Value
debugging Indicates debugging messages. -
log Indicates logs. -
trap Indicates traps. -
boot Indicates that the timestamp is expressed in the format of relative time, a period of time since the start of the system. The format is xxxxxx.yyyyyy. xxxxxx is the higher order 32 bits of the milliseconds elapsed since the start of the system; yyyyyy is the lower order 32 bits of the milliseconds elapsed since the start of the system. -
date Specifies the current date and time. It is expressed in mm dd yyyy hh:mm:ss format. -
short-date Indicates the short date. This timestamp differs from date is that the year is not displayed. -
format-date Indicates that the timestamp is expressed in YYYY-MM-DD hh:mm:ss format. -
precision-time Specifies the precision. -
second Indicates that the precision is accurate to seconds. -
tenth-second Indicates that the precision is accurate to 0.1 second. -
millisecond Indicates that the precision is accurate to milliseconds. -
without-timezone Specifies time zone and DST information about the filter timestamp.
  • If without-timezone is configured for logs, the log information sent to terminals, log files, log buffer, and log host does not carry time zone or DST information.
  • If without-timezone is configured for traps, the trap information sent to terminals, trap buffer, and log host does not carry time zone or DST information.
  • If without-timezone is configured for debugging, the debugging information sent to terminals does not carry time zone or DST information.
-

Views

System view

Default Level

3: Management level

Usage Guidelines

The info-center timestamp command sets the timestamp format of logs, traps, and debugging messages.

The following describes the timestamp in date format.

Table 5-49  Description of fields of the timestamp in date format

Field

Description

Value

mm

Month

The value can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.

dd

Date

1-31. If the date is smaller than 10, add a space in front of the date, For example, " 7".

yyyy

Year

4 digits

hh:mm:ss

Local time

hh ranges from 00 to 23, and mm or ss ranges from 00 to 59.

When the precision of the timestamp is accurate to 0.1 second or milliseconds, the system adds identifiers to the logs generated at the same time based on the sequence.

Prerequisites

The information center has been enabled by using the info-center enable command.

Example

# Set the timestamp format of traps to boot.

<HUAWEI> system-view
[~HUAWEI] info-center timestamp trap boot

# Set the timestamp precision of logs, traps, and debugging messages.

<HUAWEI> system-view
[~HUAWEI] info-center timestamp log date precision-time millisecond
[*HUAWEI] info-center timestamp debugging date precision-time tenth-second
[*HUAWEI] info-center timestamp trap date precision-time millisecond
Related Topics

info-center trapbuffer

Function

The info-center trapbuffer command enables the Switch to send traps to the trap buffer.

The undo info-center trapbuffer command disables the Switch from sending traps to the trap buffer.

By default, the Switch is enabled to send traps to the trap buffer.

Format

info-center trapbuffer

undo info-center trapbuffer

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

To view traps in the trap buffer, run the info-center trapbuffer command to enable the Switch to send traps to the trap buffer.

Example

# Enable the Switch to send traps to the trap buffer.

<HUAWEI> system-view
[~HUAWEI] info-center trapbuffer

info-center trapbuffer size

Function

The info-center trapbuffer size command sets the maximum number of traps in the trap buffer.

The undo info-center trapbuffer size command restores the default maximum number of traps in the trap buffer.

By default, a trap buffer allows a maximum of 256 traps.

Format

info-center trapbuffer size trapbuffer-size [ channel { channel-number | channel-name } ]

undo info-center trapbuffer size

Parameters

Parameter Description Value
trapbuffer-size Specifies the maximum number of traps in the trap buffer. The value is an integer that ranges from 0 to 1024. If trapbuffer-size is 0, traps are not displayed.
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 name of a channel must already exist.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The info-center trapbuffer size command sets the maximum number of traps in the trap buffer.

Prerequisites

The Switch has been enabled to output traps to the trap buffer by using the info-center trapbuffer command.

Precautions

When you run the info-center trapbuffer size command multiple times, only the latest configuration takes effect.

If a small value of trapbuffer-size is used, some traps may be not displayed. If a large value of trapbuffer-size is used, repeated traps may be displayed. The default value of trapbuffer-size is recommended.

Example

# Set the maximum number of traps in the trap buffer to 30.

<HUAWEI> system-view
[~HUAWEI] info-center trapbuffer size 30

reset info-center statistics

Function

The reset info-center statistics command clears statistics on each module.

Format

reset info-center statistics

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To re-collect statistics on each module, run the reset info-center statistics command to clear all historical statistics.

Precautions

The cleared statistics cannot be restored. Exercise caution when you run the reset info-center statistics command.

Example

# Clear statistics on each module.

<HUAWEI> reset info-center statistics

reset logbuffer

Function

The reset logbuffer command clears logs in the log buffer.

Format

reset logbuffer

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To record logs in the log buffer again, run the reset logbuffer command to clear all the information in the log buffer.

Precautions

Statistics cannot be restored after being cleared. Exercise caution when you run the reset logbuffer command.

Example

# Clear information in the log buffer.

<HUAWEI> reset logbuffer
Warning: This command will reset the log buffer. Logs in the buffer will be lost. Continue? [Y/N]:y
Related Topics

reset trapbuffer

Function

The reset trapbuffer command clears Trap information in the trap buffer.

Format

reset trapbuffer

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To record traps in the trap buffer again, run the reset trapbuffer command to clear all the information in the trap buffer.

Precautions

Statistics cannot be restored after being cleared. Exercise caution when you run the reset trapbuffer command.

Example

# Clear information in the trap buffer.

<HUAWEI> reset trapbuffer
Related Topics

save logfile

Function

The save logfile command saves logs in the log file buffer to a log file.

Format

save logfile

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

To reduce the number of times information is written into the storage device, information generated on the device is saved into the log buffer before the information is saved into the log file. When the log file buffer is full or a timer expires, the system saves the logs in the log file buffer to the log file. You can also run the save logfile command to save the logs in the log file buffer to the log file.

Example

# Save logs in the log file buffer to the log file.

<HUAWEI> save logfile
Info: Save logfile successfully.

set system debug-log filter

Function

The set system debug-log filter command filters system diagnostic logs.

The undo set system debug-log filter command cancels filtering of system diagnostic logs.

By default, system diagnostic logs are not filtered.

Format

set system debug-log module module-name filter filter-string [ slot slot-id ]

undo set system debug-log module module-name filter filter-string [ slot slot-id ]

Parameters

Parameter Description Value
module module-name Specifies a module name. The module-name must already exist.
filter filter-string Specifies a character string. That is, the system diagnostic logs containing the string specified by filter-string will be filtered out. The value is a string of 1 to 299 characters.
slot slot-id

Specifies the stack ID of the device.

The value is an integer. You can enter a question mark (?) and select a value from the displayed value range.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the set system debug-log filter command to filter system diagnostic logs of a specified module so that the system does not record these logs.

System diagnostic logs are collected using the collect diagnostic information command.

Precautions

You can configure only one filter condition for each module.

Example

# Filter system diagnostic logs containing the character string malloc of the Lcm module.

<HUAWEI> system-view
[~HUAWEI] set system debug-log module lcm filter malloc

snmp-agent trap enable feature-name info

Function

The snmp-agent trap enable feature-name info command enables the trap function for the INFO module.

The undo snmp-agent trap enable feature-name info command disables the trap function for the INFO module.

To view the trap name and trap function status of the INFO module, run the display snmp-agent trap feature-name info all command.

Format

snmp-agent trap enable feature-name info [ trap-name trap-name ]

undo snmp-agent trap enable feature-name info [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name

Specifies the name of a trap.

If this parameter is not specified, all the trap functions of the INFO module are enabled or disabled.

The value is of enumerated type.

To view the trap name of the INFO module, run the display snmp-agent trap feature-name info all command.

Views

System view

Default Level

3: Management level

Usage Guidelines

To enable the NMS to easily manage the INFO module of the device, you can run the snmp-agent trap enable feature-name info command to enable an INFO trap. The command configuration ensures that the traps generated during the device operation are sent to the NMS. Otherwise, INFO traps are not sent to the NMS.

Example

# Enables hwiclogfileaging for the INFO module.

<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name info trap-name hwiclogfileaging

terminal alarm

Function

The terminal alarm command enables alarm display on the terminal.

The undo terminal alarm command disables alarm display on the terminal.

By default, alarm display is enabled on the terminal.

Format

terminal alarm

undo terminal alarm

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To view alarms on a terminal, run the terminal alarm command to enable alarm display on the terminal.

Prerequisites

The terminal monitor command has been executed to enable display of logs, traps, and debugging message output on the terminal.

Example

# Disable alarm display on the terminal.

<HUAWEI> undo terminal alarm
Info: Current alarm terminal is off.                     

terminal debugging

Function

The terminal debugging command enables debugging message display on the user terminal.

The undo terminal debugging command disables debugging message display on the user terminal.

By default, debugging message display is disabled on the user terminal.

Format

terminal debugging

undo terminal debugging

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

You can run the terminal debugging command to enable debugging message display on the user terminal to view system debugging message and locate faults.

Prerequisites

The terminal monitor command has been executed to enable display of logs, traps, and debugging message output on the user terminal.

Example

# Enable debugging message display on the user terminal.

<HUAWEI> terminal debugging
Info: Current terminal debugging is on.

terminal echo synchronous

Function

The terminal echo synchronous command enables a terminal to display debugging, log, or trap information synchronously.

The undo terminal echo synchronous command disables a terminal from displaying debugging, log, or trap information synchronously.

By default, a terminal displays debugging, log, and trap information synchronous.

Format

terminal echo synchronous

undo terminal echo synchronous

Parameters

None

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a device generates debugging, log, or trap information, the information queues in the device process and is sent to a terminal sequentially. This output is called a synchronous output.

A synchronous output provides effectively organized output information, improving user experience. In asynchronous output mode, multiple types of information interlaces, which brings poor readability. An asynchronous output allows you to promptly obtain debugging and diagnosis information and therefore applies to debugging and diagnosis scenarios.

You can run the terminal echo synchronous command to enable a synchronous output on a terminal, facilitating subsequent operations.

Prerequisites

Example

# Enable a terminal to display debugging information synchronously.

<HUAWEI> terminal monitor
Info: Current terminal monitor is on.
<HUAWEI> terminal debugging
Info: Current terminal debugging is on.
<HUAWEI> terminal echo synchronous

terminal logging

Function

The terminal logging command enables log display on the user terminal.

The undo terminal logging command disables log display on the user terminal.

By default, log display is enabled on the user terminal.

Format

terminal logging

undo terminal logging

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To view logs on a terminal, run the terminal logging command to enable log display on the user terminal.

Prerequisites

The terminal monitor command has been executed to enable display of logs, traps, and debugging message output on the user terminal.

Example

# Disable log display on the user terminal.

<HUAWEI> undo terminal logging
Info: Current terminal logging is off.

terminal monitor

Function

The terminal monitor command enables display of logs, traps, and debugging message output by the information center on the user terminal.

The undo terminal monitor command disables display of logs, traps, and debugging message output by the information center on the user terminal.

By default, console display is enabled and terminal display is disabled.

Format

terminal monitor

undo terminal monitor

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Prerequisites

The information center has been enabled by using the info-center enable command.

Follow-up Procedure

Run the terminal debugging/undo terminal debugging, terminal logging/undo terminal logging, /terminal trapping/undo terminal trapping, terminal alarm/undo terminal alarm command to enable or disable terminal debugging message, log, or trap display.

Precautions

Logs, traps, and debugging message are sent to the current terminal only when the terminal monitor command is used.

Running the undo terminal monitor command is equivalent to running the undo terminal debugging, undo terminal logging, undo terminal trapping, undo terminal alarm command.

Example

# Disable display of logs, traps, and debugging message output by the information center on the user terminal.

<HUAWEI> undo terminal monitor
Info: Current terminal monitor is off.

terminal trapping

Function

The terminal trapping command enables trap display on the user terminal.

The undo terminal trapping command disables trap display on the user terminal.

By default, trap display is enabled on the user terminal.

Format

terminal trapping

undo terminal trapping

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To view traps on a terminal, run the terminal trapping command to enable trap display on the user terminal.

Prerequisites

The terminal monitor command has been executed to enable display of logs, traps, and debugging message output on the user terminal.

Example

# Disable trap display on the user terminal.

<HUAWEI> undo terminal trapping
Info: Current terminal trapping is off. 
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 69479

Downloads: 374

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