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 8800, 7800, 6800, and 5800 V200R002C50

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).
Understanding the OPS

Understanding the OPS

The OPS is developed on Huawei Versatile Routing Platform (VRP). It uses open RESTful APIs to work with VRP's management plane, control plane, and data plane, allowing for function expansion on a device. Figure 10-1 shows the OPS architecture.

Figure 10-1 OPS architecture

RESTful APIs are designed based on REST. REST defines a set of architectural principles by which you can design web services that focus on system resources. OPS provides managed objects for you to manage devices. Managed objects are identified by Uniform Resource Identifiers (URIs). Clients can perform operations on the objects using standard Hypertext Transfer Protocol (HTTP) methods, such as Get, Put, Post, and Delete.

For details about RESTful APIs provided by the OPS, see RESTful API Reference.

Currently, the OPS integrates the Python running environment and can run Python scripts. In a Python script, methods of sending HTTP requests to the system need to be defined based on open RESTful APIs. When the Python script runs, HTTP requests are sent to the system to implement system management.

Python Script Working Process

Figure 10-2 Python script working process
As shown in Figure 10-2, you need to perform the following operations to run a Python script on the device:
  1. Make and upload a Python script to the device.

  2. Install the Python script. A Python script can run on the device only after being installed.

  3. Run the Python script. You can use commands or configure a maintenance assistant to run Python scripts. In the maintenance assistant, you need to define the trigger conditions and the Python script to be executed when the conditions are met. The system monitors the operation of the device in real time. When the defined trigger conditions are met, the system executes the Python script to complete the actions defined in the script.

    For more details about a maintenance assistant, see Maintenance Assistant Configuration.

Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166632

Views: 81928

Downloads: 312

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