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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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).
Configuration Examples

Configuration Examples

This section provides an example for configuring assistants, including networking requirements, configuration roadmap, and configuration procedure.

Example for Configuring an Assistant for Automatic Health Check

Networking Requirements

As shown in Figure 3-32, the remote server is a TFTP server. SwitchA and the TFTP server have reachable routes to each other. To reduce maintenance workload, configure SwitchA to automatically collect health information and send it to the TFTP server for analysis.

Figure 3-32 Networking for automatic health check

Configuration Roadmap

The configuration roadmap is as follows:
  1. Create an assistant and set a timer as the trigger condition for the assistant, so that the assistant performs health check periodically.

  2. Specify the commands that the assistant runs to collect health information and send it to the TFTP server.

Procedure

  1. Configure an assistant.

    # Create an assistant and configure it to run at 1:00 a.m. every day.

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] ops
    [~SwitchA-ops] assistant collect_health
    [*SwitchA-ops-assistant-collect_health] condition timer cron 0 1 * * * *
    [*SwitchA-ops-assistant-collect_health] commit
    

    # Specify the commands that the assistant runs to collect information such as the hardware status, route status, and interface link status, save the collected information in a file, and send the file to the TFTP server.

    [~SwitchA-ops-assistant-collect_health] execute 1 command display device > health.txt
    [*SwitchA-ops-assistant-collect_health] execute 1.5 command display health >> health.txt
    [*SwitchA-ops-assistant-collect_health] execute 2 command display ip routing-table >> health.txt
    [*SwitchA-ops-assistant-collect_health] execute 2.5 command display lldp neighbor brief >> health.txt
    [*SwitchA-ops-assistant-collect_health] execute 3 command tftp 10.2.1.1 put health.txt
    [*SwitchA-ops-assistant-collect_health] commit
    [~SwitchA-ops-assistant-collect_health] return
    

  2. Verify the configuration.

    # Check the configuration of the assistant.

    <SwitchA> display ops assistant verbose name collect_health
    Assistant         : collect_health
    Task abstract     : display device > health.txt; display health >> health.txt; display ip routing-table >> health.txt; display lldp
    neighbor brief >> health.txt; tftp 10.2.1.1 put health.txt;
    Trigger time      : 0000-00-00 00:00:00
    State             : ready
    Running times     : 0
    Trigger type      : timer
    Trigger event     : --
    

Configuration Files

  • Configuration file of SwitchA

    #
    sysname SwitchA
    #
    ops
     assistant collect_health
      execute 1 command display device > health.txt
      execute 1.5 command display health >> health.txt
      execute 2 command display ip routing-table >> health.txt
      execute 2.5 command display lldp neighbor brief >> health.txt
      execute 3 command tftp 10.2.1.1 put health.txt
      condition timer cron 0 1 * * * *
    #
    
Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 61163

Downloads: 3623

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