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 a Physical Inventory Element

CLI Configlets are configuration tools provided by Junos OS that enables the user 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 the physical inventory element of a device to push the configuration from the CLI Configlet to the device.

To apply a CLI Configlet to the physical inventory element:

  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 Inventory > View Physical Inventory.

    The View Physical Inventory page is displayed.

  3. Right-click a physical inventory element for which the CLI Configlet has to be applied and select Apply CLI Configlet.

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

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

      The Context dialog box is displayed.

    2. Click OK.

  5. You can filter the list of CLI Configlets that you want to apply to the physical inventory element 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.

  6. 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.

  7. (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 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.

  8. (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 MM/DD/YYYY or MM/DD/YY format.

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

  9. 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.

  10. Before applying the CLI Configlet the physical inventory element of the device, you can validate the configuration in the CLI Configlet on the device.
    1. (Optional) To validate the CLI Configlet on the physical inventory element, click Validate.

      The Validate Results page is displayed.

      A job is triggered. The Progress column displays the progress of validation. 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.

      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.
  11. (Optional) To select a different CLI Configlet or reschedule the workflow, click Back.

    You are redirected to the previous page.

  12. You can apply the CLI Configlet to the physical inventory element or submit the configuration changes included in the CLI Configlet to the change requests.
    1. To apply the CLI Configlet to the physical inventory element of 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. 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. The Apply CLI Configlet Job Remarks pop-up window is displayed. Navigate back to the Configlet Results page.

      • If you scheduled to apply this task for later, the Job Information dialog box that appears displays the schedule information. Click OK.


      • 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.

  • Click Cancel to return to the View Physical Inventory page.

Release History Table
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.