Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

get_snmp_oid() Function (Python)

Syntax

Python Syntax

Description

Retrieve the SNMP object identifier (OID) passed to a Python SNMP script.

Return Value

snmp_oid

SNMP OID value to process.

Usage Examples

The following example Python SNMP script processes unsupported object identifiers (OIDs) that are mapped to the script in the Junos OS configuration. The get_snmp_oid() function returns the value of the OID argument passed into the script.

Release Information

Function introduced in Junos OS Release 16.1R1.