beautypg.com

Saving diagnostic logs to a diagnostic log file – H3C Technologies H3C MSR 5600 User Manual

Page 223

background image

210

Task Command

Remarks

Display a summary of the security
log file.

display security-logfile summary Available in user view.

Change the directory of the security
log file.

7.

system-view

8.

info-center security-logfile

directory dir-name

By default, the security log file is
saved in the seclog directory in the
root directory of the storage device.
The configuration made by this
command cannot survive a reboot.

(MSR 2600/MSR 3600.)
The configuration made by this

command cannot survive a reboot
or an active/standby switchover.

(MSR 5600.)

Manually save all the contents in
the security log file buffer into the

security log file.

security-logfile save

Available in any view.

Saving diagnostic logs to a diagnostic log file

Perform this task to enable saving diagnostic logs to a diagnostic log file at a specific interval. You can

also manually save diagnostic logs to a diagnostic log file.
The system saves diagnostic logs in the diagnostic log buffer, and outputs the buffered logs to a
diagnostic log file at a specified interval. The system performs the operations when the device is not busy,

for example, in the morning. You can also manually save the diagnostic logs. The system clears the

diagnostic log file buffer each time it outputs logs from the buffer to the diagnostic log file.
The router supports multiple diagnostic log files. Each diagnostic log file has a specific capacity. The
diagnostic log files are named as diagfile1.log, diagfile2.log, and so on. When the capacity of

diagfile1.log is reached, the system compresses diagfile1.log as diagfile1.log.gz and creates a new

diagnostic log file named diagfile2.log. You can download the compressed diagnostic log files. When

the maximum capacity of the last diagnostic log file is reached, or the storage device runs out of space,

the system deletes the earliest diagnostic log file and creates a new one.
To enable saving diagnostic logs to a diagnostic log file:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enable the information center. info-center enable

By default, the information center is
enabled.

3.

Enable saving diagnostic logs
to a diagnostic log file.

info-center diagnostic-logfile
enable

By default, saving diagnostic logs
to a diagnostic log file is enabled.

4.

(Optional.) Configure the
maximum size of a diagnostic

log file.

info-center diagnostic-logfile quota
size

The default setting is 5MB.
To ensure normal operation, set the
size argument to a value between

1 MB and 10 MB.

This manual is related to the following products: