HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference
237
Default
The maximum size of a log file is 5 MB.
Views
System view
Predefined user roles
network-admin
Parameters
size: Specifies the maximum size for a log file, in the range of 1 to 10 MB.
Usage guidelines
The router support multiple log files. Each log file has a specific capacity. When the capacity is reached,
the system creates a new log file to save new messages. The log files are named as logfile1.log,
logfile2.log, and so on. When the last log file is full or the storage device runs out of space, the system
deletes the oldest log file and creates a new one.
Examples
# Set the maximum size for a log file to 6 MB.
<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 a log file is saved.
Syntax
info-center logfile directory dir-name
Default
The log file is saved in the logfile 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 64 characters.
Usage guidelines
The specified directory must have been created.
The suffix of a 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 a reboot. (MSR2000/MSR3000.)