Fortinet white logo
Fortinet white logo

EMS CLI Reference

7.4.4

emscli execute diagnostic

emscli execute diagnostic

generates diagnostic logs from EMS and the database

Synopsis

execute diagnostic generates diagnostic logs for EMS. A local destination for the file must be provided to the --local.file flag, if not saving a remote copy.

To save a remote copy, provide any --remote flags required to connect.

In either case, a --compress-type (either zip or database) and --backup.password for the database backup file must also be provided.`

emscli execute diagnostic [flags]

Options

      --backup.password string   A password for the database backup file to be included in the diagnostic output, which must be provided when the database is later restored
      --copy.service string      The service that will be used to copy to the remote host [scp|ftp|sftp] (default "scp")
  -h, --help                     help for diagnostic
      --include.db               Controls whether a backup of the database will be included in the diagnostic output
      --keep.file /exchange      If copying to a remote host, controls whether a copy of the diagnostic file will be kept locally in the /exchange folder after the diagnostic file generation completes
      --remote.folder string     The /path/ on the remote host to where the diagnostic file will be copied. The remote user must have write access to this location.
                                 (For the FTP service, the file location is relative to the FTP root folder)
      --remote.ip string         The IP of the remote host where the diagnostic file will be copied to
      --remote.password string   The password for the remote user that will be used to connect to the remote host
      --remote.port int          The port to be used by the remote copy service. [default: 22 for SCP/SFTP, 21 for FTP]
      --remote.user string       The user that will be used to connect to the remote host

See also

emscli execute diagnostic

emscli execute diagnostic

generates diagnostic logs from EMS and the database

Synopsis

execute diagnostic generates diagnostic logs for EMS. A local destination for the file must be provided to the --local.file flag, if not saving a remote copy.

To save a remote copy, provide any --remote flags required to connect.

In either case, a --compress-type (either zip or database) and --backup.password for the database backup file must also be provided.`

emscli execute diagnostic [flags]

Options

      --backup.password string   A password for the database backup file to be included in the diagnostic output, which must be provided when the database is later restored
      --copy.service string      The service that will be used to copy to the remote host [scp|ftp|sftp] (default "scp")
  -h, --help                     help for diagnostic
      --include.db               Controls whether a backup of the database will be included in the diagnostic output
      --keep.file /exchange      If copying to a remote host, controls whether a copy of the diagnostic file will be kept locally in the /exchange folder after the diagnostic file generation completes
      --remote.folder string     The /path/ on the remote host to where the diagnostic file will be copied. The remote user must have write access to this location.
                                 (For the FTP service, the file location is relative to the FTP root folder)
      --remote.ip string         The IP of the remote host where the diagnostic file will be copied to
      --remote.password string   The password for the remote user that will be used to connect to the remote host
      --remote.port int          The port to be used by the remote copy service. [default: 22 for SCP/SFTP, 21 for FTP]
      --remote.user string       The user that will be used to connect to the remote host

See also