432
Syntax
info-center logfile directory dir-name
Default
Log files are 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 log file has a .log extension. When the default log file directory runs out of space, use this command
to specify a new log file directory.
This command cannot survive a reboot. (Centralized devices in standalone mode.)
This command cannot survive a reboot or an active/standby switchover. (Distributed devices in
standalone mode.)
This command cannot survive an IRF reboot or a master/subordinate switchover. (Centralized devices in
IRF mode.)
This command cannot survive an IRF reboot or a global active/standby switchover in an IRF fabric.
(Distributed devices in IRF mode.)
Examples
# Create a directory named test under the root directory of the CF card.
<Sysname> mkdir test
Creating directory cfa0:/test... Done.
# Set the log file directory to cfa0:/test.
<Sysname> system-view
[Sysname] info-center logfile directory cfa0:/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.
Syntax
info-center logging suppress duplicates
undo info-center logging suppress duplicates