display logbuffer [ size size | slot slot-id | module module-name | security | level { severity | level } ] *
display logbuffer summary [ level severity | slot slot-id ] *
display logbuffer order by module
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. |
security | Specifies the security logs. | - |
slot slot-id | Displays logs in a specified slot. |
The value must be set according to the device configuration. |
level { severity | level } | Displays logs of specified severity name or ID.
|
The value of severity is an integer that
ranges from 0 to 7.
The value of level is the enumerated
type:
|
summary | Displays the summary of logs in the log buffer. |
- |
order by module | Displays logs in the order of the modules to which they belong to. NOTE:
|
- |
The display logbuffer command displays the information of recent logs. If the actual number of logs is smaller than the value specified by size, the system displays logs of the actual number.
# 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 : 0 Current messages : 43 Oct 16 2013 06:06:48 HUAWEI %%01VFS/4/DISKSPACE_NOT_ENOUGH(l)[3]:Disk space is insufficient. The system begins to delete unused log files. Oct 10 2013 19:06:48 HUAWEI %%01VFS/4/DISKSPACE_NOT_ENOUGH(l)[4]:Disk space is insufficient. The system begins to delete unused log files. Oct 7 2013 16:36:48 HUAWEI %%01VFS/4/DISKSPACE_NOT_ENOUGH(l)[5]:Disk space is insufficient. The system begins to delete unused log files. Oct 5 2013 09:12:22 HUAWEI %%01EZOP/3/PROCESS_STOP(l)[6]:Easy-operation upgrad e process has been stopped. (Reason=There is a configuration file in this device) Oct 5 2013 09:09:29 HUAWEI %%01IFNET/4/IF_ENABLE(l)[7]:Interface XGigabitEther net0/0/4 has been available. Oct 5 2013 09:09:29 HUAWEI %%01IFNET/4/IF_ENABLE(l)[8]:Interface XGigabitEther net0/0/3 has been available. Oct 5 2013 09:09:29 HUAWEI %%01IFNET/4/IF_ENABLE(l)[9]:Interface XGigabitEther net0/0/2 has been available. Oct 5 2013 09:09:29 HUAWEI %%01IFNET/4/IF_ENABLE(l)[10]:Interface XGigabitEthe rnet0/0/1 has been available. Oct 5 2013 09:09:29 HUAWEI %%01IFNET/4/CARD_ENABLE(l)[11]:Board 0 card 1 has b een available. Oct 5 2013 09:09:24 HUAWEI %%01ALML/4/ENT_PLUG_IN(l)[12]:LS51S24CA frame[1] bo ard[0]'s card[1] was plugged in. Oct 5 2013 09:09:22 HUAWEI %%01IFNET/4/IF_ENABLE(l)[13]:Interface GigabitEther net0/0/24 has been available. Oct 5 2013 09:09:22 HUAWEI %%01IFNET/4/IF_ENABLE(l)[14]:Interface GigabitEther net0/0/23 has been available. Oct 5 2013 09:09:21 HUAWEI %%01IFNET/4/IF_ENABLE(l)[15]:Interface GigabitEther net0/0/22 has been available. Oct 5 2013 09:09:21 HUAWEI %%01IFNET/4/IF_ENABLE(l)[16]:Interface GigabitEther net0/0/21 has been available. Oct 5 2013 09:09:20 HUAWEI %%01IFNET/4/IF_ENABLE(l)[17]:Interface GigabitEther net0/0/20 has been available. Oct 5 2013 09:09:20 HUAWEI %%01IFNET/4/IF_ENABLE(l)[18]:Interface GigabitEther net0/0/19 has been available. Oct 5 2013 09:09:20 HUAWEI %%01IFNET/4/IF_ENABLE(l)[19]:Interface GigabitEther net0/0/18 has been available. Oct 5 2013 09:09:19 HUAWEI %%01IFNET/4/IF_ENABLE(l)[20]:Interface GigabitEther net0/0/17 has been available. Oct 5 2013 09:09:19 HUAWEI %%01IFNET/4/IF_ENABLE(l)[21]:Interface GigabitEther net0/0/16 has been available. Oct 5 2013 09:09:18 HUAWEI %%01IFNET/4/IF_ENABLE(l)[22]:Interface GigabitEther net0/0/15 has been available. Oct 5 2013 09:09:18 HUAWEI %%01IFNET/4/IF_ENABLE(l)[23]:Interface GigabitEther net0/0/14 has been available. ---- More ----
<HUAWEI> display logbuffer order by module 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 : 0 Current messages : 113 Nov 10 2010 16:16:53 HUAWEI %%01DHCP/4/DHCP_INFO_LOG_DHCP_REMOTEBACKUP_FAILED(l)[0]:Saving the dynamic binding table to a remot e server failed. Ensure that the FTP/SFTP server address is reachable and the FTP/SFTP user name and password and the file path are correct. Nov 10 2010 10:38:23 HUAWEI %%01INFO/4/SUPPRESS_LOG(l)[1]:Last message repeated 1 times.(InfoID=1077493787, ModuleName=SHELL, I nfoAlias=LOGINFAILED) Nov 10 2010 10:19:42 HUAWEI %%01SHELL/4/LOGINFAILED(s)[2]:Failed to login. (Ip=10.134.27.157, UserName=**, Times=3, AccessType= TELNET, VpnName=) Nov 10 2010 10:19:42 HUAWEI %%01SHELL/4/LOGIN_FAIL_FOR_INPUT_TIMEOUT(s)[3]:Failed to log in due to timeout.(Ip=10.134.27.157, U serName=**, Times=3, AccessType=TELNET, VpnName=) Nov 10 2010 10:18:02 HUAWEI %%01SHELL/4/LOGINFAILED(s)[4]:Failed to login. (Ip=10.134.27.157, UserName=**, Times=2, AccessType= TELNET, VpnName=) Nov 10 2010 10:18:02 HUAWEI %%01SHELL/4/LOGIN_FAIL_FOR_INPUT_TIMEOUT(s)[5]:Failed to log in due to timeout.(Ip=10.134.27.157, U serName=**, Times=2, AccessType=TELNET, VpnName=) Nov 10 2010 10:16:27 HUAWEI %%01SHELL/4/LOGINFAILED(s)[6]:Failed to login. (Ip=10.134.27.157, UserName=**, Times=1, AccessType= TELNET, VpnName=) Nov 10 2010 10:16:27 HUAWEI %%01SHELL/4/LOGIN_FAIL_FOR_INPUT_TIMEOUT(s)[7]:Failed to log in due to timeout.(Ip=10.134.27.157, U serName=**, Times=1, AccessType=TELNET, VpnName=) Nov 9 2010 19:51:57 HUAWEI %%01SHELL/4/LOGINFAILED(s)[8]:Failed to login. (Ip=10.134.27.157, UserName=**, Times=1, AccessType= TELNET, VpnName=)
Item |
Description |
---|---|
Logging buffer configuration and contents |
Whether the device is enabled to output logs to the log
buffer:
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
SLOT EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 0 36 476 0 0 0
Item |
Description |
---|---|
SLOT |
ID of the slot where logs are generated. |
EMERG |
Number of logs of emergency. |
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. |