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).
OIDS Event Subscription

OIDS Event Subscription

Interface Name

OIDS event subscription

Application Phase

Subscription phase

API Prototype

result1_value, result2_description = ops.oids.subscribe(tag, typeName, eventName)

Description

Parameter

Description

Value

tag

Indicates conditions.

The value is a string of 1 to 12 case-sensitive characters, consists of letters, digits, and underscores (_), and starts with a letter. Enter quotation marks ("") or None for the only one condition. Conditions with tags and without tags are exclusive. If both of these conditions are configured, only the first successfully configured condition takes effect. The value cannot be one of the following: and, or, not.

typeName

Indicates a diagnosis type name.

The value is of the enumerated type:
  • ACL: ACL diagnosis type

  • ARP: ARP diagnosis type

  • CPU: CPU diagnosis type

  • CPU-CHAN: CPU channel diagnosis type

  • DHCPv4: DHCPv4 diagnosis type

  • DHCPv6: DHCPv6 diagnosis type

  • FIBv4: IPv4 forwarding information table diagnosis type

  • FIBv6: IPv6 forwarding information table diagnosis type

  • Flash: Flash diagnosis type

  • L3table: Layer 3 hardware table diagnosis type

  • LOG: LOG diagnosis type

  • MAC: MAC diagnosis type

  • MCAST: multicast diagnosis type

  • Memory: memory diagnosis type

  • MPLS: MPLS diagnosis type

  • NAC: NAC diagnosis type

  • ND: IPv6 neighbor diagnosis type

  • NHP: next hop diagnosis type

  • Port: port diagnosis type

  • TEMP: temperature diagnosis type

  • TRAP: TRAP diagnosis type

eventName

Indicates the name of an event.

To view the OIDS events supported by the device, run the display oids register-status command. For details, see Appendix 2: OIDS Events Supported by the Switch.

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

If multiple simple events are defined through ops.oids.subscribe in the subscription phase, but these events are not combined using the Multi-Condition Combination API, a Python script assistant cannot be configured.

You can monitor specified OIDS events through OIDS event subscription.

Example

A corresponding action is triggered when an event indicating high sensor temperature is matched.

value, description = ops.oids.subscribe("tempHigh", 'TEMP', 'Temperature High')
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065738

Views: 40304

Downloads: 37

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