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

AR500, AR510, and AR530 V200R007 Commands Reference

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

display actived-alarm highest-level

Function

The display actived-alarm highest-level command displays the highest alarm severity levels of current active alarms.

Format

display actived-alarm highest-level

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the highest alarm severity levels of current active alarms.

<Huawei> display actived-alarm highest-level
 Info: The highest level of active alarm is critical.
Table 3-20  Description of the display actived-alarm highest-level command output

Item

Description

The highest level of active alarm is

Highest severity levels of current active alarms include:

  • critical: indicates that a fault affects normal operation of the system. Effective measures must be taken immediately. For example, if a device or resources become unavailable, the fault needs to be rectified immediately even if the fault occurs during non-working hours.

  • major: indicates that a fault decreases system quality. Effective measures must be taken immediately. For example, if service quality of a device or resources is reduced and needs to be restored, measures need to be taken immediately during working hours.

  • minor: indicates that a fault has not affected service quality but needs to be processed or observed to prevent serious faults.

  • warning: indicates that a fault may have potential errors that will affect services, requiring measures to be taken according to errors.

  • indeterminate: indicates that the severity level is not determined. That is, impact of alarms depends on the environment.

  • cleared: indicates the clearing of one or more previously reported alarms. This alarm clears all alarms for this managed object that have the same alarm type, possible causes and specific problems. Multiple associated notifications may be cleared using the correlated notifications parameter.

display channel

Function

The display channel command displays the channel configuration.

Format

display channel [ channel-number | channel-name ]

Parameters

Parameter Description Value
channel-number

Specifies the number of a channel.

The value is an integer than 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 3-21 shows the relationship between channels and output directions.

channel-name

Specifies the name of a channel.

The value is a string of 1 to 30 case-sensitive characters. The value consists of letters or numbers and must start with a letter.
Table 3-21  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, traps, and debugging messages. 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, traps, and debugging messages. Information is saved to the USB flash drive or SD card in file format.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display channel command displays the channel configuration.

When using this command, note the following points:

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

Example

# Display the configuration of channel 0.

<Huawei> display channel 0
channel number: 0, channel name: console                                        
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      warning       Y      debugging     Y      debugging    

# Display the configuration of all channels.

<Huawei> display channel
channel number: 0, channel name: console                                        
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      warning       Y      debugging     Y      debugging    
                                                                                
channel number: 1, channel name: monitor                                        
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      warning       Y      debugging     Y      debugging    
                                                                                
channel number: 2, channel name: loghost                                        
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      informational Y      debugging     N      debugging    
                                                                                
channel number: 3, channel name: trapbuffer                                     
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  N      informational Y      debugging     N      debugging    
                                                                                
channel number: 4, channel name: logbuffer                                      
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      warning       N      debugging     N      debugging    
                                                                                
channel number: 5, channel name: snmpagent                                      
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  N      debugging     Y      debugging     N      debugging    
                                                                                
channel number: 6, channel name: channel6                                       
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      debugging     Y      debugging     N      debugging    
                                                                                
channel number: 7, channel name: channel7                                       
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      debugging     Y      debugging     N      debugging    
                                                                                
channel number: 8, channel name: channel8                                       
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      debugging     Y      debugging     N      debugging    
                                                                                
channel number: 9, channel name: channel9                                       
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL  
ffff0000 default  Y      debugging     Y      debugging     N      debugging    
Table 3-22  Description of the display channel command output

Item

Description

channel number

Channel number, which ranges from 0 to 9.

channel name

Channel name. Table 3-21 lists default channel names.

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

MODU_ID

Module ID. The default value is ffff0000.

NAME

Module name. The default value is default.

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

ENABLE

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

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

LOG_LEVEL/TRAP_LEVEL/DEBUG_LEVEL

Lowest severity of output logs/traps/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 logs, run the info-center source channel command.

display debugging

Function

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

Format

display debugging [ module-name ]

display debugging [ interface interface-type interface-number ] [ module-name ]

Parameters

Parameter Description Value
module-name Displays debugging messages sent by a specified module such as the DHCP module. If this parameter is not specified, all debugging messages allowed to be sent are displayed.

Enumerated type. The value depends on the registered module.

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 Router.

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 Router.

<Huawei> display debugging
ACL error debugging is on, on the slot 0 

# Display debugging messages allowed by the ARP module.

<Huawei> display debugging arp
slot[0]:ARP packet debugging is on    

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: local7   
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: 1024, current buffer size: 512
        current messages: 6, 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: 0, 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

 Sent messages = 25, Received messages = 25
Table 3-23  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.

To set the language mode in which information is output to a log host, run the info-center loghost command.

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 Router is enabled to send logs/traps to the log/trap buffer.

  • enabled
  • disabled

To enable the Router 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.
  • none: indicates that the output information does not contain the timestamp.

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

Sent messages

Number of sent messages output by information center modules.

Received messages

Number of messages sent to information center modules.

display info-center filter-id

Function

The display info-center filter-id command displays information filtered by the information center.

Format

display info-center filter-id [ id | bymodule-alias modname alias ]

Parameters

Parameter Description Value
id Displays filtered information with the specified ID.

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

bymodule-alias modname alias Displays filtered information with the specified module name and mnemonic symbol.
  • modname: specifies the module name.
  • alias specifies the mnemonic symbol.

Enumerated type. Set the value according to the device configuration.

Views

All views

Default Level

3: Management level

Usage Guidelines

ID identifies each function module for log registration. An ID filter list is the aggregation of the shielded IDs.

If id or bymodule-alias is not specified, all information is filtered.

To prevent output of specified information, run the info-center filter-id command to add the ID to the filtering list, and then run the display info-center filter-id command to check whether information with this ID is filtered.

Example

# Display filtered information with ID 3246215177.
<Huawei> display info-center filter-id 3246215177  
ID              : 3246215177                                                    
Module          : 6OVER4                                                        
Alias           : DEL_UPTUNN_FAIL                                               
Content         : Failed to delete the UPTUNNEL entry when processing ([STRING])
. (Interface=[STRING])                                                          
Filtered Number : 0                                                             
# Display all the IDs in the filter list.
<Huawei> display info-center filter-id
ID              : 3246215177                                                    
Module          : 6OVER4                                                        
Alias           : DEL_UPTUNN_FAIL                                               
Content         : Failed to delete the UPTUNNEL entry when processing ([STRING])
. (Interface=[STRING])                                                          
Filtered Number : 0                                                             
                                                                                
ID              : 3491254537                                                    
Module          : BGP                                                           
Alias           : ADD_DELETED_ROUTE                                             
Content         : Add the route [STRING] that have other flags besides deleted f
lag [USHORT]                                                                    
Filtered Number : 0                                                             
Table 3-24  Description of the display info-center filter-id command output

Item

Description

ID

Identifier to which each log corresponds.

To configure the Router to filter a log or trap with a specified ID, run the info-center filter-id id command.

Module

Module name.

To configure the Router to filter a log or trap with a specified module name or alias name, run the info-center filter-id bymodule-alias modname alias command.

Alias

Alias name.

To configure the Router to filter a log or trap with a specified module name or alias name, run the info-center filter-id bymodule-alias modname alias command.

Content

Log message to which each log ID corresponds.

Filtered Number

Number of times that the log to which the log ID corresponds is filtered.

Related Topics

display info-center logfile path

Function

The display info-center logfile path command displays the path where log files are saved.

Format

display info-center logfile path

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display info-center logfile path command displays the path where log files are saved. This command is used in the following scenarios:
  • The information is output to the log file.
  • The save logfile command is executed to save log files to the specified path.

Example

# Display the path where log files are saved.

<Huawei> display info-center logfile path
Info: Logfile save path is usb0:/logfile

display info-center rate-limit record

Function

The display info-center rate-limit record command displays the suppression of the log processing rate in the information center.

Format

display info-center rate-limit record

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

None

Example

# Display the suppression of the log processing rate in the information center.
<Huawei> display info-center rate-limit record 
Record No.1
 InfoID               : ff5ad009
 Module               : AAA
 Alias                : DESTFAILAUTHEN_ERR_EVENT
 Rate limit threshold : 50
 Total receive number : 1872
 Total drop number    : 922
 Total send number    : 950
 Begin timestamp      : 2014-11-18 11:41:28
Table 3-25  Description of the display info-center rate-limit record command output

Item

Description

InfoID

Log ID.

Module

Log module name .

Alias

Log mnemonic name.

Rate limit threshold

The maximum number of logs set for the information center to process every second.

Total receive number

The total number of logs that are generated during the latest suppression period.

Total drop number

The total number of logs that are discarded during the latest suppression period.

Total send number

The total number of logs that the information center process during the latest suppression period.

Begin timestamp

The timestamp signifying when the suppression function is enabled for the last time.

display info-center rate-limit threshold

Function

The display info-center rate-limit threshold command displays the threshold of the log processing rate (maximum number of logs that the information center can process every second). The threshold information includes the default threshold contained in the released version, the default threshold for the specified log ID, and the threshold set through the command lines after the system startup.

Format

display info-center rate-limit threshold

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

None

Example

# Display the threshold of the log processing rate set for the information center.
<Huawei> display info-center rate-limit threshold 
Rate limit threshold(per second):
 Module           Alias                                   Default  Config       
 default                                                  30       30           
 IPC              IPCFRGTOOLARGE                          5        5            
 IPC              IPCDUMPMEM                              5        5            
 IPC              ALLOCINDEXERR                           5        5            
 IPC              DRVNOTSTABLE                            2        2            
 IPC              NOTIMODFALNOREASM                       2        2            
 IPC              SYNRPCGETSMFAL                          5        5            
 IPC              SYNRPCMODUNREG                          5        5            
 IPC              SYNRPCRETNULL                           5        5            
 IPC              MODULENOTREG                            5        5            
 IPC              SENDRETURN                              5        5            
 IPC              GETMTUFAL                               5        5            
 IPC              ALLOCIPCFRGFAL                          5        5            
 IPC              RECVINVALIDMSG                          5        5            
 IPC              RCVNOTIQUEERR                           5        5            
 IPC              NOTIFYQUEERR                            5        5            
 IPC              SENDFINISHRETURN                        5        5            
 IPC              RECVINVALIDMSGTYPE                      5        5            
 SOURCE           UMSGGETSRCOBJFAL                        1        1            
Table 3-26  Description of the display info-center rate-limit threshold command output

Item

Description

Module

Log module name.

Alias

Log mnemonic name.

Default

The default threshold of the log processing rate.

Config

The threshold of the log processing rate set for the information center.

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      LogNumber  DiagLogNumber   TrapNumber  DebugNumber   
c17d0000   6OVER4          0          0               0           0             
ff5a0000   AAA             0          0               0           0             
c06c0000   ACL             0          0               0           0             
c0ef0000   ACL6            0          0               0           0             
ff1e0000   ACLE            0          0               0           0             
ff8e0000   ADA_BFD         0          0               0           0             
c0e70000   ADDR            0          0               0           0             
ff740000   ADP-ACL         0          0               0           0             
ff730000   ADP-IPSEC       0          0               0           0             
ff120000   ADP_MSTP        11         0               0           0             
ff2c0000   ADPIPV4         0          7               0           0             
ff950000   ADPIPV6MB       0          0               0           0             
ff5d0000   AM              0          0               0           0             
ffff0000   AMPADP          0          0               0           0             
c1a80000   ANTIATTACK      0          0               0           0             
c16e0000   ARP             0          0               0           771           
c1860000   ARP-PING        0          0               0           0             
c19d0000   ARPLINK         0          0               0           0             
c0cf0000   ATM             0          0               0           0             
Table 3-27  Description of the display info-center statistics command output

Item

Description

ModuleID

Registered module ID.

ModuleName

Name of the module that generates logs.

LogNumber

Number of generated logs.

DiagLogNumber

Number of diagnostic logs.

TrapNumber

Number of generated traps.

DebugNumber

Number of generated debugging messages.

display log

Function

Using the display log command, you can query all the logs or a specified log.

Format

display log [ cli | snmp ] index index1 [ index2 ]

display log [ cli | snmp ] { all | name username } [ start-date [ start-time [ end-date [ end-time ] ] ] ]

Parameters

Parameter

Description

Value

cli

Queries specified logs.

-

snmp

Queries network management logs.

-

index index1 [ index2 ]

Indicates the index of the log to be queried. index1 is the start index of the logs and index2 is the end index of the logs. That is, the logs with the index starting from index1 and ending with index2 are displayed.

Numeral type. Range: 1-64.

name username

Queries logs by user name.

It is a string of 1-15 characters.

all

Queries logs of all users.

-

[ start-date [ start-time [ end-date [ end-time ] ] ] ]

Sets the date and time when you query logs by user name or query logs of all users.

start-date: The real start date. Date format: yyyy-mm-dd.

start-time: The real start time. Time format: hh:mm:ss.

end-date: The real end date. Date format: yyyy-mm-dd.

end-time: The real end time. Time format: hh:mm:ss.

Views

User view

Default Level

3: Management level

Usage Guidelines

  • When querying logs by name or by all, you can also query these logs by period.
  • This command can be used to query logs of the user with the level the same as yours or lower than yours.
  • Use parameters to display operation information about different users in different periods, for example, enter all to display the logs of all users.
  • When a configuration is incorrect, a fault will occur. To locate the fault, run this command to query logs to learn about basic information, such as the name of the user who operates the system, the IP address of the user, the specific time when the user performs an operation, and the detailed operations.

Example

# Query logs with indexes from 100 to 105.

<Huawei> display log index 10 15
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
   15                                    --                10.138.78.127        
  Time: 2007-08-25 18:00:43+00:00                                               
  Cmd:  traffic classifier cy                                                   
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
   14                                    --                10.138.78.127        
  Time: 2007-08-25 17:59:51+00:00                                               
  Cmd:  undo traffic behavior cy                                                
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
   13                                    --                10.138.78.127        
  Time: 2007-08-25 17:59:42+00:00                                               
  Cmd:  undo traffic policy cy                                                  
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
   12                                    --                10.138.78.127        
  Time: 2007-08-25 17:55:26+00:00                                               
  Cmd:  quit                                                                    
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
   11                                    --                10.138.78.127        
  Time: 2007-08-25 17:54:05+00:00                                               
  Cmd:  undo classifier cy                                                      
  No.   UserName                          Domain            IP-Address          
   10                                    --                10.138.78.127        
  Time: 2007-08-25 17:54:05+00:00                                               
  Cmd:  traffic policy cy                                                       
  ---------------------------------------------------------------------------   

# Query logs of all users within the period starting at 17:10:10 on 2007-08-25 and ending at 17:20:10 on 2007-08-25.

<Huawei> display log all 2007-08-25 17:10:10 - 2007-08-25 17:20:10   
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    78                                    --                10.138.78.127       
  Time: 2007-08-25 17:19:59+00:00                                               
  Cmd:  stp enable                         7                                     
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    77                                    --                10.138.78.127       
  Time: 2007-08-25 17:19:47+00:00                                               
  Cmd:  stp pathcost-standard legacy                                            
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    76                                    --                10.138.78.127       
  Time: 2007-08-25 17:19:35+00:00                                               
  Cmd:  stp root primary                                                        
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    75                                    --                10.138.78.127       
  Time: 2007-08-25 17:19:04+00:00                                               
  Cmd:  log off                                                                 
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    74                                    --                10.138.78.127       
  Time: 2007-08-25 17:18:54+00:00                                               
  Cmd:  system-view                                                             
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    73                                    --                10.138.78.127       
  Time: 2007-08-25 17:18:49+00:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    72                                    --                10.138.78.127       
  Time: 2007-08-25 17:18:17+00:00                                               
  Cmd:  stp root primary                                                        
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    71                                    --                10.138.78.128       
  Time: 2007-08-25 17:18:13+00:00                                               
  Cmd:  info-center snmp channel snmpagent                                      
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    70                                    --                10.138.78.127       
  Time: 2007-08-25 17:18:04+00:00                                               
  Cmd:  stp mode stp                                                            
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    69                                    --                10.138.78.127       
  Time: 2007-08-25 17:17:58+00:00                                               
  Cmd:  system-view                                                             
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    68                                    --                10.138.78.127       
  Time: 2007-08-25 17:17:35+00:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    67                                    --                10.138.78.128       
  Time: 2007-08-25 17:17:31+00:00                                               
  Cmd:  info-center monitor channel monitor                                     
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    66                                    --                10.138.78.128       
  Time: 2007-08-25 17:15:37+00:00                                               
  Cmd:  info-center loghost source Ethernet 0/0/1                               
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    65                                    --                10.138.78.128       
  Time: 2007-08-25 17:13:04+00:00                                               
  Cmd:  info-center loghost 10.1.1.2 language English                           
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    64                                    --                10.138.78.128       
  Time: 2007-08-25 17:11:55+00:00                                               
  Cmd:  system-view                                                             
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
    63                                    --                10.138.78.128       
  Time: 2007-08-25 17:11:53+00:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   
Table 3-28  Description of the display log command output

Item

Description

No.

Serial number of each log. The serial number is generated automatically by the system.

UserName

User name of the log

Time

Detailed operation time of the user

IP-Address

IP address of the user

Cmd

Detailed operations of the user

Domain

Domain name of the log

display logbuffer

Function

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

Format

display logbuffer [ size size | module module-name | level severity ] *

display logbuffer summary [ level severity ]

display logbuffer log-offset offset-value size size

Parameters

Parameter Description Value
size size Displays the specified number of logs recently generated in the log buffer. The value is an integer that ranges from 1 to 1024.
module module-name Displays logs of a specified module in the log buffer. Enumerated type. The value depends on the registered module.
level severity Displays logs of specified severity in the log buffer. Enumerated type. The value ranges from 0 to 7.
  • 0: emergencies
  • 1: alert
  • 2: critical
  • 3: error
  • 4: warning
  • 5: notification
  • 6: informational
  • 7: debugging
summary Displays the summary of logs in the log buffer. -
log-offset offset-value Specifies logs of the specified offset in the log buffer. The value is an integer that ranges from 0 to 1024.

Views

All views

Default Level

3: Management level

Usage Guidelines

Usage Scenario

  • You can use the display logbuffer log-offset offset-value size size command to view specified logs in the log buffer. For example, the log buffer has 100 logs. TO view the 20th to 50th logs in the log buffer, run the display logbuffer log-offset 20 size 30 command.
  • Run the display logbuffer [ size size | module module-name | level severity ] * command to view logs of specified number, module, or severity in the log buffer. If size, module, or level is not specified, this command displays all logs in the log buffer.
  • You can run the display logbuffer summary command to view logs of different severities in the log buffer.

Precautions

  • When the number of logs in the log buffer is smaller than value, logs of the actual number are displayed.

  • When the number of logs in the log buffer is smaller than offset-value, the system displays an error message.

  • When the number of logs in the log buffer is larger than offset-value, the system displays logs starting from offset-value plus one. The log quantity is specified by size. If the log quantity is less than size, the system displays all the logs starting from offset-value plus one.

Example

# Display all the logs in the log buffer.

<Huawei> display logbuffer
Logging buffer configuration and contents: enabled                              
Allowed max buffer size: 1024                                                   
Actual buffer size: 512                                                         
Channel number: 4, Channel name: logbuffer                                      
Dropped messages: 0                                                             
Overwritten messages: 167                                                       
Current messages: 512                                                           
                                                                                
May 10 2012 13:42:59+00:00 huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[0]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)                                                                           
May 10 2012 13:32:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[1]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 13:22:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[2]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 13:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[3]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)                                                                           
May 10 2012 13:02:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[4]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 12:52:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[5]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 12:42:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[6]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)                                                                           
May 10 2012 12:32:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[7]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 12:22:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[8]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 12:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[9]:Some packets a
re dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)                                                                           
May 10 2012 12:02:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[10]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                          
May 10 2012 11:52:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[11]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                          
May 10 2012 11:42:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[12]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=912)                                                                          
May 10 2012 11:32:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[13]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                          
May 10 2012 11:22:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[14]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                          
May 10 2012 11:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[15]:Some packet
s are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                          
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[16]:Interface Ethern
et5/0/2 has turned into UP state.                                     
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[17]:Interface Ethern
et5/0/1 has turned into UP state.                                     
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/LINK_STATE(l)[18]:The line proto
col IP on the interface Vlanif20 has entered the UP state.            
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/IF_STATE(l)[19]:Interface Vlanif
20 has turned into UP state.                                          
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[20]:Interface Ether
net5/0/0 has turned into UP state.                                     
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[21]:Interface Gigab
itEthernet5/0/0 has been available.                                   
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[22]:Interface Ether
net5/0/7 has been available.                                          
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[23]:Interface Ether
net5/0/6 has been available.                                          
Table 3-29  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 the summary of information in the log buffer.

<Huawei> display logbuffer summary
 EMERG ALERT  CRIT ERROR  WARN NOTIF  INFO DEBUG                                
     0     0     0    14   498     0     0     0     
Table 3-30  Description of the display logbuffer summary command output

Item

Description

SLOT

ID of the slot where logs are generated.

EMERG

Number of logs of emergencies.

ALERT

Number of logs of alert.

CRIT

Number of logs of critical.

ERROR

Number of logs of error.

WARN

Number of logs of warning.

NOTIF

Number of logs of notification.

INFO

Number of logs of informational.

DEBUG

Number of logs of debugging.

# Display 10 logs starting from log 16.
<Huawei> display logbuffer log-offset 15 size 10
Logging buffer configuration and contents: enabled                              
Allowed max buffer size: 1024                                                   
Actual buffer size: 512                                                         
Channel number: 4, Channel name: logbuffer                                      
Dropped messages: 0                                                             
Overwritten messages: 168                                                       
Current messages: 512                                                           
                                                                                
May 10 2012 11:12:59+00:00 Huawei %%01DEFD/4/CPCAR_DROP_MPU(l)[0]:Some packets are dropped by cpcar on the MPU. (Packet-type=arp-request, Drop-Count=684)                                                                           
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[1]:Interface Ethernet5/0/2 has turned into UP state.                                      
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[2]:Interface Ethernet5/0/1 has turned into UP state.                                      
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP on the interface Vlanif20 has entered the UP state.             
May 10 2012 11:08:37+00:00 Huawei %%01IFNET/4/IF_STATE(l)[4]:Interface Vlanif20 has turned into UP state.                                           
May 10 2012 11:08:37+00:00 Huawei %%01IFPDT/4/IF_STATE(l)[5]:Interface Ethernet5/0/0 has turned into UP state.                                      
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[6]:Interface GigabitEthernet5/0/0 has been available.                                    
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[7]:Interface Ethernet5/0/7 has been available.                                           
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[8]:Interface Ethernet5/0/6 has been available.                                           
May 10 2012 11:08:34+00:00 Huawei %%01IFNET/4/IF_ENABLE(l)[9]:Interface Ethernet5/0/5 has been available.       

display logfile

Function

The display logfile command displays information about a log file.

Format

display logfile file-name [ offset | hex ] *

Parameters

Parameter Description Value
file-name Specifies the log file name, which can contain the drive and path. The value is a string of 1 to 64 case-insensitive characters without spaces.
offset Displays the log file with the specified offset or byte.

The value is an integer that ranges from 0 to 2147483647.

hex Displays the log file in hexadecimal notation. If the parameter is not specified, the log file is displayed in text format. -

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.

If the version saved in a log file and the version generated by the system are different, the log file is displayed in hexadecimal notation.

The file name is generated automatically by the system. The file name extension of the log file is *.log or *.dblg.

If the size of the current log file reaches the upper threshold, the system transfers the log file into a historical compressed file.

Precautions

If the files you filter based on the pipe character are large and no qualified log file is displayed, the command may fail to display any output for a long period of time until the command execution finishes.

Example

# Display log information saved in the log file in hexadecimal notation.
<Huawei> display logfile usb0:/logfile/log.log
                                                                                
                                                                                
################################################################                
#     This logfile is generated at slot 0                                       
################################################################                
                                                                                
Apr 23 2011 11:06:51+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2011 11:06:51+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3487]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2011 11:06:53+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2011 11:06:53+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3488]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2011 11:06:53+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2011 11:06:53+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3489]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2011 11:06:55+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2011 11:06:55+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3490]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2011 11:06:56+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2011 11:06:56+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3491]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2011 11:06:58+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2011 11:06:58+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3492]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2011 11:06:59+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2011 11:06:59+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3493]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2011 11:07:00+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2011 11:07:00+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3494]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2011 11:07:01+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
Apr 23 2011 11:07:01+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3495]:Interface Ethern
et0/0/1 has turned into DOWN state.                                 
Apr 23 2011 11:07:03+00:00 huawei IFNET/6/IF_PVCUP:OID 1.3.6.1.6.3.1.1.5.4 Inter
face 6 turned into UP state.(AdminStatus 1,OperStatus 1,InterfaceName Ethernet0/
0/1)                                                                
Apr 23 2011 11:07:03+00:00 huawei %%01IFPDT/4/IF_STATE(l)[3496]:Interface Ethern
et0/0/1 has turned into UP state.                                   
Apr 23 2011 11:07:03+00:00 huawei IFNET/1/IF_PVCDOWN:OID 1.3.6.1.6.3.1.1.5.3 Int
erface 6 turned into DOWN state.(AdminStatus 1,OperStatus 2,InterfaceName Ethern
et0/0/1)                                                            
# Display log information saved in the log file in hexadecimal notation.
<Huawei> display logfile usb0:/logfile/log.log hex       
0d  0a  0d  0a  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  0d  0a  23  20  20  20  20  20  54  68  69  73  
20  6c  6f  67  66  69  6c  65  20  69  73  20  67  65  6e  65  72  61  74  65  
64  20  61  74  20  73  6c  6f  74  20  30  0d  0a  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  
23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  23  0d  0a  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  
00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  00  

display trapbuffer

Function

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

Format

display trapbuffer [ size value ]

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.

Views

All views

Default Level

3: Management level

Usage Guidelines

The display trapbuffer command displays the informationr 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: 29                                                            
                                                                                
#Sep 17 2012 17:09:47+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 17 2012 17:06:50+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=0, LldpStatsRemTables
Deletes=1, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 20:03:40+00:00 huawei ENTITYTRAP/4/CPUUSAGERESUME:OID 1.3.6.1.4.1.2
011.5.25.219.2.14.2 CPU utilization resumed from exceeding the pre-alarm thresho
ld.(Index=9, HwEntityThresholdIndex=0, HwEntityPhysicalIndex=9, PhysicalName="SR
U Board 0", EntityThresholdType=1, EntityThresholdWarning=80, EntityThresholdcu;sirsr
rent=23, EntityTrapFaultID=144896)                                              
#Sep 14 2012 18:15:27+00:00 huawei LLDP/4/ADDCHGTRAP:OID: 1.3.6.1.4.1.2011.5.25.
134.2.5 Local management address is changed. (LocManIPAddr=1.1.1.9)             
#Sep 14 2012 18:13:40+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 18:13:23+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=0, LldpStatsRemTables
Deletes=1, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 17:16:05+00:00 huawei ENTITYTRAP/4/CPUUSAGERESUME:OID 1.3.6.1.4.1.2
011.5.25.219.2.14.2 CPU utilization resumed from exceeding the pre-alarm thresho
ld.(Index=9, HwEntityThresholdIndex=0, HwEntityPhysicalIndex=9, PhysicalName="SR
U Board 0", EntityThresholdType=1, EntityThresholdWarning=80, EntityThresholdcu;sirsr
rent=9, EntityTrapFaultID=144896)                                               
#Sep 14 2012 17:15:37+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 17:15:37+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 17:15:34+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 17:15:33+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              
#Sep 14 2012 17:15:33+00:00 huawei LLDP/4/NBRCHGTRAP:OID: 1.0.8802.1.1.2.0.0.1 N
eighbor information is changed. (LldpStatsRemTablesInserts=1, LldpStatsRemTables
Deletes=0, LldpStatsRemTablesDrops=0, LldpStatsRemTablesAgeouts=0)              

# Display the first 10 records in the trap buffer.

<Huawei> display trapbuffer size 10
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: 600                                                       
Current messages: 256                                                           
                                                                                
#May  7 2012 15:12:40+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 15:07:35+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 15:02:19+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.217.150 exc
eeds the speed-limit value 5.                                                   
#May  7 2012 14:56:55+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 14:51:40+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 14:46:35+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 14:41:06+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.217.62 exce
eds the speed-limit value 5.                                                    
#May  7 2012 14:35:54+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 14:29:54+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.                                                     
#May  7 2012 14:24:39+00:00 Huawei SECE/4/ARP_SIP_SPEEDLIMIT_ALARM:OID=1.3.6.1.4
.1.2011.5.25.165.2.2.2.11 The arp packet speed with source ip 10.137.216.1 excee
ds the speed-limit value 5.       
Table 3-31  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 3-32  Default association between the channel number, channel name, and output direction of information channels

Channel Number

Channel Name

Output Direction

0

console

Console

1

monitor

User terminal

2

loghost

Log host

3

trapbuffer

Trap buffer

4

logbuffer

Log buffer

5

snmpagent

SNMP agent

6

channel6

Unspecified

7

channel7

Unspecified

8

channel8

Unspecified

9

channel9

Log file

Format

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

undo info-center { console | 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 value is a string of 1 to 30 case-sensitive characters. The value consists of letters or numbers and must start with a letter.

Views

System view

Default Level

2: Configuration 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 3-33  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 than 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-sensitive characters. The value consists of letters or numbers and must start with a letter.

Views

System view

Default Level

2: Configuration 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

2: Configuration 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.

PrecautionsFollow-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 Router to filter a specified log or trap.

The undo info-center filter-id command disables the Router 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 } * &<1-50>

undo info-center filter-id { all | { id | bymodule-alias modname alias } * &<1-50> }

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.
bymodule-alias modname alias Specifies the module name and alias name corresponding to the log or trap to be filtered.

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

2: Configuration level

Usage Guidelines

Usage Scenario

If some logs or traps are unnecessary, configure the Router 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.

An ID filter list is the aggregation of the shielded IDs and is arranged in a specified order.

Precautions

  • To add multiple IDs at a time, use a space to separate IDs. The result of each ID is displayed.

  • Currently, the Router can filter traps with a maximum of 50 IDs. If there are more than 50 log IDs, the system displays a message indicating that the filtering table is full. To configure the filtering function, run the undo info-center filter-id { all | { id | bymodule-alias modname alias } * &<1-50> } command to delete original IDs and reconfigure the log ID.

  • 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 the log with the ID of 1098731530.
<Huawei> system-view
[Huawei] info-center filter-id 1098731530
Info: Succeeded in appending log ID 1098731530.
# Filter information by module names and alias names.
<Huawei> system-view
[Huawei] info-center filter-id bymodule-alias CMD CLKCHGREBOOTCANCELED 
Info: Succeeded in appending log ID 3225948163.
# Cancel filtering for all logs.
<Huawei> system-view
[Huawei] undo info-center filter-id all
Info: Succeeded in deleting all IDs.   

info-center logbuffer

Function

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

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

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

Format

info-center logbuffer

undo info-center logbuffer

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

Example

# Enable the Router 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 1024. 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 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

2: Configuration 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. Logs are cleared only when the Router is restarted.

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 path

Function

The info-center logfile path command configures the path where log files are saved.

The undo info-center logfile path command cancels the path where log files are saved that are configured.

Format

info-center logfile path path

undo info-center logfile path

Parameters

Parameter Description Value
path

Specifies the path where log files are saved, which is in the format of storage medium name:/logfile, for example, usb0:/logfile.

Select the path according to device configuration.

By default, The system selects a storage medium in descending order of priority: rom, hdd0, hdd1, hdd2, hdd3, sd0, sd1, usb0, usb1, and flash.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the info-center logfile path command to set the path where log files are saved. Then log files are saved into the path and the file name is log.log. To view logs generated by the Router, run the save logfile command to save logs into a specified file or configure the Router to export information into a specified log file. Then run the display logfile command to view the log file.

Prerequisites

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

Example

# Configure the USB flash drive as the path where log files will be saved.

<Huawei> system-view
[Huawei] info-center logfile path usb0:/logfile

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

2: Configuration level

Usage Guidelines

Usage Scenario

To configure the Router 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 in to a zip package.When the storage space on the Router is smaller than 100 MB, the information center deletes the earliest log file.

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 } | facility local-number | language language-name | transport { udp | tcp ssl-policy policy-name } | { vpn-instance vpn-instance-name | public-net } | local-time ] *

info-center loghost ipv6 ipv6-address [ channel { channel-number | channel-name } | facility local-number | language language-name | transport { udp | tcp ssl-policy policy-name } | local-time ] *

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

undo info-center loghost ipv6 ipv6-address

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-sensitive characters. The value consists of letters or numbers and must start with a letter.

facility local-number Specifies the tool used by the log host to record information. The value ranges from local0 to local7. The default value is local7.
language language-name Displays the language in which logs are recorded.

Enumerated type. Currently, the value can only be English.

transport Indicates the information transport mode. -
udp Indicates the UDP transport mode. -
tcp Indicates the TCP transport mode. -
ssl-policy policy-name

Specifies a Secure Sockets Layer (SSL) policy in the TCP transport mode.

This parameter is recommended to improve log transmission security.

The value is a string of 1 to 31 case-sensitive characters. It cannot contain any space or question mark (?).
vpn-instance vpn-instance-name VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
public-net Indicates that the log host is connected in the public network. -
local-time Indicates the local time when logs are sent to the log host.
NOTE:

Only V200R007C00SPCb00 and later versions support the local-time parameter.

By default, the system sends logs to the log host at the Coordinated Universal Time (UTC).

ipv6 ipv6-address Specifies the IPv6 address of the log host. The value is a 32-digit hexadecimal number.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To query information generated on the Router deployed remotely, configure the Router 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 Router to export information to a log host.

To configure the Router 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 Router to output information to log hosts at 192.168.0.1 and 192.168.0.2 using channels 7 and 8 respectively.

Precautions

The Router can output information to eight log hosts including IPv4 and IPv6 hosts to implement backup among log hosts.

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

If the set net-manager vpn-instance command is run to configure the NMS to manage network elements through a VPN instance, either of the following situations occurs.
  • If vpn-instance is configured, the system accesses the log host in the VPN instance.

  • If public-net is configured, the system accesses the log host on the public network.

Example

# Configure a device to use channel 16 to output information to the log host with the IPv4 address 10.1.1.1.

<Huawei> system-view
[Huawei] info-center loghost 10.1.1.1 channel channel6 

# Configure the Router to send information to the log host with the IPv6 address FC00:0:0:3001::1.

<Huawei> system-view
[Huawei] info-center loghost ipv6 fc00:0:0:3001::1

# Configure the Router to send information to the host with the IPv4 address 192.168.2.2 and VPN instance name vpn1.

<Huawei> system-view
[Huawei] info-center loghost 192.168.2.2 vpn-instance vpn1
# Configure a device to send information to the log host with the IPv4 address 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 Router to send information to a log host.

The undo info-center loghost source command restores the default source interface used by the Router 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

2: Configuration 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 so as 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] quit
[Huawei] info-center loghost source loopback 0

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 2 to 500.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If too many log files are saved on the Router, 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 Router 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 rate-limit except

Function

The info-center rate-limit except command cancels the log processing rate limit for logs.

The undo info-center rate-limit except command deletes the preceding configuration.

Format

info-center rate-limit except { byinfoid infoID | bymodule-alias modname alias }

undo info-center rate-limit except { byinfoid infoID | bymodule-alias modname alias }

Parameters

Parameter Description Value
byinfoid infoID Specifies the log ID in hexadecimal notation.

The value is a 32-digit hexadecimal number in the format XXXXXXXX. It ranges from 0 to ffffffff.

bymodule-alias modname Specifies the log module name. The value is a string of 1 to 24 case-insensitive characters without spaces.
alias Specifies the log mnemonic name. The value is a string of 1 to 64 case-insensitive characters without spaces.

Views

System view

Default Level

3: Management level

Usage Guidelines

When too many logs will never be generated under a specified ID, you can run the info-center rate-limit except command to avoid the impact of the suppression of the log processing rate. After this command is run, the configured log processing rate limit will not be effective for logs with the specified ID or module name.

Example

# Prevent logs specified by the module name and mnemonic from being suppressed by the information center.
<Huawei> system-view
[Huawei] info-center rate-limit except bymodule-alias AAA AUTHEN_ERR_EVENT
# Prevent logs specified by the log ID from being suppressed by the information center.
<Huawei> system-view
[Huawei] info-center rate-limit except byinfoid ff5ad009
# Prevent logs with a specified log ID from being suppressed by the information center.
<Huawei> system-view
[Huawei] undo info-center rate-limit except bymodule-alias AAA AUTHEN_ERR_EVENT

info-center rate-limit global-threshold

Function

The info-center rate-limit global-threshold command sets the total number of logs that the information center can process every second.

The undo info-center rate-limit global-threshold command restores the default value.

By default, the information center processes a maximum of 400 logs in every second.

Format

info-center rate-limit global-threshold value

undo info-center rate-limit global-threshold

Parameters

Parameter Description Value
value Specifies the maximum number of logs that the information center can process every second. The value is an integer that ranges from 100 to 1000.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the info-center rate-limit global-threshold command to adjust the processing capability of the information center. If the number of logs to be processed exceeds the processing capability of the information center, the extra logs are discarded.

NOTE:
  • If the threshold is too low, some logs may be discarded.
  • If the threshold is too high, the information center cannot identify the log ID under which too many logs are generated. The number of logs to be processed depends on the current processing capacity of the information center.

Example

# Set the number of logs that the information center can process every second to 300.
<Huawei> system-view
[Huawei] info-center rate-limit global-threshold 300

info-center rate-limit monitor-period

Function

The info-center rate-limit monitor-period command sets the monitoring period for the information center to suppress the log processing rate.

The undo info-center rate-limit monitor-period command restores the default value.

By default, the monitoring period is 3 seconds.

Format

info-center rate-limit monitor-period value

undo info-center rate-limit monitor-period

Parameters

Parameter Description Value
value Specifies the monitoring period for the information center to suppress the log processing rate. The value is an integer ranging from 1 to 60, in seconds.

Views

System view

Default Level

3: Management level

Usage Guidelines

In the monitoring period specified by value, if the rate of sending a single log every second exceeds the threshold configured using the info-center rate-limit threshold command, the information center will limit the log processing rate. In this situation, the information center discards logs exceeding the threshold.

In the monitoring period that is five times value, if the number of a single type of logs that are sent every second is smaller than the threshold configured using the info-center rate-limit threshold command, the information center does not limit the log processing rate.

Example

# Set the monitoring period for the information center to suppress the log processing rate to 5 seconds.
<Huawei> system-view
[Huawei] info-center rate-limit monitor-period 5

info-center rate-limit threshold

Function

The info-center rate-limit threshold command sets the maximum number of logs with the same log ID that the information center can process every second.

The undo info-center rate-limit threshold command restores the default setting.

By default, the information center processes a maximum of 30 logs with the same log ID in every second.

Format

info-center rate-limit threshold value [ byinfoid infoID | bymodule-alias modname alias ]

undo info-center rate-limit threshold [ value ] [ byinfoid infoID | bymodule-alias modname alias ]

Parameters

Parameter Description Value
value Specifies the maximum number of logs with the same log ID that the information center can process every second. The value is an integer that ranges from 1 to 500.
byinfoid infoID Specifies the log ID. The value is a 32-digit hexadecimal number in the format XXXXXXXX. It ranges from 0 to ffffffff.
bymodule-alias modname Specifies the log of the module name. The value is a string of 1 to 24 case-insensitive characters without spaces.
alias Specifies the log of the mnemonic name. The value is a string of 1 to 64 case-insensitive characters without spaces.

Views

System view

Default Level

3: Management level

Usage Guidelines

You can run the info-center rate-limit threshold command to set the maximum number of logs with the same log ID that the information center can process every second. The information center monitors the number of logs that are generated every second under the same log ID. When the number of logs that are generated every second under the same log ID exceeds the threshold in the monitoring period, the information center decides that too many logs are generated and suppresses its log processing rate by processing only the conforming traffic (logs within the threshold) and discarding the non-conforming traffic (logs exceeding the threshold). When the number of logs that are generated every second under the same log ID falls below the threshold and remains below the threshold for five monitoring periods, the information center removes the suppression.

NOTE:

If the threshold value1 specified by the parameter byinfoid infoID or bymodule-alias modname alias differs from the threshold value0 specified globally, value1 takes effect.

By default, the information center processes a maximum of 30 logs with the same log ID in every second. In certain application scenarios, by default, the information center needs to process more than 50 logs with the same log ID in every second. You can set thresholds for logs with different log IDs.
NOTE:

Generally, the default threshold is recommended.

  • If the threshold is too low, some logs may be discarded.
  • If the threshold is too high, the information center cannot identify the log ID under which too many logs are generated.

Example

# Set the maximum number of logs that the information center can process every second to 60.
<Huawei> system-view
[Huawei] info-center rate-limit threshold 60
# Set the maximum number of logs identified by the same module name and mnemonic that the information center can process every second to 30.
<Huawei> system-view
[Huawei] info-center rate-limit threshold 30 bymodule-alias AAA AUTHEN_ERR_EVENT
# Set the maximum number of logs with the same log ID that the information center can process every second to 20.
<Huawei> system-view
[Huawei] info-center rate-limit threshold 20 byinfoid ff5ad009
# Restore the maximum number of logs that the information center can process every second to the default value.
<Huawei> system-view
[Huawei] undo info-center rate-limit threshold
# Cancel the restriction on the maximum number of logs with a specified log ID that the information center can process every second.
<Huawei> system-view
[Huawei] undo info-center rate-limit threshold bymodule-alias AAA AUTHEN_ERR_EVENT

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 3-34  Default rule for outputting information to a channel
Output Channel Module Enabled to Output Information Log Trap Debugging Message
Status Lowest Output Severity Status Lowest Output Severity Status Lowest Output Severity
0 (console) default on warning on debugging on debugging
1 (remote terminal) default on warning on debugging on debugging
2 (log host) default on informational on debugging off debugging
3 (trap buffer) default off informational on debugging off debugging
4 (log buffer) default on warning off debugging off debugging
5 (SNMP agent) default off debugging on debugging off debugging
6 (channel 6) default on debugging on debugging off debugging
7 (channel 7) default on debugging on debugging off debugging
8 (channel 8) default on debugging on debugging off debugging
9 (channel 9) default on debugging on debugging off debugging

Format

info-center source { module-name | default } channel { channel-number | channel-name } [ log { state { off | on } | level severity } * | trap { state { off | on } | level severity } * | debug { state { off | on } | level severity } * ] *

undo info-center source { module-name | default } channel { channel-number | channel-name }

Parameters

Parameter Description Value
module-name Specifies the module name. Enumerated type. The value depends on the registered module.
default Indicates the default module. -
channel-number Specifies the number of a channel. The value is an integer that ranges from 0 to 9.
channel-name Specifies the name of a channel. The value is a string of 1 to 30 case-sensitive characters. The value consists of letters or numbers and must start with a letter.
log { state { off | on } } Specifies the log status.
  • off: Logs are not sent.
  • on: Logs are sent.
-
log { level severity } Specifies the lowest severity of output logs.
Logs are classified into eight severities. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

trap { state { off | on } } Specifies the trap status:
  • off: Traps are not sent.
  • on: Traps are sent.
-
trap { level severity } Specifies the lowest severity of output traps.
Logs are classified into eight severities. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

debug { state { off | on } } Specifies the debugging message status.
  • off: Debugging messages are not sent.
  • on: Debugging messages are sent.
-
debug { level severity } Specifies the lowest severity of output debugging messages.
Logs are classified into eight severities. The following severities are listed in descending order of priority:
  • emergencies

  • alert

  • critical

  • error

  • warning

  • notification

  • informational

  • debugging

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To collect and query information generated on the Router, define severities for various type 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 3-35  Information severities

Value

Severity

Description

0

emergencies

A fault causes the device to fail to run normally unless it is restarted. For example, the device is restarted because of program exceptions or a memory error is detected.

1

alert

A fault needs to be rectified immediately. For example, memory usage of the system reaches the upper limit.

2

critical

A fault needs to be analyzed and processed. For example, the memory usage falls below the lower threshold; temperature falls below the alarm threshold; BFD detects that a device is unreachable or detects locally generated error messages.

3

error

An improper operation is performed or exceptions occur during service processing. The fault does not affect services but needs to be analyzed. For example, users enter incorrect commands or passwords; error protocol packets are received from other devices.

4

warning

Some events or operations may affect device running or cause service processing faults, which requires full attention. For example, a routing process is disabled; BFD detects packet loss; error protocol packets are detected.

5

notification

A key operation is performed to keep the device running normally. For example, the shutdown command is run; a neighbor is discovered; protocol status changes.

6

informational

A normal operation is performed. For example, a display command is run.

7

debugging

A normal operation is performed, which requires no attention.

Precautions

Each information channel has a default record with the module name default. The default configuration for logs, traps, and debugging messages in different channels may differ.

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

Example

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

<Huawei> system-view
[Huawei] info-center source CFM channel snmpagent log level warning

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

A large number of repeated logs are generated in a short time in some scenarios, for example, when ARP and VRRP are enabled and an ARP attack or route link failure occurs. 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.

Example

# Disable suppression of statistics about consecutive repeated logs.

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

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. Debugging information is accurate to milliseconds, and alarm and log information is accurate to seconds.

Format

info-center timestamp debugging { { date | short-date | format-date } [ precision-time { tenth-second | second } ] | boot | none }

info-center timestamp log { { date | short-date | format-date } [ precision-time { tenth-second | millisecond } ] | boot | none }

info-center timestamp trap { { date | short-date | format-date } [ precision-time { tenth-second | millisecond } ] | boot | none }

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. -
none Indicates that the output information does not contain the timestamp. -
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. -

Views

System view

Default Level

2: Configuration 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 3-36  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 identifies 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 Router to send traps to the trap buffer.

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

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

Format

info-center trapbuffer

undo info-center trapbuffer

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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

Example

# Enable the Router 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 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

2: Configuration level

Usage Guidelines

Usage Scenario

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

Prerequisites

The Router 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 recollect 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)[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

0: Visit level

Usage Guidelines

Usage Scenario

To reduce the number of times information is written into the storage device, information generated on the Router is saved into the log buffer before the information is saved into the log file. When the log file buffer is full, 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.After the log file is generated, the system clears logs in the log file buffer to save new logs.

Prerequisites

The path to save log files has been set by using the info-center logfile path command.

Example

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

<Huawei> save logfile
Info: It may take several seconds,please wait...  
Save log file successfully.

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

1: Monitoring 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 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

1: Monitoring 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

1: Monitoring 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 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 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

1: Monitoring 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-05-29

Document ID: EDOC1000097293

Views: 59003

Downloads: 105

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