87
Views
System view
Predefined user roles
network-admin
Parameters
size:
Specifies the maximum size of the diagnostic log file, in the range of 1 to 10 MB.
Examples
# Set the maximum size to 6 MB for the diagnostic log file.
<Sysname> system-view
[Sysname] info-center diagnostic-logfile quota 6
info-center diagnostic-logfile directory
Use
info-center diagnostic-logfile directory
to configure the directory to save the diagnostic log
file.
Syntax
info-center diagnostic-logfile directory dir-name
Default
The diagnostic log file is saved in the
diagfile
directory under the root directory of the storage device.
Views
System view
Predefined user roles
network-admin
Parameters
dir-name
: Specifies a directory by its name, a string of 1 to 511 characters.
Usage guidelines
The specified directory must have been created.
This command cannot survive an IRF reboot or a master/subordinate switchover.
Examples
# Set the diagnostic log file directory to
flash:/test
.
<Sysname> mkdir test
Creating directory flash:/test... Done.
<Sysname> system-view
[Sysname] info-center diagnostic-logfile directory flash:/test
The directory is in primary partition.
info-center logfile overwrite-protection
Use
info-center logfile overwrite-protection
to enable log file overwrite-protection. When the log
file is full or the storage media runs out of space, the device stops saving logs to the log file.
Use
undo info-center logfile overwrite-protection
to disable log file overwrite-protection. When
the log file is full or the storage media runs out of space, the device overwrites old logs with new logs.