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

Automate CLI Template installation

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

Kaplan
KaplanAnswer
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

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. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT