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描述
buildInfoDisplays statistics about the MongoDB build.显示有关MongoDB构建的统计信息。
collStatsReports storage utilization statics for a specified collection.报告指定集合的存储利用率静态信息。
connPoolStatsReports statistics on the outgoing connections from this MongoDB instance to other MongoDB instances in the deployment.报告从该MongoDB实例到部署中其他MongoDB示例的传出连接的统计信息。
connectionStatusReports the authentication state for the current connection.报告当前连接的身份验证状态。
cursorInfoRemoved in MongoDB 3.2. Replaced with metrics.cursor.在MongoDB 3.2中删除。替换为metrics.cursor
dataSizeReturns the data size for a range of data. For internal use.返回数据范围的数据大小。供内部使用。
dbHashReturns hash value a database and its collections.返回数据库及其集合的哈希值。
dbStatsReports storage utilization statistics for the specified database.报告指定数据库的存储利用率统计信息。
driverOIDTestInternal command that converts an ObjectId to a string to support tests.将ObjectId转换为字符串以支持测试的内部命令。
explainReturns information on the execution of various operations.返回有关执行各种操作的信息。
featuresReports on features available in the current MongoDB instance.报告当前MongoDB实例中可用的功能。
getCmdLineOptsReturns a document with the run-time arguments to the MongoDB instance and their parsed options.返回包含MongoDB实例的运行时参数及其解析选项的文档。
getLogReturns recent log messages.返回最近的日志消息。
hostInfoReturns data that reflects the underlying host system.返回反映基础主机系统的数据。
_isSelfInternal command to support testing.支持测试的内部命令。
listCommandsLists all database commands provided by the current mongod instance.列出当前mongod实例提供的所有数据库命令。
lockInfoInternal command that returns information on locks that are currently being held or pending. 内部命令,该命令返回有关当前正在保留或挂起的锁的信息。Only available for mongod instances.仅适用于mongod实例。
netstatInternal command that reports on intra-deployment connectivity. 报告内部部署连接的内部命令。Only available for mongos instances.仅适用于mongos实例。
pingInternal command that tests intra-deployment connectivity.测试部署内连接的内部命令。
profileInterface for the database profiler.数据库探查器的接口。
serverStatusReturns a collection metrics on instance-wide resource utilization and status.返回实例范围内资源利用率和状态的度量集合。
shardConnPoolStats

Deprecated in 4.4 Use :dbcommand:`connPoolStats` instead.在4.4中不推荐,请改用:dbcommand:`connPoolStats`。

Reports statistics on a mongos's connection pool for client operations against shards.报告针对分片的客户端操作的mongos连接池的统计信息。

topReturns raw usage statistics for each database in the mongod instance.返回mongod实例中每个数据库的原始使用统计信息。
validateInternal command that scans for a collection's data and indexes for correctness.内部命令,用于扫描集合的数据和索引的正确性。
validateDBMetadataChecks that the stored metadata of a database/collection is valid within a particular API version.检查数据库/集合的存储元数据在特定API版本内是否有效。
whatsmyuriInternal command that returns information on the current client.返回当前客户端信息的内部命令。
←  shutdownbuildInfo →