Skip to main content
Kubajs
Explorer
December 26, 2023
Question

CLI template shows no variable

  • December 26, 2023
  • 8 replies
  • 4280 views

Hello,
I have created a cli template with settings. so far I have been using ADOM version 7.2 and adding FortiGate with version 7.2.6. when adding FortiGate I selected the CLI template and clicked on Edit Metadata Variable Mapping and the variable variables appeared and I set them as needed and everything worked.
I have now upgraded both the ADOM version and the FortiGate version to 7.4 and if I add a firewall, I suddenly have no variable to set in my CLI template. Version of my Fortimanager is 7.4.2

Do you know where the fault could be?

8 replies

smkml
Staff
Staff
December 26, 2023

Hello @Kubajs ,

 

Can you share a screenshot where this issue is?

Kubajs
KubajsAuthor
Explorer
December 26, 2023

Hello @smkml 

I tried again and it looks like some problem with the ADOM version, because with ADOM version 7.2 everything is fine, after upgrading to 7.4 the settings are empty. I am sending screenshots.ADOM 7.2ADOM 7.2ADOM 7.4ADOM 7.4

 

smkml
Staff
Staff
December 27, 2023

Hello @Kubajs ,

 

Can you share the steps in GUI for this too?

" when adding FortiGate I selected the CLI template and clicked on Edit Metadata Variable Mapping"

vraev
Staff
Staff
December 27, 2023

HI @Kubajs ,

Metadata are moved since 7.2 from Device db to To Policy & Objects: https://docs.fortinet.com/document/fortimanager/7.2.1/administration-guide/478643/adom-level-metadata-variables
You can configure ADOM-level metadata variables in Policy & Objects > Object Configurations > Advanced > Metadata Variables (must create per device mapping)

https://community.fortinet.com/t5/FortiManager/Technical-Tip-Per-Device-mapping-behaviour/ta-p/264862
https://docs.fortinet.com/document/fortimanager/7.4.1/release-notes/519207/special-notices

Kubajs
KubajsAuthor
Explorer
December 27, 2023

Hello @vraev and @smkml 

I have no experience with the older version of FortiManager. I know that I can find the variable metadata in Policy&Objects and in the Advanced menu. That's where I have the variables created. My problem is that I am counting these variables in the CLI Template. If I am using ADOM version 7.2, when I initially authorize the device, I select CLI Template and the variables appear as they should. If I upgrade ADOM to 7.4 and do the same device authorization, the CLI variables are already blank, see screenshots above :)

vraev
Staff
Staff
December 28, 2023

Hi @Kubajs ,

I would suggest to create a ticket trough the support portal.
Please attach the screenshots and the backup of the unit.

 

Best, 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!