Skip to main content
farhanahmed
Staff
Staff
March 19, 2026

Technical Tip: How to check CLI Templates using FortiManager CLI

  • March 19, 2026
  • 0 replies
  • 117 views
Description This article describes how to check the CLI Templates and their content using FortiManager CLI.
Scope FortiManager.
Solution

CLI Template is part of ADOM Objects, and the following command can be used to check using CLI:

 

execute fmpolicy print-adom-object <ADOM> 1902

 

FMG-VM64 # exe fmpolicy print-adom-object root 1902 Available objects for category [cli template] in adom [root] are --------------- Test provision_interfaces_on_vm split_hardware_switch_ports_40_80_100 split_hardware_switch_ports_60_90

 

To dump the content of a single CLI Template in an ADOM:


execute fmpolicy print-adom-object <ADOM> 1902 <Template Name>

 

FMG-VM64 # exe fmpolicy print-adom-object root 1902 Test Dump object [Test] of category [cli template] in adom [root]: --------------- config cli template edit "Test" set type cli set script "config system interface edit $(interface) set allowaccess ping next end" set variables interface set provision disable  next  end  FMG-VM64 #

 

To dump the content of all CLI Templates in an ADOM:

 

execute fmpolicy print-adom-object <ADOM> 1902 all

 

Related documents: