No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

NE20E-S2 V800R010C10SPC500 Configuration Guide - System Management 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - System Management
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Outputting Information to a Terminal or a Remote Server

Outputting Information to a Terminal or a Remote Server

The specified information can be output to a console, remote terminal, syslog server, or SNMP agent through different channels.

Usage Scenario

The system logs information about device operation in real time. After configuring logs to be output to a terminal or a remote server, you can view logs saved on the log host to assist in understanding the device operation.

Prerequisites

Before outputting information to a terminal or a remote server, ensure that the device is powered on correctly and the self-test is successful.

Configuration Procedures

Perform one or more of the following configurations as required.

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.

NOTE:

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

      Display debugging, log, or trap information 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.

Outputting Information to a Remote Terminal

Information can be output to a console for the query of users logging in to the device through Virtual Type Terminal (VTY) or Telnet. 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 remote terminal. This enables the administrator to monitor the device operation and diagnose network faults remotely.

NOTE:

In this document, logs, traps, and debugging information are output to a remote terminal.

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 monitor channel { channel-number | channel-name }

      The channel through which information is output to the remote terminal 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 a remote terminal.

    Information is displayed on the screen of the remote terminal 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

      Display debugging, log, or trap information 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.

Sending Information to a Syslog Server

Information can be sent to a Syslog server for user query. This allows users to learn the device operation in real time.

Context

When a device is working, the system records the operating status of the device in real time and generates certain information. If the UDP port number, information recording device, and information severity are specified for a Syslog server of a specified IP address, information is sent to the Syslog for query. This allows the network administrator to monitor the device operation and diagnose network faults.

NOTE:

In this document, logs and traps are sent to a Syslog server.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run info-center enable

    Information management is enabled to send 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 Syslog packet-priority priority-level

    The output priority of Syslog packets is configured.

  5. Run info-center loghost source interface-type interface-number

    The source interface through which the device sends information to the Syslog server is configured.

    After the configuration is complete, if the device sends information to the Syslog server, the Syslog server can check the source address to determine whether the information is sent from the device and can search the received information.

  6. Run info-center loghost source-port source-port

    The source interface through which the device sends information to the log host is configured.

  7. Send information to a specified Syslog server.

    • On an IPv4 network, run info-center loghost ipv4-address [ { public-net | vpn-instance vpn-instance-name } | channel { channel-number | channel-name } | source-ip source-ip-address | facility local-number | port port-number | level log-level | { local-time | utc } | transport { udp | tcp [ ssl-policy policy-name [ verify-dns-name dns-name ] ] } ] *

      The device is configured to send information to a specified Syslog server.

    • On an IPv6 network, run info-center loghost ipv6 ipv6-address [ { public-net | vpn-instance vpn-instance-name } | facility local-number | source-ip source-ipv6-address | channel { channel-number | channel-name } | port port-number | level log-level | { local-time | utc } | transport { udp | tcp [ ssl-policy policy-name [ verify-dns-name dns-name ] ] } ] *

      The device is configured to send information to a specified Syslog server.

    By default, a device sends logs to a Syslog server over UDP. To improve transmission security, you can configure TCP-based SSL encrypted transmission by specifying transport tcp ssl-policy policy-name parameter.
    NOTE:
    Before configuring TCP-based SSL encrypted transmission, configure an SSL policy and load a digital certificate. For detailed configuration procedure, see Configuring and Binding an SSL Policy.

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

    Rules for sending information through information channels are configured.

  9. Run commit

    The configuration is committed.

Outputting Information to an SNMP Agent

This section describes how to output information to an SNMP agent. Users can learn the device operation by using an NMS to view information.

Context

When a system fault or an emergent event (such as the restart of a managed device) occurs, the device generates a log and also sends a trap through an SNMP agent to the NMS server. The information can be output to an SNMP agent, and can be further output to a network management terminal. Users can check the information on the network management terminal to monitor the device operation in real time or collect information about the device operation.

NOTE:

In this document, traps are output to an SNMP agent.

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 snmp channel { channel-number | channel-name }

      The channel through which information is output to an SNMP agent 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 } } * ]*

      Rules for outputting information through information channels are configured.

  2. Run snmp-agent

    The SNMP agent function is enabled.

    The SNMP agent can receive information normally only after the SNMP agent function is enabled.

    NOTE:

    For details on how to configure the SNMP agent, see the chapter "SNMP Configuration" in the Configuration Guide.

  3. Run commit

    The configuration is committed.

Verifying the Configuration of Outputting Information to a Terminal or a Remote Server

After configuring information management, verify the configuration.

Prerequisites

Information has been output to a terminal or remote server.

Procedure

  • Run the display channel [ channel-number | channel-name ] command to check the channel through which information is output.
  • Run the display info-center [ statistics ] command to check the information that information management records.

Example

Run the display channel [ channel-number | channel-name ] command to view information about information channels.

<HUAWEI> display channel
channel number:0, channel name:console
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      warning       Y      debugging     Y      debugging

channel number:1, channel name:monitor
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      warning       Y      debugging     Y      debugging

channel number:2, channel name:loghost
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      informational Y      debugging     N      debugging

channel number:3, channel name:trapbuffer
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  N      informational Y      debugging     N      debugging

channel number:4, channel name:logbuffer
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      warning       N      debugging     N      debugging

channel number:5, channel name:snmpagent
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  N      debugging     Y      debugging     N      debugging

channel number:6, channel name:channel6
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      debugging     Y      debugging     N      debugging

channel number:7, channel name:channel7
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      debugging     Y      debugging     N      debugging

channel number:8, channel name:channel8
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      debugging     Y      debugging     N      debugging

channel number:9, channel name:channel9
MODU_ID  NAME     ENABLE LOG_LEVEL     ENABLE TRAP_LEVEL    ENABLE DEBUG_LEVEL
ffffffff default  Y      debugging     Y      debugging     Y      debugging

Run the display info-center command to view information that information management records.

<HUAWEI> display info-center
Information Center:enabled
Log host:
        10.0.0.1, channel number 2, channel name loghost,
Console:
        channel number : 0, channel name : console
Monitor:
        channel number : 1, channel name : monitor
SNMP Agent:
        channel number : 5, channel name : snmpagent
Log buffer:
        enabled,max buffer size 10240, current buffer size 512,
current messages 506, channel number : 4, channel name : logbuffer
dropped messages 0, overwritten messages 0
Trap buffer:
        enabled,max buffer size 1024, current buffer size 256,
current messages 256, channel number:3, channel name:trapbuffer
dropped messages 0, overwritten messages 1057
logfile:
        channel number : 9, channel name : channel9, language : English
Information timestamp setting:
        log - date, trap - date, debug - date millisecond
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055400

Views: 19812

Downloads: 30

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next