488
Default
Duplicate log suppression is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
Outputting consecutive duplicate logs at an interval of less than 30 seconds wastes system and
network resources.
With this feature enabled, the system starts a suppression period when outputting a new log:
•
During the suppression period, the system does not output logs with 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 the first time, 2 minutes the second time, and 10 minutes for
subsequent times.
•
If a different log is generated during the suppression period, the system aborts the current
suppression period, outputs suppressed logs and the log number and then outputs the new log,
starting another suppression period.
Examples
Suppose the IP address of VLAN-interface 100 on device A conflicts with the IP address of another
device on the network, device A will output the following log information repeatedly:
%Jan 1 07:27:48:636 2000 Sysname ARP/6/DUPIFIP:
Duplicate address 172.16.0.1 on interface Vlan-interface100, sourced from 00e0-fc58-123d
# Enable duplicate log suppression on device A.
<Sysname> system-view
[Sysname] info-center logging suppress duplicates
Device A continues to output the following log information:
%Jan 1 07:27:48:636 2000 Sysname ARP/6/DUPIFIP:
Duplicate address 172.16.0.1 on interface Vlan-interface100, sourced from 00e0-fc58-123d
%Jan 1 07:28:19:639 2000 Sysname ARP/6/DUPIFIP:
Duplicate address 172.16.0.1 on interface Vlan-interface100, sourced from 00e0-fc58-123d
This message repeated 4 times in last 30 seconds.
The output shows that after the duplicate log suppression feature is enabled, the system outputs
another duplicate log and starts the first suppression period for 30 seconds.
%Jan 1 07:30:19:643 2000 Sysname ARP/6/DUPIFIP:
Duplicate address 172.16.0.1 on interface Vlan-interface100, sourced from 00e0-fc58-123d
This message repeated 20 times in last 2 minutes.
The output shows that the second suppression period lasts for 2 minutes.