< Home

Outputting Logs to Log Files

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

Context

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

Procedure

  1. Access the system view.

    system-view

  2. Add log information to the information channel.

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

  3. Optional: Specify the information channel through which logs 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

    The default value is 100 for the USG6000E.

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

  6. Optional: Save configurations to a log file.

    save logfile

  7. Optional: Set the sizes of the system log file and diagnosis log file in the log directory on the CF card.

    info-center logfile-storage size

    For the USG6510E/6510E-POE, the log space ranges from 36 MB to 75 MB, and the default space is 50 MB. For other device models, the log space ranges from 36 MB to 300 MB, and the default space is 200 MB.

    When the log file storage space in the log directory on the CF card reaches the maximum value, the system will send INFO_1.3.6.1.4.1.2011.5.25.212.2.3 hwICInsufficientSpace to instruct users to clear useless data or expand the available disk space.

  8. Optional: Set a storage space threshold for the system log file and diagnosis log file in the log directory on the CF card.

    info-center logfile-storage threshold

    The default threshold is 80%.

    When the used log file storage space in the log directory on the CF card reaches the configured threshold, the system will send INFO_1.3.6.1.4.1.2011.5.25.212.2.7 hwICLogFileStorageThreshold to instruct users to clear useless data or expand the available disk space.

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