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

369
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 command cannot survive a reboot. (MSR2000/MSR3000.)
The command cannot survive a reboot or an active/standby switchover. (MSR4000.)
Examples
# Set the directory to save the diagnostic log file to caf0:/test.
<Sysname> mkdir test
Creating directory caf0:/test... Done.
<Sysname> system-view
[Sysname] info-center diagnostic-logfile directory caf0:/test
info-center logfile overwrite-protection
Use info-center logfile overwrite-protection to enable log file overwrite-protection. When the last log file
is full or the storage device runs out of space, the device stops saving logs into the log files.
Use undo info-center logfile overwrite-protection to disable log file overwrite-protection. When the last
log file is full or the storage device runs out of space, the device deletes the oldest log file and creates a
new one
Syntax
info-center logfile overwrite-protection [ all-port-powerdown ]
undo info-center logfile overwrite-protection
Default
Log file overwrite-protection is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
all-port-powerdown: Shuts down all the service ports on the device when the last log file is full or the
storage device runs out of space.
Usage guidelines
This command is supported only in FIPS mode.
Examples
# Enable log file overwrite-protection.
<Sysname> system-view
[Sysname] info-center logfile overwrite-protection