Fortinet white logo
Fortinet white logo

EMS CLI Reference

7.4.4

db

db

attempts to connect to the EMS DB using psql

Synopsis

db will attempt to connect to the EMS DB using psql.

A specific DB to connect to, and/or a query to execute, may optionally be provided using the --db and --query flags, respectively.

If no DB is specified, fcm_default will be used.

If a query is specified, psql will exit after attempting to execute the query against the specified DB. If no query is specified, psql will remain open.

db [flags]

Options

      --db string      The database to connect to (default "fcm_default")
  -h, --help           help for db
      --public         Use the public schema when attempting to connect to the DB
      --query string   The query to execute

See also

  • emscli - EMS CLI - a tool for viewing and updating information about EMS

db

db

attempts to connect to the EMS DB using psql

Synopsis

db will attempt to connect to the EMS DB using psql.

A specific DB to connect to, and/or a query to execute, may optionally be provided using the --db and --query flags, respectively.

If no DB is specified, fcm_default will be used.

If a query is specified, psql will exit after attempting to execute the query against the specified DB. If no query is specified, psql will remain open.

db [flags]

Options

      --db string      The database to connect to (default "fcm_default")
  -h, --help           help for db
      --public         Use the public schema when attempting to connect to the DB
      --query string   The query to execute

See also

  • emscli - EMS CLI - a tool for viewing and updating information about EMS