< Home

info-center statistic-suppress enable

Function

The info-center statistic-suppress enable command enables the suppression of the statistics about repeatedly generated logs (logs with the same log ID).

The undo info-center statistic-suppress enable command disables the suppression of the statistics about repeatedly generated logs.

The info-center statistic-suppress disable command disables the suppression of the statistics about repeatedly generated logs.

Format

info-center statistic-suppress enable

undo info-center statistic-suppress enable

info-center statistic-suppress disable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

On the FW, service modules generate logs and control the volume of generated logs. The information center processes the received logs.

In some scenarios, service modules, such as ARP and VRRP, generate a large number of repeated logs within a short period. In this situation, you can run the info-center statistic-suppress enable command to enable the suppression of the statistics about repeatedly generated logs to protect the information center against the impact of the large log volume.
Logs that are generated consecutively and with the identical log ID and parameters can be regarded as repeatedly generated logs.

Statistics about repeatedly generated logs are first output at the 30th seconds from the time the first log is output, and then statistics about repeatedly generated logs are output at the 120th seconds. After being output two times, statistics about repeatedly generated logs are output every 600 seconds.

By default, once receiving a log, the information center outputs the log. If the information center receives repeatedly generated logs within a period, it outputs the number of these logs and will output logs only when it receives a new log (a log with a different log ID). For example, a module sends logs to the information center in the sequence of A1(T1) A2(T2) A3(T2) B2(T4) B3(T4) C1(T5) C2(T6) A4(T7) B4(T8) B5(T8) B5(T8) B7(T9) A5(T9) B8(T10) D1(T11) A6(T11) A7(T12) A8(T12) A9(T13) A10(T14) A11(T15) A12(T16) A13(T17) A14(T18) B9(T18). A1 to A14 are the same; B1 to B9 are the same; C1, C2 and D1 are different from others; T1 to T18 are sequence numbers. The log information output by the information center is as follows:
T1:A1
T3(1): last message repeated 2 times
T5: last message repeated 2 times
T5:C1
T6:C2
T8:B4
T9(1): last message repeated 3 times
T9:A5
T10:B8
T11:D1
T11:A6
T13(2): last message repeated 3 times
T18(2): last message repeated 5 times
T18:B9
Logs of the service module received by the information center show that:
  • Statistics about repeatedly generated logs are output when either of the following conditions is met:
    • The next log is a different log, as shown in (1).
    • The time period (the 30th seconds, the 120the seconds, and every 600 seconds) for outputting log statistics expires, as shown in (2).
  • Each time the statistics are output, the service module clears the count and starts counting again. For example, during the period from T11 to T18, log A is generated 9 times.
  • The information center outputs logs in the same sequence the logs are generated, making the trace of information and scenario easy.
Logs with the sequence being A B A B A B A B are alternate logs; therefore, the info-center statistic-suppress enable command is unable to suppression the statistics about these logs.

By default, the suppression of the statistics about repeatedly generated logs is enabled.

Example

# Enable the suppression of the statistics about repeatedly generated logs.

<sysname> system-view
[sysname] info-center statistic-suppress enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >