< Home

Outputting Logs to a Terminal

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

Context

After this configuration, you can log in to the FW using Telnet or STelnet 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 terminal.

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

    By default, channel 1 is used.

  4. Return to the user 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 >