Info-Center Logging Suppress Duplicates - H3C S5830V2 Series Command Reference Manual

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

Advertisement

Examples
# Create a directory with the name test under flash root directory.
<Sysname> mkdir test
Directory flash:/test created.
# Set the directory to save the log file to flash:/test.
<Sysname> system-view
[Sysname] info-center logfile switch-directory flash:/test
Related commands
info-center logfile enable

info-center logging suppress duplicates

Use the info-center logging suppress duplicates command enable duplicate log suppression.
Use the undo info-center logging suppress duplicate command to restore the default.
Syntax
info-center logging suppress duplicates
undo info-center logging suppress duplicates
Default
Duplicate log suppression is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The output of consecutive duplicate logs at an interval of less than 30 seconds wastes system and network
resources, making it difficult for network administrators to find useful information and maintain the
device.
With this feature enabled, the system starts a suppression period upon outputting a new log:
During the suppression period, the system does not output logs that have the same module name,
level, mnemonic, location, and text as the previous log.
After the suppression period expires, if the same log continues to appear, the system outputs the
suppressed logs and the log number and starts another suppression period. The suppression period
is 30 seconds for the first time, 2 minutes for the second time, and 10 minutes for subsequent times.
During the suppression period, If a different log is generated, the system aborts the current
suppression period, outputs suppressed logs as well as the log number and then the different log,
and starts another suppression period.
Examples
# Enable duplicate log suppression.
<Sysname> system-view
[Sysname] info-center logging suppress duplicates
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2 series

Table of Contents