Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

get_snmp_action() Function (Python)

 

Syntax

Python Syntax

Release Information

Function introduced in Junos OS Release 16.1R1 on QFX Series switches and MX Series, PTX Series, and T Series routers.

Function introduced in Junos OS Release 17.1R1 on ACX500, ACX1000, ACX1100, ACX2000, ACX2100, ACX2200, and ACX4000 routers, and EX Series switches.

Function introduced in Junos OS Release 17.3R1 on SRX1500, SRX4100, SRX4200, SRX5400, SRX5600, and SRX5800 devices and vSRX instances.

Function introduced in Junos OS Release 18.3R1 on ACX5048 and ACX5096 routers.

Description

Retrieve the SNMP action passed to a Python SNMP script.

Return Value

snmp_actionSNMP action value passed to the script.

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_action() function returns the value of the action argument passed into the script.