480
Syntax
info-center diagnostic-logfile enable
undo info-center diagnostic-logfile enable
Default
Saving diagnostic logs to the diagnostic log file is enabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
This command enables saving diagnostic logs to the diagnostic log file for centralized management.
Users can view the diagnostic logs to monitor device activities and to troubleshoot problems.
Examples
# Enable saving diagnostic logs to the diagnostic log file.
<Sysname> system-view
[Sysname] info-center diagnostic-logfile enable
info-center diagnostic-logfile frequency
Use
info-center diagnostic-logfile frequency
to configure the interval at which the system saves
diagnostic logs from the diagnostic log file buffer to the diagnostic log file.
Use
undo info-center diagnostic-logfile frequency
to restore the default.
Syntax
info-center diagnostic-logfile frequency
freq-sec
undo info-center diagnostic-logfile frequency
Default
The diagnostic log file saving interval is 86400 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
freq-sec
: Specifies the diagnostic log file saving interval in seconds. The value range is 10 to 86400.
Usage guidelines
The system outputs diagnostic logs to the diagnostic log file buffer, and then saves the buffered logs
to the diagnostic log file at the specified interval.