Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Disabling Scripts on Devices

After you deploy scripts on devices, you can use Junos Space Network Management Platform to disable these scripts on one or more devices simultaneously.

When you disable scripts using Junos Space Platform, the configuration added on the device is similar to the following:For example, for a file named bgp-active.slax, the configuration added is:user@host# delete system scripts commit file bgp-active.slax


If the filename of the selected script matches that of any script present on the device, then the script on the device is disabled regardless of its contents.

To disable scripts on devices:

  1. On the Junos Space Platform UI, select Images and Scripts > Scripts.

    The Scripts page appears, displaying the scripts that you imported into Junos Space Platform.

  2. Select one or more scripts that you want to disable on devices.

  3. Select Disable Scripts on Devices from the Actions menu.

    The Disable Scripts on Device(s) page appears. Only those devices that have the selected scripts enabled on them are listed.

    If the selected scripts are already disabled on the devices, then Junos Space displays the following message instead of the Disable Scripts on Device(s) page:

    Device(s) having all the selected staged script(s) already have them in disabled state.

  4. Select the devices on which you want the script to be disabled, by using one of the following selection modes—manually, on the basis of tags, or by using the comma-separated values (CSV) file. These options are mutually exclusive. If you select one, the others are disabled.


    By default, the Select Device Manually option is selected and the list of devices that can be selected is displayed.

    • To select devices manually:

      • Click the Select Device Manually option and select the devices on which you want to disable the script. The Select Devices status bar shows the total number of devices that you selected; the status bar is dynamically updated as you select the devices.

      • To select all devices, select the check box in the column header next to the Host Name column.

    • To select devices on the basis of tags:

      1. Click the Select by Tags option.

        The Select by tags list is activated.

      2. Click the arrow on the Select by Tags list. A list of tags defined on devices in the Junos Space system appears, displaying two categories of tags—Public and Private.


        If no tags are displayed, then it means that none of the devices is associated with any tag. You need to tag the devices on the Device Management page before you can use the Select by Tags option.

      3. To select tags, perform one of the following actions:

        • Select the check boxes next to the tag names to select the desired tags and click OK.

        • To search for a specific tag, enter the first few letters of the tag name in the Select by Tags field to the left of the OK button. If a match is found, a suggestion is made. Select the suggested match and click OK.

        As you select the tags, the total number of devices associated with the selected tags appears just above the device display table. For example, if there are six devices associated with the selected tags, then 6 items selected is displayed.

        The selected tags appear next to the Tags Selected label. An [X] icon appears after each tag name. You can click the [X] icon to clear any tag from the list. The device count decrements accordingly.

        The device display table displays the devices associated with the selected tags.

    • To select devices by using a CSV file:

      1. Select the Select by CSV option.

      2. Click Browse to navigate to the file location on your computer and select the CSV file containing the list of devices on which you want to disable the script.


        For a sample CSV file, click the Sample CSV link. You are prompted to save the file. Save the file to your computer and open it by using an application such as Microsoft Excel.

      3. Click Upload to upload the CSV file.

        From Release 16.1R2 onward, when you upload a CSV file to select devices from, Junos Space Platform verifies the devices in the CSV file. If the CSV file contains devices to which the changes do not apply, a warning message appears which says "Few devices are not selected due to precondition failure. Please click "View inapplicable devices" for more details.” You can click the View inapplicable devices link to review the list of devices that are excluded from the update.

  5. (Optional) To schedule a time for disabling the script, select the Schedule at a later time check box and use the calendar icon and drop-down list respectively to specify the date and time when you want the script to be disabled.

  6. Click Disable. The Disable button is unavailable if you have not selected any devices. Select the devices on which you want to disable the scripts before you click Disable.

    The selected scripts are disabled on the devices, and the Disable Scripts Information dialog box displays a link to the job ID.

  7. Perform one of the following actions on the Disable Scripts Information dialog box:

    • To verify the status of this job, click the job ID on this dialog box.

      The Job Management page appears. Double-click the job pertaining to the disabling operation. The Script Management Job Status page appears and the Description column on this page displays whether or not the script is disabled successfully and reasons for failure (if disabling of the script had failed). If there is an error, the View Job Details page displays an error message. For more information about the error messages, see Common Error Messages in Device-Related Operations.

    • Click OK to go back to the Scripts page.