Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Applying a CLI Configlet to Devices

CLI Configlets are configuration tools provided by Junos OS that enable you to apply a configuration onto a device by reducing configuration complexity. A CLI Configlet is a configuration template that is transformed into a CLI configuration string before being applied to a device. You apply a CLI Configlet to push a configuration to a device.

Note:

To easily identify the CLI Configlet that you want to apply to the device, apply a filter on the Reference Number column. You cannot validate a CLI Configlet, or apply a CLI Configlet to more than 200 devices if the CLI Configlet requires XPath processing. However you can apply CLI Configlets to more than 200 devices if the CLI Configlets do not require XPath processing. CLI Configlets that do not require XPath processing include CLI Configlets with context /, //, or /device and without device-specific or entity-specific parameters.

To apply a CLI Configlet to a device:

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

    The Device Management page is displayed.

  2. Select a device and select Device Operations > Apply CLI Configlet from the Actions menu.

    The Apply CLI Configlet page is displayed. This page displays the list of CLI Configlets categorized by context and device family.

  3. (Optional) To view the context:
    1. Click the View Context link.

      The Context dialog box is displayed.

    2. Click OK.

  4. You can filter the list of CLI Configlets that you want to apply to the device manually or by using tags.
    • To filter the CLI Configlets manually, enter the search criteria in the Search field and click the Search icon.

      The list of CLI Configlets is further filtered by the search criteria.

    • To filter the CLI Configlets by using tags:

      1. Click the Select by tags option button.

        The Search field disappears.

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

      3. Click OK.

        The list of CLI Configlets is further filtered by the tag you selected.

      Note:

      This filtered view is retained even when you navigate to other inventory landing pages.

  5. Select a CLI Configlet from the filtered list.

    The parameters of the CLI Configlet are displayed.

    From Junos Space Platform Release 17.2R1 onward, you can use CSV files to input parameter values when you need to apply configlets on multiple devices. You can upload the parameter values in the specified format as a CSV file.

    To download a sample CSV file, click the Download Configlet Parameters link. The SampleParameterCSV file is downloaded with the parameters already present in the editable grid. You can enter or edit the required parameter values in the CSV file easily in addition to manually editing the parameter value field in the grid.

    To upload the edited CSV file, click the Browse button, select the file, and then click the Upload button. The values of parameters in the CSV file are populated to the editable grid. The parameters of CLI Configlet are listed in the grid with pagination support.

  6. (Optional) To enter the values for the parameters of the CLI Configlet, 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 pop-up window is displayed. Enter the password again and click OK.

  7. (Optional) If you want to apply the CLI Configlet later:
    1. Select the Schedule at a later time check box.

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

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

  8. Click Next.

    You can preview the configuration in the CLI Configlet in the Preview area.

    The top of the Preview area displays the parameters with the values that are applied to devices. The bottom left of the Preview area displays the devices you have selected. The bottom right of the Preview area displays the configuration that will be applied to the device selected on the left.

    1. Click a device to view the configuration that will be applied to the device.
  9. Before applying the CLI Configlet, you can validate the configuration in the CLI Configlet on the device.
    1. (Optional) To validate the CLI Configlet on the device, click Validate.

      The Validate Results page is displayed.

      A job is triggered. The Progress column displays the progress of validation against each device. When the validation is complete, the results of the validation are displayed. The Status column indicates the results of the validation. If the validation is unsuccessful, the details of the error are displayed on the page. 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.

      Note:

      You can also view the validation results from the Job Management page. To view the validation results, double-click the job ID and click the View Results link corresponding to the device. The Validate CLI Configlet Job Remarks pop-up window is displayed. Navigate back to the Validate Results page.

    2. Click Close to return to the Apply CLI Configlet page.
  10. (Optional) To select a different CLI Configlet or reschedule the workflow, click Back.

    You are redirected to the previous page.

  11. You can apply the CLI Configlet to the device or submit the configuration changes included in the CLI Configlet to the change requests.
    1. To apply the CLI Configlet to the device, click Apply.
      • If you selected to apply the CLI Configlet now, the Configlets Results page is displayed.

        A job is triggered. The Progress column displays the progress of applying the CLI Configlet against each device. When the job is complete, the results of the job are displayed. The Status column indicates the results of the job.

        Note:

        You can also view the results from the Job Management page. To view the results, double-click the job ID and click the View Results link corresponding to the device. The Apply CLI Configlet Job Remarks pop-up window is displayed. Navigate back to the Configlet Results page.

      • If you scheduled this task for a later time, the Job Information dialog box displays the schedule information. Click OK.

    2. To submit the configuration changes to the change requests, click Submit.

      The configuration changes are included in the list of changes on the Review/Deploy Configuration page in the Devices workspace.

    An audit log is generated when you apply or submit the CLI Configlet.

  • To cancel this task, click Cancel. You are returned to the Device Management page.

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

Release
Description
17.2
From Junos Space Platform Release 17.2R1 onward, you can use CSV files to input parameter values when you need to apply configlets on multiple devices.