R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)

267
Parameters
reverse: Displays log entries chronologically, with the most recent entry at the top. Without this keyword,
the command displays log entries chronologically, with the oldest entry at the top.
level severity: Displays log information of the specified level in the range of 0 to 7.
Table 61 Severity description
Severity Value Description
Corresponding
keyword in
commands
Emergency 0 The system is unusable. emergencies
Alert 1
Action must be taken
immediately.
alerts
Critical 2 Critical condition. critical
Error 3 Error condition.
errors
Warning 4 Warning condition. warnings
Notification 5
Normal but significant
condition.
notifications
Informational 6 Informational message. informational
Debug 7 Debug message. debugging
size buffersize: Specifies the number of latest log messages to be displayed, in the range of 1 to 1024.
|: Filters command output by specifying a regular expression. For more information about regular
expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Examples
# Display the state and log information of 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
Dropped messages : 0
Overwritten messages : 718
Current messages : 512
%Jun 17 15:57:09:578 2006 Sysname IC/7/SYS_RESTART:
System restarted –