Fortinet white logo
Fortinet white logo

Administration Guide

Adding CLI templates

Adding CLI templates

You can add pre-run and post-run CLI templates.

Note

Pre-run CLI templates are intended for model devices and zero-touch provisioning. Pre-run CLI templates are run before provisioning templates.

To add a CLI template:
  1. Go to Device Manager > Provisioning Templates > CLI Templates.
  2. Click Create New , and select either Pre-Run CLI template or Post-Run CLI Template.

    The Create New CLI Template pane is displayed.

  3. Enter the required information:

    Template Name

    Type a unique name for the template.

    Type

    Select the template type from one of the following options:

    • CLI Script
    • Jinja Script

    Comments

    Optionally, type a comment for the template.

    Script details

    Type the script itself, either manually using a keyboard, or by copying and pasting from another editor.

  4. Click OK.

    The CLI template is created and displayed under it's appropriate category. For example, if you created a pre-run CLI template, it displays under the Pre-Run CLI Template category.

Adding CLI templates

Adding CLI templates

You can add pre-run and post-run CLI templates.

Note

Pre-run CLI templates are intended for model devices and zero-touch provisioning. Pre-run CLI templates are run before provisioning templates.

To add a CLI template:
  1. Go to Device Manager > Provisioning Templates > CLI Templates.
  2. Click Create New , and select either Pre-Run CLI template or Post-Run CLI Template.

    The Create New CLI Template pane is displayed.

  3. Enter the required information:

    Template Name

    Type a unique name for the template.

    Type

    Select the template type from one of the following options:

    • CLI Script
    • Jinja Script

    Comments

    Optionally, type a comment for the template.

    Script details

    Type the script itself, either manually using a keyboard, or by copying and pasting from another editor.

  4. Click OK.

    The CLI template is created and displayed under it's appropriate category. For example, if you created a pre-run CLI template, it displays under the Pre-Run CLI Template category.