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

Configuration Guide - Device Management

CloudEngine 12800 and 12800E V200R005C10

This document describes the configurations of Device Management, including device status query, hardware management, Information Center Configuration, NTP, Synchronous Ethernet Configuration, Fault Management Configuration, Energy-Saving Management Configuration, Performance Management Configuration, Maintenance Assistant Configuration, and OPS Configuration.
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).
Example for Configuring an Assistant for Automatic Health Check (Using Commands)

Example for Configuring an Assistant for Automatic Health Check (Using Commands)

Networking Requirements

As shown in Figure 10-2, 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 10-2 Networking for automatic health check
NOTE:

The TFTP protocol will bring risk to device security. The SFTP mode is recommended.

Configuration Roadmap

The configuration roadmap is as follows:
  1. Create a command 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 command assistant runs to collect health information and send it to the TFTP server.

Procedure

  1. Configure a command assistant.

    # Create a command 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 command 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.

    # Verify the command assistant configuration.

    <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-04-20

Document ID: EDOC1100074722

Views: 15544

Downloads: 18

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