375
•
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 that 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 function 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 the second suppression period lasts for 2 minutes.
%Jan 1 07:30:20:541 2000 Sysname ARP/6/DUPIFIP:
Duplicate address 172.16.0.1 on interface Vlan-interface100, sourced from 00e0-fc58-123d
This message repeated 1 times in last 1 second.
%Jan 1 07:30:19:542 2000 Sysname CFGMAN/5/CFGMAN_CFGCHANGED:
-EventIndex=[12]-CommandSource=[2]-ConfigSource=[4]-ConfigDestination=[2];
Configuration is changed.
The output shows that a different log is generated during the suppression period.
%Jan 1 07:30:24:643 2000 Sysname ARP/6/DUPIFIP:
Duplicate address 172.16.0.1 on interface Vlan-interface100, sourced from 00e0-fc58-123d
%Jan 1 07:30:55:645 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 the system starts another suppression period.
info-center logging suppress module
Use
info-center logging suppress module
to configure a log suppression rule for a module.
Use
undo info-center logging suppress module
to delete a log suppression rule.
Syntax
info-center logging suppress module
module-name
mnemonic
{
all
|
mnemonic-value
}
undo info-center logging suppress module
module-nam
e
mnemonic
{
all
|
mnemonic-value
}
Default
The device does not suppress output of any logs from any modules.