Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

remote-execution (Event Scripts)

 

Syntax

Hierarchy Level

Release Information

Statement introduced in Junos OS Release 9.6.

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

Description

Configure connection information for a local or remote host, which the event script can use to connect to and execute RPCs on the device.

Remote execution details, which include the hostname, username, and passphrase for one or more hosts, enable an event script to invoke remote procedure calls on a host without encoding the connection information directly in the event script. When you include remote execution details in the configuration instead of in individual event scripts, it has the advantage of capturing the information in a single location and the passphrase is encrypted.

When an event policy invokes an event script, it passes any configured remote execution details to the script. An event script references the remote execution details in the argument list of the function used to create the connection to the remote host.

Options

passphrase user-passwordUser’s password for the host.
remote-hostnameName of the host with which the event script will communicate.
username usernameUser’s login name for the host.

Required Privilege Level

maintenance—To view this statement in the configuration.

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