Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Katoomba
New Contributor III

FortiManager CLI/TCL script sends email with script results OR creates a custom web page

UPDATE: I developed a solution that allows a TCL script to send an email. See article here.

 

I have a customer that would like to run CLI/TCL scripts from FortiManager that validate the status of firewall policy and security profiles and report back the results to users. There are two ways that this might be done.

1) Run the CLI/TCL script and email the script output to an email address.

2) Write the results of the script output to a HTML file which is published as a custom web page and is available to users via a special URL that is hosted by FMG. (I mention this option because it is indeed possible to write to files using TCL scripts in FMG. So there is nothing to stop a TCL script from creating HTML files with script results contained therein. But there is no link to the files that makes them available to the FMG web service. So this option would need a soft link from the user space file storage area to a URL path in the FMG web server. That would be a pretty easy feature to add to FMG).

 

I see these two articles, that are tangential to the subject. But no solution is posted yet.

https://community.fortinet.com/t5/FortiManager/Troubleshooting-Tip-FortiManager-alternative-to-get-i...
https://community.fortinet.com/t5/Support-Forum/Send-Email-with-TCL-Script/td-p/224376

Stitches are not the solution here. Because we want to run the scripts centrally from within FMG.

 

Further, running CLI/TCL scripts from FMG is great for configuration tasks but is really not of very much use to most organizations when they are "show" type scripts. But if the scripts were able to either email or update a web page, then executing CLI/TCL scripts with show commands would be dramatically more useful to users.

 

Is there currently a way to send script output to an email or to update a web page? If not, who do I have to sweet talk to get one or both of those functionality options?

 

PS: Can we please have "TCL" added to the list of available labels in the community forums? That would help to tag posts that are specific to TCL.

 

UPDATE: I developed a solution that allows a TCL script to send an email. See article here 

Katoomba
Katoomba
1 REPLY 1
farhanahmed
Staff
Staff

FortiManager does not have the ability to send emails from the TCL script. You can reach out to your Fortinet Sales rep. to raise a feature request for this.

FA
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors