R2511-HP MSR Router Series Network Management and Monitoring Command Reference(V5)
280
Examples
# Set the maximum storage space reserved for a log file to 6 MB.
<Sysname> system-view
[Sysname] info-center logfile size-quota 6
info-center logfile switch-directory
Use info-center logfile switch-directory to configure the directory where a log file is saved.
Syntax
info-center logfile switch-directory dir-name
Default
A log file is saved in the logfile directory under the root directory of the storage device.
Views
System view
Default command level
2: System level
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 configuration made by this command cannot survive a system restart.
The following matrix shows the command and router compatibility:
Command MSR900 MSR93X
MSR20-1X MSR20
MSR30 MSR50 MSR1000
info-center logfile
switch-directory
Yes. Yes. No. Yes. Yes. Yes. Yes.
Examples
# Create a directory with the name test under flash root directory.
<Sysname> mkdir test
%Created dir flash:/test.
# Set the directory to save the log file to flash:/test.
<Sysname> system-view
[Sysname] info-center logfile switch-directory flash:/test
info-center loghost
Use info-center loghost to specify a log host and configure output parameters.
Use undo info-center loghost to restore the default.










