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 Devices

The device names to which the template was assigned to.

Variables

The variables used in the script.

Comments

User defined comment for the template.

Members

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

Last Modified

The date and time the template was last modified.

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.

Import CLI Template

Import a template or template group from your management computer. See Importing 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 the Clone option. See Cloning CLI templates.

Select a template, and click the More menu to access the Export CLI Template option. 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.

Tooltip

Meta fields used in Jinja templates can only be configured with letters, numbers, and underscores. Default meta fields such as Company/Organization which include "/" are not supported.

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 Devices

The device names to which the template was assigned to.

Variables

The variables used in the script.

Comments

User defined comment for the template.

Members

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

Last Modified

The date and time the template was last modified.

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.

Import CLI Template

Import a template or template group from your management computer. See Importing 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 the Clone option. See Cloning CLI templates.

Select a template, and click the More menu to access the Export CLI Template option. 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.

Tooltip

Meta fields used in Jinja templates can only be configured with letters, numbers, and underscores. Default meta fields such as Company/Organization which include "/" are not supported.