OS Manuals

/usr/bin/pt-mongodb-index-check

Toolkit for MySQL/MariaDB

From percona-toolkit 3.7.2-r2 (enterprise-packages), captured 2026-11-08 by running pt-mongodb-index-check --help (exit 0). permalink

Also provided by 1 other package version
Usage: pt-mongodb-index-check --mongodb.uri=mongodb://host:port/admindb?options <command> [flags]

Flags:
  -h, --help                           Show context-sensitive help.
      --version
      --all-databases                  Check in all databases excluding system dbs
      --databases=DATABASES,...        Comma separated list of databases to check
      --all-collections                Check in all collections in the selected databases.
      --collections=COLLECTIONS,...    Comma separated list of collections to check
      --mongodb.uri=mongodb://host:port/admindb?options
                                       Connection URI
      --json                           Show output as JSON

Commands:
  check-unused --mongodb.uri=mongodb://host:port/admindb?options [flags]
    Check for unused indexes.

  check-duplicates --mongodb.uri=mongodb://host:port/admindb?options [flags]
    Check for duplicated indexes.

  check-all --mongodb.uri=mongodb://host:port/admindb?options [flags]
    Check for unused and duplicated indexes.

  show-help --mongodb.uri=mongodb://host:port/admindb?options [flags]

Run "pt-mongodb-index-check <command> --help" for more information on a command.
Options (8)
OptionDescriptionSource
-h, --helpShow context-sensitive help.help
--versionhelp
--all-databasesCheck in all databases excluding system dbshelp
--databases DATABASESComma separated list of databases to checkhelp
--all-collectionsCheck in all collections in the selected databases.help
--collections COLLECTIONSComma separated list of collections to checkhelp
--mongodb.uri mongodb://host:port/admindb?optionsConnection URIhelp
--jsonShow output as JSONhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.