R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

374
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
Log files are stored 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 command cannot survive a reboot. (MSR2000/MSR3000.)
The command cannot survive a reboot or an active/standby switchover. (MSR4000.)
Examples
# Create a directory named test under the root directory caf0.
<Sysname> mkdir test
Creating directory caf0:/test... Done.
# Set the directory to save the log file as caf0:/test.
<Sysname> system-view
[Sysname] info-center logfile directory caf0:/test
Related commands
info-center logfile enable
info-center logging suppress duplicates
Use info-center logging suppress duplicates to enable duplicate log suppression.
Use undo info-center logging suppress duplicate to restore the default.