1-3
display logbuffer
Syntax
display logbuffer [ unit unit-id ] [ level severity | size buffersize ]* [ | { begin | exclude | include }
regular-expression ]
View
Any view
Parameter
unit-id: Unit ID of the device, the value can only be 1.
level severity: Specifies an information severity level. The severity argument ranges from 1 to 8.
Table 1-2 Severity level defined in the information center
Severity Severity value Description
emergencies 1 The system is unavailable.
alerts 2 Information that demands prompt reaction
critical 3 Critical information
errors 4 Error information
warnings 5 Warnings
notifications 6 Normal information that needs to be noticed
informational 7 Informational information to be recorded
debugging 8 Information generated during debugging
size buffersize: Specifies the size of the log buffer (number of messages the log buffer holds) you want
to display. The buffersize argument ranges from 1 to 1,024 and defaults to 512.
|: Filters output log information with a regular expression.
begin: Displays the line that matches the regular expression and all the subsequent lines..
exclude: Displays the log information excluding the specified characters.
include: Displays the log information including the specified characters.
regular-expression: Regular expression.
Description
Use the display logbuffer command to display the status of the log buffer and the records in the log
buffer.
Example
# Display the status of the log buffer and the records in the log buffer.
<Sysname> display logbuffer
Logging buffer configuration and contents:enabled
Allowed max buffer size : 1024
Actual buffer size : 512
Channel number : 4 , Channel name : logbuffer