Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
Diagnostic Commands

ping

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:

{ ping: 1 }

The value (e.g. 1 above) does not impact the behavior of the command.

Back

netstat