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

Is there any way to scheduled reports to FTP server via command line ?

Hi all , Kindly help configure fortianalyzer to forward all scheduled Reports generated automatically (pdf & html.zip) to a ftp server  via command line.

 

Currently we receives fortianalyzer Report via email(PDF & HTML), i would like to configure 

 

Note: I know how to do via GUI,but need to do this via command line interface

We have also tried execute backup reports <report name or all> <ftp/sftp/scp> <ip> <user name> <password> <directory>

http://kb.fortinet.com/kb/documentLink.do?externalID=FD36255

but we are getting output as rfiles.tg

 

 

 

 

 

3 REPLIES 3
hzhao_FTNT
Staff
Staff

Hi there, there is no CLI command to schedule upload report, but we do provide JSON APIs to set output profile/schedule if you are familiar with it. BTW, rfiles.tg is a tar.gz file which can be uncompressd by "tar xzvf" in linux.

 

regards,

hz

Rajesh0032

Thank you, I would like to confirm does same restrictions applies to change currently configured SMTP server IP addresses ? -- Currently we were trying to extract the tg format using 7zip ( Windows), will test from Linux
hzhao_FTNT

You can change mail server ip by CLI "config system mail".

 

regards,

hz