R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)
367
Syntax
info-center diagnostic-logfile enable
undo info-center diagnostic-logfile enable
Default
Saving diagnostic logs into the diagnostic log file is enabled.
Views
System view
Predefined user roles
network-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
Parameters
freq-sec: Specifies the interval at which the system saves diagnostic logs from the diagnostic log file buffer
to the diagnostic log file. The value range is 10 to 86400 seconds.
Usage guidelines
The system saves diagnostic logs in the diagnostic log buffer, and outputs the buffered diagnostic logs to
the diagnostic log file at the specified interval.