The info-center max-logfile-number command sets the maximum number of log files to be saved.
The undo info-center max-logfile-number command restores the default maximum number of log files to be saved.
By default, a maximum of 200 log files can be saved.
Parameter | Description | Value |
---|---|---|
filenumbers | Specifies the maximum number of log files that can be saved. | The value is an integer that ranges from 3 to 500. |
Usage Scenario
If too many log files are saved on the Switch, many disk space resources are occupied. To view log files generated recently, run the info-center max-logfile-number command to set the maximum number of log files that can be saved.
Precautions
If the number of log files generated on the Switch exceeds the limit, the system deletes the oldest log file so that the number of log files is not larger than the maximum value.