< Home

Outputting Logs to the Console

If you want to query logs generated on the FW on the console, you can configure the FW to output logs to the console.

Context

After this configuration, you can log in to the FW in console mode and view 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 the console.

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

    By default, channel 0 is used.

  4. Return to the system view.

    quit

  5. Enable the information display function of the terminal.

    terminal monitor

  6. Enable the log display function of the terminal.

    terminal logging

  7. Optional: Enable the log information synchronous display function of the terminal.

    terminal echo synchronous

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