Skip to main content
Kaplan
Explorer II
March 30, 2022
Solved

Automate CLI Template installation

  • March 30, 2022
  • 3 replies
  • 2317 views

Dear people,

 

I have in FGM a lot of CLI Scripts, I use for automated Installation of a Fortigate.

One of my problem is, that I must assign step by step the scripts to a fortigate and it does need nearly 10 Steps until the fortigate are completed.

 

If I use all cli scripts in once, so I get Error from the FGM. Thats the cause, why I splitted the CLI scripts to mutch standalone cli scripts. 

 

My question is, gives there some possibility, install all cli steps in once?

 

For example I can not purge the DHCP from WAN and following delete the WAN Interface. So I get a error if I will execute this script.

 

Kind Regards

Best answer by Kaplan

My Problem is solved with a Fortimanager update from 6.4 to 7.0.5
All CLI From CLI Templates over CLI Template Group will work step by step in order of the CLI Scripts. So I can assign the Group to the FG and it functions in 1 Step. After them the FG are ready.

 

Thanx again

3 replies

Anthony_E
Staff
Staff
April 4, 2022

Hello Kaplan,

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.

 

Thanks,

Best Regards
Kaplan
KaplanAuthorAnswer
Explorer II
April 4, 2022

My Problem is solved with a Fortimanager update from 6.4 to 7.0.5
All CLI From CLI Templates over CLI Template Group will work step by step in order of the CLI Scripts. So I can assign the Group to the FG and it functions in 1 Step. After them the FG are ready.

 

Thanx again

Anthony_E
Staff
Staff
April 4, 2022

Hello Kaplan,

 

Thank you for the update!

I am sure it will help some other users :)!

 

Regards,

Best Regards
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!