R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)

188
Ste
p
Command
Remarks
5. Configure an output rule for
the Web interface.
info-center source { module-name |
default } channel { channel-number
| channel-name } [ debug { level
severity | state state }* | log { level
severity | state state }* | trap
{ level severity | state state }* ]*
Optional.
See "Default output rules of system
informati
on."
6. Configure the timestamp
format.
info-center timestamp { debugging
| log | trap } { boot | date | none }
Optional.
The timestamp format for log, trap
and debug information is date by
default.
Saving system information to a log file
By default, the log file feature saves system information from the log file buffer to a log file every 24 hours.
You can adjust the saving interval or manually save system information to a log file. After saving
information into a log file, the system clears the log file buffer.
The router supports multiple log files. Each log file has a specific capacity. When the capacity is reached,
the system creates a new log file to save new messages. The log files are named as logfile1.log,
logfile2.log, and so on. If the number of log files reaches the upper limit, or the storage device runs out
of space, the system deletes the earliest log file and creates a new one.
Saving system information to a log file (MSR900, MSR93X, MSR20, MSR30, or MSR50)
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable the information center.
info-center enable
Optional.
Enabled by default.
3. Enable the log file feature.
info-center logfile enable
Optional.
Enabled by default.
4. Configure the interval at
which the system saves logs in
the log buffer to a log file.
info-center logfile frequency
freq-sec
Optional.
The default saving interval is
86400 seconds.
5. Enable log file
overwrite-protection.
info-center logfile
overwrite-protection
[ all-port-powerdown ]
By default, log file
overwrite-protection is disabled.
This feature enables the system to
stop saving new system
information into log files when the
last log file is full or the storage
device runs out of space.
This feature is supported only in
FIPS mode.
6. Configure the maximum size
of the log file.
info-center logfile size-quota size
Optional.
The default setting is 10 MB.