ping
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
Definition
ping
The
ping
command is a no-op used to test whether a server is responding to commands. This command will return immediately even if the server is write-locked:
Syntax
The command has the following syntax:
db.runCommand( { ping: 1 } )
The value (e.g. 1
above) does not impact the behavior of the
command.