Skip to main content
Jafar
New Member
Jan 16, 2018 10:46 AM UTC
Question

Is it possible to "upload and run script" through CLI command

I can upload script through System > Advanced and then it is automatically executed in forti OS 5.6.2

how can i perform the same (upload and run script) through CLI command.

5 replies

emnoc
New Member
Jan 16, 2018 12:42 PM UTC

Yes

 

 

Look at this   thread on a just  few of many ways you can run scripts at the cmd

 

[link]https://forum.fortinet.com/tm.aspx?m=107230[/link]

Translate
Jafar
JafarAuthor
New Member
Jan 17, 2018 5:13 AM UTC

Thanks for your reply, emnoc.

 

Actually, I am looking for a CLI command to upload Script file on Fortigate 30 E  and execute it.

 

I can achieve this in GUI mode (System > Advanced > "upload and run script"). But I didn’t find any option to perform the same action in CLI…

 

 

Translate
ipranger
New Member
Dec 22, 2020 11:29 PM UTC

Interesting too. Have anyone an example? I've uploaded my scripts, but no place, no cmd that i can execute this. 

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024