Diagnostic Commands
Note
For details on a specific command, including syntax and examples, click on the link to the command's reference page.
Name | Description |
---|---|
buildInfo | Displays statistics about the MongoDB build. |
collStats | Reports storage utilization statics for a specified collection. |
connPoolStats | Reports statistics on the outgoing connections from this MongoDB instance to other MongoDB instances in the deployment. |
connectionStatus | Reports the authentication state for the current connection. |
dataSize | Returns the data size for a range of data. For internal use. |
dbHash | Returns hash value a database and its collections. |
dbStats | Reports storage utilization statistics for the specified database. |
driverOIDTest | Internal command that converts an ObjectId to a string to support tests. |
explain | Returns information on the execution of various operations. |
features | Reports on features available in the current MongoDB instance. |
getCmdLineOpts | Returns a document with the run-time arguments to the MongoDB instance and their parsed options. |
getLog | Returns recent log messages. |
hostInfo | Returns data that reflects the underlying host system. |
_isSelf | Internal command to support testing. |
listCommands | Lists all database commands provided by the current mongod instance. |
lockInfo | Internal command that returns information on locks that are currently being held or pending. Only available for mongod instances. |
netstat | Internal command that reports on intra-deployment connectivity. Only available for mongos instances. |
ping | Internal command that tests intra-deployment connectivity. |
profile | Interface for the database profiler. |
serverStatus | Returns a collection metrics on instance-wide resource utilization and status. |
shardConnPoolStats | Deprecated in 4.4 Use :dbcommand:`connPoolStats` instead. Reports statistics on a mongos 's connection pool for client operations against shards.
|
top | Returns raw usage statistics for each database in the mongod instance. |
validate | Internal command that scans for a collection's data and indexes for correctness. |
validateDBMetadata | Checks that the stored metadata of a database/collection is valid within a particular API version. |
whatsmyuri | Internal command that returns information on the current client. |