Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

python-script-user (Event and SNMP Scripts)

 

Syntax

Hierarchy Level

Release Information

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

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

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

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

Description

Define the user under whose access privileges the Python event or SNMP script executes. If you do not associate a user with the script, then by default, Junos OS executes the script with the privileges of the *nix user and group nobody, which is the generic, unprivileged system account.

Note

You cannot configure Python event and SNMP scripts to execute with root access privileges.

Note

Junos OS executes Python commit and op scripts under the access privileges of the user who executes the command or operation that invokes the script.

Default

If you do not include the python-script-user statement, Junos OS executes the script under the access privileges of the *nix user and group nobody.

Options

usernameUsername that is configured at the [edit system login] hierarchy level.

Required Privilege Level

maintenance—To view this statement in the configuration.

maintenance-control—To add this statement to the configuration.