FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
heng
Staff
Staff
Article Id 276816
Description

 

This article describes how to move a system template between ADOMs. 

 

Scope

 

FortiManager.

 

Solution

 

The use case is to import a system template when the administrator wants to move the managed device from one ADOM to another ADOM.

When the managed device is moved from one ADOM to another, by default, the system templates do not move with it. 

 

There are two ways to do it: via GUI and via CLI.

 

System template export/import is supported via GUI in v7.0+; this is straightforward,a good option for a specific template or all of the templates. It can be exported/saved to a local computer, modified if needed, and imported into the new ADOM.

 

For detailed info, please refer to the document below, the content is similar between versions.

export-and-import-provisioning-template-configurations in 7.4 

export-and-import-provisioning-template-configurations in 7.2 

 

Administrators can also use the following CLI commands to accomplish this by copying the settings from one ADOM to another ADOM. 

This approach is done all within FortiManager, and changes can be made after the import.

 

execute fmprofile export-profile <adom> <profile-id> <filename>

execute fmprofile import-profile <adom> <profile_id> <filename>

execute fmprofile list-profiles <adom_name>

 

Use Case Example.

 

ADOM:

root has a system template named 'globalSystemTemplate' and the administrator needs to copy the exact setting to a new ADOM: adom74.  

 

Steps:

  1. It can be accomplished by exporting the intended system template from ADOM: root into a /tmp folder as an output filename 'configRoot'.

 

execute fmprofile export-profile root ?
<id> profile name
10298 default
10437 powerRanger
10465 globalSystemTemplate

 

execute fmprofile export-profile root 10465 configRoot

output dump to file: [/tmp/configRoot]

 

  1. Go to ADOM: adom74, then create a blank system template named the same as 'globalSystemTemplate', and other settings left it unconfigured. 

 

image.png

 

  1. As the settings are dumped as /tmp/configRoot, the administrator then can run the following CLI to import the settings into another ADOM: adom74.

 

execute fmprofile import-profile adom74 ?
<id> profile name
5144 default
5239 globalSystemTemplate

 

execute fmprofile import-profile adom74 5239 /tmp/configRoot
Successfully import from file [/tmp/configRoot] to profile [globalSystemTemplate]

 

  1. Go back into ADOM: adom74, then check whether the settings are successfully imported. 

 

image.png

 

Related article:
Technical Tip: How to view System Template in CLI