| |
read source history
= serverStatus() =
----
[[MongoDB Driver Function Reference]]
Retrieves server status data.
More information can be found in the corresponding entry of the [[https://docs.mongodb.com/manual/reference/method/db.serverStatus/index.html|MongoDB Manual]].
[[[@cG
db.serverStatus()
]]]
**Return Value**
[[[@w
Returns a result set (cursor).
]]]
**Example**
[[[@cw
db.serverStatus().pretty();
]]]
Retrieves and formats the server status.
----
[[Main|home]] | [[MongoDB Driver Function Reference]] | [[MongoDB Driver]]
|