Outputting Information to a Console

Information can be output to a console for the query of users logging in to the device through a serial interface. This allows users to learn the operating status of the device.

Context

When a device is working, the system records the operating status of the device in real time and generates certain information. After the information management function is enabled, the information can be output to a console. This enables the administrator to monitor the device operation and diagnose network faults on the local device.

In the document, logs, traps, and debugging information are output to a console.

Procedure

  1. Configure information to be output through channels.
    1. Run system-view

      The system view is displayed.

    2. Run info-center enable

      Information management is enabled to output information to a terminal or remote server.

    3. (Optional) Run info-center channel channel-number name channel-name

      The information channel specified by channel-number is named channel-name.

    4. (Optional) Run info-center console channel { channel-number | channel-name }

      The channel through which information is output to the console is configured.

    5. Run info-center source { module-name | default } channel { channel-number | channel-name } [ log { state { off | on } | level severity } * | trap { state { off | on } | level severity } * | debug { state { off | on } | level severity } * ]*

      Rules for outputting information through information channels are configured.

    6. Run quit

      Return to the user view.

    7. Run commit

      The configuration is committed.

  2. The display function is enabled on the console.

    Information is displayed on the screen of the console only after this function is enabled.

    1. In the user view, run terminal monitor

      Displaying logs, traps, and debugging information on the remote terminal is enabled.

    2. In the user view, run terminal logging

      Displaying logs on the remote terminal is enabled.

    3. (Optional) In the user view, run terminal echo synchronous

      Displaying logs synchronously on a terminal is enabled.

    4. In the user view, run terminal debugging

      Displaying debugging information on the remote terminal is enabled.

    5. In the user view, run terminal alarm

      Displaying traps on the remote terminal is enabled.

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