Syntax
info-center diagnostic-logfile enable
undo info-center diagnostic-logfile enable
Default
Saving diagnostic logs to the diagnostic log file is disabled.
Views
System view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
This command enables the system to save generated diagnostic logs to the diagnostic log file for
centralized management. This facilitates users in monitoring device activities and debugging problems
by viewing the diagnostic logs.
Examples
# Enable saving diagnostic logs into 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 saving interval.
Syntax
info-center diagnostic-logfile frequency freq-sec
undo info-center diagnostic-logfile frequency
Default
The default saving interval is 86400 seconds.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
freq-sec: Specifies the interval at which the system saves diagnostic logs from the diagnostic log file buffer
to the diagnostic log file, in the range 10 to 86400 seconds.
212