Fortinet black logo

CLI Reference

svctools

svctools

Import or export the FortiAnalyzer configuration, and run JSON files.

Syntax

diagnose svctools export local

diagnose svctools export remote <ip> <string> <username> <password>

diagnose svctools import local name <adom>

diagnose svctools import remote <ip> <string> <username> <password> <adom>

diagnose svctools run local filename

diagnose svctools run remote <ip> <string> <username> <password>

Variable

Description

export local

Export the configuration locally.

export remote <ip> <string> <username> <password>

Export the configuration to a remote FTP server.

import local name <adom>

Import a local configuration from the specified ADOM.

import remote <ip> <string> <username> <password> <adom>

Import a remote configuration from an FTP server to the specified ADOM.

run local filename

Run a local JSON file on the target.

run remote <ip> <string> <username> <password>

Run a remote file from an FTP server.

Example

# diagnose svctools export local
Export FortiAnalyzer(121), 1 of 15 ADOM. 
Export FortiAuthenticator(137), 2 of 15 ADOM. 
Export FortiCache(125), 3 of 15 ADOM. 
Export FortiCarrier(117), 4 of 15 ADOM. 
Export FortiClient(127), 5 of 15 ADOM. 
Export FortiDDoS(135), 6 of 15 ADOM. 
Export FortiMail(119), 7 of 15 ADOM. 
Export FortiManager(131), 8 of 15 ADOM. 
Export FortiNAC(141), 9 of 15 ADOM. 
Export FortiProxy(139), 10 of 15 ADOM. 
Export FortiSandbox(133), 11 of 15 ADOM. 
Export FortiWeb(123), 12 of 15 ADOM. 
Export Syslog(129), 13 of 15 ADOM. 
Export others(115), 14 of 15 ADOM. 
Export root(3), 15 of 15 ADOM. 
Exported to /var/tmp/svctools_export

svctools

Import or export the FortiAnalyzer configuration, and run JSON files.

Syntax

diagnose svctools export local

diagnose svctools export remote <ip> <string> <username> <password>

diagnose svctools import local name <adom>

diagnose svctools import remote <ip> <string> <username> <password> <adom>

diagnose svctools run local filename

diagnose svctools run remote <ip> <string> <username> <password>

Variable

Description

export local

Export the configuration locally.

export remote <ip> <string> <username> <password>

Export the configuration to a remote FTP server.

import local name <adom>

Import a local configuration from the specified ADOM.

import remote <ip> <string> <username> <password> <adom>

Import a remote configuration from an FTP server to the specified ADOM.

run local filename

Run a local JSON file on the target.

run remote <ip> <string> <username> <password>

Run a remote file from an FTP server.

Example

# diagnose svctools export local
Export FortiAnalyzer(121), 1 of 15 ADOM. 
Export FortiAuthenticator(137), 2 of 15 ADOM. 
Export FortiCache(125), 3 of 15 ADOM. 
Export FortiCarrier(117), 4 of 15 ADOM. 
Export FortiClient(127), 5 of 15 ADOM. 
Export FortiDDoS(135), 6 of 15 ADOM. 
Export FortiMail(119), 7 of 15 ADOM. 
Export FortiManager(131), 8 of 15 ADOM. 
Export FortiNAC(141), 9 of 15 ADOM. 
Export FortiProxy(139), 10 of 15 ADOM. 
Export FortiSandbox(133), 11 of 15 ADOM. 
Export FortiWeb(123), 12 of 15 ADOM. 
Export Syslog(129), 13 of 15 ADOM. 
Export others(115), 14 of 15 ADOM. 
Export root(3), 15 of 15 ADOM. 
Exported to /var/tmp/svctools_export