What is the command to get the number of clients connected to a particular MongoDB server?
Connect to MongoDB using mongo-shell and run following command.
db.serverStatus().connections
e.g:
mongo> db.serverStatus().connections { "current" : 3, "available" : 816, "totalCreated" : NumberLong(1270) }