Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

user-name (Event Policy)

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 8.4.

Statement introduced in Junos OS Release 9.0 for EX Series switches.

Support at the [edit event-options policy policy-name then change-configuration] hierarchy level introduced in Junos OS Release 12.1.

Statement introduced in Junos OS Release 13.2X51-D10 for QFX Series switches.

Description

Associate a user with an action in an event policy. The event policy action is executed under the privileges of the associated user.

Note

When you configure the user-name statement for event scripts, it only applies to SLAX and XSLT scripts. This statement has no effect when configured for Python event scripts.

To execute a local Python event script under the access privileges of a specific user, configure the python-script-user username statement at the [edit event-options event-script file filename] hierarchy level. If you do not configure the python-script-user statement for a Python event script, Junos OS executes the script using the access privileges of the generic, unprivileged system account nobody.

Default

If you do not associate a user with an action, the action is executed as user root.

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.