Task
Display the diagnostic log file configuration.
Display the information of each output destination.
Display the state and the log information of the log
buffer.
Display a summary of the log buffer.
Display the configuration of the log file.
Clear the log buffer.
Setting the minimum storage time for logs
Use this feature to set the minimum storage time for logs in the log buffer and log file. A log will not be
automatically deleted from the log buffer or log file if the time elapsed since the log was generated is
shorter than the minimum storage time. By default, the system automatically deletes the earliest logs
when the log buffer of log file is full, regardless of the log storage time.
To set the log minimum storage time:
Step
1.
Enter system view.
2.
Set the log minimum
storage time.
Information center configuration examples
Configuration example for outputting logs to the console
Network requirements
Configure the device to output to the console FTP logs that have a severity level of at least warning.
Figure 24 Network diagram
Configuration procedure
# Enable the information center.
<Device> system-view
[Device] info-center enable
# Disable log output to the console.
[Device] info-center source default console deny
To avoid output of unnecessary information, disable all modules from outputting log information to
the specified destination (console in this example) before you configure the output rule.
Command
display diagnostic-logfile summary
display info-center
display logbuffer [ reverse ] [ level severity | size
buffersize | slot slot-number ] *
display logbuffer summary [ level severity | slot
slot-number ] *
display logfile summary
reset logbuffer
Command
system-view
info-center syslog min-age min-age
78
Remarks
N/A
By default, the log minimum
storage time is not
configured.