[SERVER-2847] db.slaves.find() gives only host info not port info Created: 28/Mar/11  Updated: 29/Aug/11  Resolved: 29/Mar/11

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 1.8.0
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Sandeep Mukhopadhyay Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

use local
switched to db local
> db.slaves.find()

Provides only host information and no port info
If I run two Slaves on one machine , How could i know about the which slave info.

Thanks
Sandy



 Comments   
Comment by Eliot Horowitz (Inactive) [ 29/Mar/11 ]

That's the correct command to use.

Comment by Sandeep Mukhopadhyay [ 29/Mar/11 ]

Thanks Eliot.

i would be using below command going forward
>use admin
>db.runCommand(

{replSetGetStatus:1}

)

Could u tell me more commands to be used for monitoring mongo helath for Shards and ReplSet?

Thanks
Sandy

Comment by Eliot Horowitz (Inactive) [ 29/Mar/11 ]

this collection is not meant for general purpose reporting.
replSetStatus is the best way to get that information

Generated at Thu Feb 08 03:01:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.