Outputting Logs To The Log Buffer; Saving Logs To A Log File - H3C SR6600-X Configuration Manual

Hide thumbs Also See for SR6600-X:
Table of Contents

Advertisement

Outputting logs to the log buffer

Step
1.
Enter system view.
2.
Enable the information center.
3.
Enable log output to the log
buffer.
4.
(Optional.) Set the maximum
number of logs that can be
stored in the log buffer.
5.
Configure an output rule for
the log buffer.
6.
(Optional.) Configure the
timestamp format.

Saving logs to a log file

By default, the log file feature saves logs from the log file buffer to a log file every 24 hours. You can
adjust the saving interval or manually save logs to a log file. After saving logs to a log file, the system
clears the log file buffer.
The device supports multiple log files. Each log file has a maximum capacity. The log files are named as
logfile1.log, logfile2.log, and so on. When the maximum capacity of logfile1.log is reached, the system
compresses logfile1.log as logfile1.log.gz and creates a new log file named logfile2.log. You can
download the compressed log files. When the last log file is full or the storage device runs out of space,
the system deletes the oldest log file and creates a new one.
You can enable log file overwrite-protection to stop the device from saving new logs when the last log file
is full or the storage device runs out of space.
To save logs to a log file:
Step
1.
Enter system view.
2.
Enable the information center.
3.
Enable the log file feature.
4.
(Optional.) Enable log file
overwrite-protection.
Command
system-view
info-center enable
info-center logbuffer
info-center logbuffer size
buffersize
info-center source { module-name |
default } { console | monitor |
logbuffer | logfile | loghost }
{ deny | level severity }
info-center timestamp { boot | date
| none }
Command
system-view
info-center enable
info-center logfile enable
info-center logfile
overwrite-protection
[ all-port-powerdown ]
249
Remarks
N/A
By default, the information center is
enabled.
By default, log output to the log
buffer is enabled.
By default, the log buffer can store
512 logs.
For information about default
output rules, see
"Default output
rules for
logs."
By default, the timestamp format is
date.
Remarks
N/A
By default, the information center is
enabled.
By default, the log file feature is
enabled.
By default, log file
overwrite-protection is disabled.
This feature is supported only in
FIPS mode.

Advertisement

Table of Contents
loading

This manual is also suitable for:

R6600

Table of Contents