92
Syntax
info-center logfile size-quota
size
undo
info-center logfile size-quota
Default
The maximum size of the log file is 10 MB.
Views
System view
Predefined user roles
network-admin
Parameters
size:
Specifies the maximum size for the log file, in MB.
Usage guidelines
When the maximum size of the log file is reached, the system deletes the earliest messages and
writes new messages to the log file.
Examples
# Set the maximum size to 6 MB for the log file.
<Sysname> system-view
[Sysname] info-center logfile size-quota 6
Related commands
info-center logfile enable
info-center logfile directory
Use
info-center logfile directory
to configure the directory where the log file is saved.
Syntax
info-center logfile directory
dir-name
Default
The directory to save the log file is
flash:/logfile
.
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.
The suffix of the log file is .log. When the default directory has no enough space for storing the file,
you can specify a new directory for the log file.
The configuration made by this command cannot survive an IRF reboot or a master/subordinate
switchover.