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

S7700 and S9700 V200R013C00

This document describes the configurations of Device Management, including device status query, hardware management, CSS, SVF, PoE, OPS, OIDS, energy-saving management, information center, fault management, NTP, synchronous ethernet, PTP.
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).
Writing Back the Event Execution Result to OIDS

Writing Back the Event Execution Result to OIDS

Interface Name

Writing back the event execution result to OIDS

Application Phase

Execution phase

API Prototype

result1_value, result2_description = ops.oids.result(faultFlag, resultStr)

Description

Parameter

Description

Value

faultFlag

Indicates whether a fault occurs.

The value true indicates that a fault occurs, and the value false indicates that no fault occurs.

resultStr

Indicates the character string of the results.

The value is a string of 1 to 1023 case-insensitive characters, consists of letters, digits, and underscores (_), and starts with a letter.

Return Value

The result1_value and result2_description in the API prototype indicate return values.

The first return value 0 indicates that an event is executed successfully, and the first return value 1 indicates that an event fails to be executed.

The second return value is a string of characters indicating the results.

Usage Description

After writing back the event execution result to OIDS, you can run the display oids history-result command to view the event execution result based on the Record field.

ops.oids.result() can only be invoked in the action triggered by an OIDS event. Otherwise, the system displays a message "Phase error or subscription is not an OIDS event, or OIDS does not support."

ops.oids.result() can be invoked at most three times in the action triggered by an OIDS event. If it needs to be invoked more than three times, it fails to be invoked, and the system displays a message "Oids.result() can only be called 3 times when an oids event occurs."

Example

When a subscribed event is matched, "If some error occure, faultFlag need set True" is written back to OIDS.

ops.oids.result(True, "If some error occure, faultFlag need set True")
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065738

Views: 39694

Downloads: 37

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