Diagnostic Commands
MongoDB 5.0 is end of life as of October 2024. This version of the documentation is no longer
supported. To upgrade your 5.0 deployment, see the MongoDB 6.0 upgrade procedures.
Note
For details on a specific command, including syntax and examples, click on the link to the command's reference page.
Name | Description |
---|---|
Internal command that reports on the capabilities of the current MongoDB instance. | |
Displays statistics about the MongoDB build. | |
Reports storage utilization statics for a specified collection. | |
Reports statistics on the outgoing connections from this MongoDB instance to other MongoDB instances in the deployment. | |
Reports the authentication state for the current connection. | |
Returns the data size for a range of data. For internal use. | |
Returns hash value a database and its collections. | |
Reports storage utilization statistics for the specified database. | |
Returns information on the execution of various operations. | |
Returns a document with the run-time arguments to the MongoDB instance and their parsed options. | |
Returns recent log messages. | |
Returns data that reflects the underlying host system. | |
Lists all database commands provided by the current mongod instance. | |
Internal command that returns information on locks that are
currently being held or pending. Only available for
mongod instances. | |
Internal command that tests intra-deployment connectivity. | |
Interface for the database profiler. | |
Returns a collection metrics on instance-wide resource utilization and status. | |
Returns raw usage statistics for each database in the mongod instance. | |
Internal command that scans for a collection's data and indexes for correctness. | |
Checks that the stored metadata of a database/collection is valid
within a particular API version. | |
Internal command that returns information on the current client. |