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

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-password

User’s password for the host.

remote-hostname

Name of the host with which the event script will communicate.

username username

User’s login name for the host.

Required Privilege Level

maintenance—To view or add this statement in the configuration.

Release Information

Statement introduced in Junos OS Release 9.6.