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

S2720, S5700, and S6720 V200R013C00

This document describes the configurations of Device Management, including device status query, hardware management, Stack, SVF, cloud-based management, PoE, monitoring interface, OPS, 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).
Obtaining Device Information Through SNMP (get)

Obtaining Device Information Through SNMP (get)

Interface Name

Obtaining device information through SNMP

Application Phase

Subscription and execution phases

API Prototype

result1_value, result2_description = ops.snmp.get(oid)

Description

Parameter

Description

Value

oid

Indicates the OID and index of a leaf object.

The value is a string of 1 to 1047 characters. The format is leaf object OID.leaf object index

Return Value

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

If the first return value is None, device information fails to be obtained. If the first return value is not None, device information is obtained successfully.

The second return value is the failure cause when the first return value is None.

Usage Description

This API enables you to obtain the detailed information about a leaf object with the specified OID.

Example

When a subscription event is matched, you can obtain the detailed information about the leaf object whose OID is 1.3.6.1.2.1.1.3 and whose index is 0.

value, descri_str = ops.snmp.get("1.3.6.1.2.1.1.3.0")
Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100065674

Views: 51022

Downloads: 441

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