remote-execution (Event Scripts)
Statement introduced in Junos OS Release 9.6.
Statement introduced in Junos OS Release 13.2X51-D10 for QFX Series switches.
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.
Required Privilege Level
maintenance—To view this statement in the configuration.
maintenance-control—To add this statement to the configuration.