Info-Center Logfile Switch-Directory - H3C S5830V2 Series Command Reference Manual

Network management and monitoring
Hide thumbs Also See for S5830V2 Series:
Table of Contents

Advertisement

undo info-center logfile size-quota
Default
The maximum storage space reserved for a log file is 10 MB.
Views
System view
Predefined user roles
network-admin
Parameters
size: Specifies the maximum storage space reserved for a log file, in MB.
Usage guidelines
The log file has a specific capacity. When the capacity is reached, the system will delete the earliest
messages and write new messages into the log file.
Examples
# Set the maximum storage space reserved 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 switch-directory

Use the info-center logfile switch-directory command to configure the directory used to save the log file.
Syntax
info-center logfile switch-directory dir-name
Default
The directory to save the log file is flash:/logfile.
Views
System view
Predefined user roles
network-admin
Parameters
dir-name: Specifies the directory where a log file is saved, which is a string of 1 to 64 characters.
Usage guidelines
Make sure that the directory is created before saving a log file into it.
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.
Typically, this command is used when you back up the log file or before moving the log file. The
configuration cannot survive a reboot or a master/slave switchover.
78

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2 series

Table of Contents