Fortinet white logo
Fortinet white logo

Administration Guide

CLI templates

CLI templates

You can create CLI templates and assign them to devices. You can also create CLI template groups of multiple CLI scripts, and assign the CLI template group to devices, instead of assigning individual scripts to devices.

Go to Device Manager > Provisioning Templates > CLI Templates to view entries in the content pane.

The following information is displayed:

Name

The user-defined template name.

Type

The CLI template type (CLI or Jinja).

Assigned Device/Group

The device or device group to which the template is assigned.

Variables

The variables used in the script.

Description

User defined description for the template.

Members

Used for CLI template groups. Displays the CLI scripts that are members of the CLI template group.

The following options are available in the toolbar, in the More menu, or in the right-click menu.

Create New

Create pre-run or post-run CLI templates. See Adding CLI templates.

You can also create a CLI template group. See CLI template groups.

Edit

Edit the selected template or template group. See Editing CLI templates.

Delete

Delete the selected template or template group. See Deleting CLI templates.

Assign to Device/Group

Assign the selected template or template group to a managed device or device group. See Assigning CLI templates to managed devices.

More

Select a template or template group, and click the More menu to access additional options including Clone, Validate, Import CLI Template, and Export CLI Template.

Clone

Clone the selected CLI template or template group. See Cloning CLI templates.

Validate

Validate the selected CLI template. Template validation is used to determine if your template is producing the correct output based on the meta variables used. See Validate CLI templates.

Import CLI Template

Import a template or template group from your management computer. See Importing CLI templates.

Export CLI Template

Export a template or template group. See Exporting CLI templates.

Search

Enter a search term in the search field to search a template or template group.

CLI templates can be put into groups so that multiple templates may be assigned to managed devices at the same time. See CLI template groups.

Note

CLI templates do not support execute and diagnose commands. CLI templates will only work with device and device VDOM meta fields.

CLI templates

CLI templates

You can create CLI templates and assign them to devices. You can also create CLI template groups of multiple CLI scripts, and assign the CLI template group to devices, instead of assigning individual scripts to devices.

Go to Device Manager > Provisioning Templates > CLI Templates to view entries in the content pane.

The following information is displayed:

Name

The user-defined template name.

Type

The CLI template type (CLI or Jinja).

Assigned Device/Group

The device or device group to which the template is assigned.

Variables

The variables used in the script.

Description

User defined description for the template.

Members

Used for CLI template groups. Displays the CLI scripts that are members of the CLI template group.

The following options are available in the toolbar, in the More menu, or in the right-click menu.

Create New

Create pre-run or post-run CLI templates. See Adding CLI templates.

You can also create a CLI template group. See CLI template groups.

Edit

Edit the selected template or template group. See Editing CLI templates.

Delete

Delete the selected template or template group. See Deleting CLI templates.

Assign to Device/Group

Assign the selected template or template group to a managed device or device group. See Assigning CLI templates to managed devices.

More

Select a template or template group, and click the More menu to access additional options including Clone, Validate, Import CLI Template, and Export CLI Template.

Clone

Clone the selected CLI template or template group. See Cloning CLI templates.

Validate

Validate the selected CLI template. Template validation is used to determine if your template is producing the correct output based on the meta variables used. See Validate CLI templates.

Import CLI Template

Import a template or template group from your management computer. See Importing CLI templates.

Export CLI Template

Export a template or template group. See Exporting CLI templates.

Search

Enter a search term in the search field to search a template or template group.

CLI templates can be put into groups so that multiple templates may be assigned to managed devices at the same time. See CLI template groups.

Note

CLI templates do not support execute and diagnose commands. CLI templates will only work with device and device VDOM meta fields.