Executing a Script on a Logical Interface
You can use Junos Space Network Management Platform to trigger the execution of op scripts on one or more devices simultaneously. Commit and event scripts are automatically activated after they are enabled. Commit scripts are triggered every time a commit is called on the device and event scripts are triggered every time an event occurs on the device or if a time is specified.
You can execute scrips on more than 200 devices only if the scripts do not require XPath processing. Scripts that do not require XPath processing include scripts without device-specific or entity-specific parameters and with /, //, or /device as context.
To execute a script on the logical interface of devices:
- On the Junos Space Network Management Platform user interface,
select Devices > Device Management.
The Device Management page is displayed.
- Select the devices and select Device Inventory > View Logical Interfaces from the Actions menu.
The View Logical Interfaces page is displayed.
- Right-click the logical interfaces for which the script
has to be applied and select Execute Scripts.
The Execute Scripts page is displayed. This page displays a list of scripts that match the context and are enabled and associated with the devices.
- Select the script from the list.
You can also filter the list by using tags and then select a script. To filter the list by using tags:
Click the Select by tags option button.
From the Select by tags drop-down list, select an appropriate tag.
The list of scripts is filtered by the tag you selected.
Select a script from the filtered list.
- (Optional) To enter the values for the parameters of the
script, click the appropriate cell in the Value column.
If you enter a value for a parameter that is a Password field, the value you enter is hidden.
If you enter a value for a parameter that is a Confirm Password field, a pop-up window is displayed. Enter the password again and click OK.
- You can execute the script now or schedule this task for
To execute the script later:
Select the Schedule at a later time check box.
Enter the date in the Date field in the DD/MM/YYYY format.
Enter the time in the Time field in the hh:mm format.
To execute the script now:
- If you selected to apply the script now, the Script Results
page is displayed. This page shows the progress and status of the
If you wait for the job to complete, you can view the job results. Click Close.
If you scheduled this task for later, the Job Information dialog box displays the schedule information. Click OK.
- Click Cancel to return to the Device Management page.