riyyaz
riyyaz

Reputation: 85

How to get all the clients connected to MongoDB

Is there any command which will display list of all IP addresses currently connected to MongoDB?

I tried db.serverStatus().connections but it only returns total number of connections, but does not give any information about connected clients.

Thanks in advance for your help.

Upvotes: 1

Views: 828

Answers (1)

helmy
helmy

Reputation: 9497

db.currentOp(true) will give you that.

Upvotes: 1

Related Questions