- Reference >
- Database Commands >
- Diagnostic Commands
Diagnostic Commands¶
Note
For details on specific commands, including syntax and examples, click on the specific command to go to its reference page.
Name | Description |
---|---|
availableQueryOptions |
Internal command that reports on the capabilities of the current MongoDB instance. |
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. |
cursorInfo |
Removed in MongoDB 3.2. Replaced with metrics.cursor . |
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. |
diagLogging |
Provides a diagnostic logging. For internal use. |
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. |
listDatabases |
Returns a document that lists all databases and returns basic database statistics. |
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 |
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. |
whatsmyuri |
Internal command that returns information on the current client. |