< Home

Outputting Alarms to Log Files

If you want to save alarms as files on the FW, you can configure the FW to output alarms to log files.

Context

After this configuration, alarms are output to log files and saved on the FW. You can view the alarms to know the operating status of the FW.

Procedure

  1. Access the system view.

    system-view

  2. Add alarm information to the information channel.

    info-center source { module-name | default } channel { channel-number | channel-name } trap { state { off | on } | level severity } *

  3. Optional: Specify the information channel through which alarms are output to log files.

    info-center logfile channel { channel-number | channel-name }

    By default, channel 9 is used.

  4. Optional: Set the log file size.

    info-center logfile size size

    By default, the log file size is 8 MB.

  5. Optional: Set the maximum number of log files.

    info-center max-logfile-number filenumbers

    By default, the FW can save a maximum of 200 log files.

    If more log files are generated, the system deletes the earliest log files, ensuring that the number of log files is less than or equal to the threshold.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >