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

NE40E V800R010C00 Configuration Guide - System Monitor 01

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 Telemetry Static Subscription Based on gRPC

Example for Configuring Telemetry Static Subscription Based on gRPC

Networking Requirements

As the network scale increases, carriers need to optimize networks and rectify faults based on device information. For example, if the CPU usage of a device exceeds a specified threshold, the device reports data to a collector so that network traffic can be monitored and optimized in a timely manner.

As shown in Figure 6-1, Device A supports Telemetry and establishes a gRPC connection with the collector. When the CPU usage of Device A exceeds 40%, data needs to be sent to the collector.

Figure 6-1  Networking of configuring gRPC-based Telemetry static subscription
NOTE:

In this example, Interface1 and Interface2 represent GE 1/0/1 and GE1/0/2, respectively.



Precautions

When configuring Telemetry static subscription, ensure that a static or dynamic routing protocol is configured so that devices can communicate at the network layer.

Configuration Roadmap

The configuration roadmap is as follows:

  1. Enable Telemetry Sampling.

  2. Configure a destination collector.

  3. Configure the data to be sampled.

  4. Create a subscription.

Data Preparation

To complete the configuration, you need the following data:

  • Collector's IP address 10.20.2.1 and port number 10001

  • Destination group name destination1

  • Sampling sensor group name sensor1

  • Subscription name subscription1

Procedure

  1. Configure an IP address and a routing protocol for each interface so that all devices can communicate at the network layer.
  2. Enable Telemetry Sampling.

    <HUAWEI> system-view
    [~HUAWEI] sysname DeviceA
    [*HUAWEI] commit
    [~DeviceA] telemetry
    [~DeviceA-telemetry] sample enable

  3. Configure a destination collector.

    [*DeviceA-telemetry] destination-group destination1
    [*DeviceA-telemetry-destination-group-destination1] ipv4-address 10.20.2.1 port 10001 protocol grpc no-tls
    [*DeviceA-telemetry-destination-group-destination1] quit

  4. Configure the data to be sampled.

    [*DeviceA-telemetry] sensor-group sensor1
    [*DeviceA-telemetry-sensor-group-sensor1] sensor-path huawei-devm:devm/cpuInfos/cpuInfo condition express op-field systemCpuUsage op-type gt op-value 40
    [*DeviceA-telemetry-sensor-group-sensor1] quit

  5. Create a subscription.

    [*DeviceA-telemetry] subscription subscription1
    [*DeviceA-telemetry-subscription-subscription1] sensor-group sensor1
    [*DeviceA-telemetry-subscription-subscription1] destination-group destination1
    [*DeviceA-telemetry-subscription-subscription1] commit

Configuration Files

Device A configuration file

#
sysname DeviceA
#
telemetry
 #
 sample enable
 #
 sensor-group sensor1
  sensor-path huawei-devm:devm/cpuInfos/cpuInfo condition express op-field systemCpuUsage op-type gt op-value 40
 #
 destination-group destination1
  ipv4-address 10.20.2.1 port 10001 protocol grpc no-tls
 #
 subscription subscription1
  sensor-group sensor1
  destination-group destination1
#
return
Download
Updated: 2018-07-12

Document ID: EDOC1100028538

Views: 28323

Downloads: 213

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