OPTIONS

Diagnostic CommandsΒΆ

Name Description
explain Returns information on the execution of various operations.
listDatabases Returns a document that lists all databases and returns basic database statistics.
dbHash Internal command to support sharding.
driverOIDTest Internal command that converts an ObjectId to a string to support tests.
listCommands Lists all database commands provided by the current mongod instance.
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.
shardConnPoolStats Reports statistics on a mongos‘s connection pool for client operations against shards.
dbStats Reports storage utilization statistics for the specified database.
cursorInfo Removed in MongoDB 3.2. Replaced with metrics.cursor.
dataSize Returns the data size for a range of data. For internal use.
diagLogging Provides a diagnostic logging. For internal use.
getCmdLineOpts Returns a document with the run-time arguments to the MongoDB instance and their parsed options.
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.
validate Internal command that scans for a collection’s data and indexes for correctness.
top Returns raw usage statistics for each database in the mongod instance.
whatsmyuri Internal command that returns information on the current client.
getLog Returns recent log messages.
hostInfo Returns data that reflects the underlying host system.
serverStatus Returns a collection metrics on instance-wide resource utilization and status.
features Reports on features available in the current MongoDB instance.
isSelf Internal command to support testing.
←   logRotate explain  →

Was this page helpful?

Yes No

Thank you for your feedback!

We're sorry! You can Report a Problem to help us improve this page.