Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Executing a Script on a Physical Inventory Component

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.

Note:

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 physical inventory component of a device:

  1. On the Junos Space Network Management Platform user interface, select Devices > Device Management.

    The Device Management page is displayed.

  2. Select the device and select Device Inventory > View Physical Inventory from the Actions menu.
  3. Right-click a physical inventory element for which the script has to be applied and select Execute Scripts.

    The Execute Scripts page is displayed. This page displays the list of scripts that match the context and are enabled and associated with the devices.

  4. Select a 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:

      1. Click the Select by tags option button.

      2. From the Select by tags drop-down list, select an appropriate tag.

      3. Click OK.

        The list of scripts is filtered by the tag you selected.

      4. Select a script from the filtered list.

  5. (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 is hidden.

    • If you enter a value for a parameter that is a Confirm Password field, a dialog box is displayed. Enter the password again and click OK.

  6. You can execute the script now or schedule this task for later:

    To execute the script later:

    1. Select the Schedule at a later time check box.

    2. Enter the date in the Date field in the DD/MM/YYYY format.

    3. Enter the time in the Time field in the hh:mm format.

    To execute the script now:

    • Click Execute.

  7. If you selected to apply the script now, the Script Results page is displayed. This page shows the progress and status of the job.
    Note:

    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 that appears displays the schedule information. Click OK.

Click Cancel to return to the Device Management page.