Skip to content

Instantly share code, notes, and snippets.

@rauchg
Created April 21, 2011 18:11
Show Gist options
  • Save rauchg/935142 to your computer and use it in GitHub Desktop.
Save rauchg/935142 to your computer and use it in GitHub Desktop.
[ec2-user@master:~] mongo
MongoDB shell version: 1.6.5
connecting to: test
> rs.status();
{
"set" : "lbrset",
"date" : "Thu Apr 21 2011 18:03:10 GMT+0000 (UTC)",
"myState" : 2,
"members" : [
{
"_id" : 0,
"name" : "xx1.internal:27017",
"health" : 0,
"state" : 2,
"uptime" : 0,
"lastHeartbeat" : "Wed Feb 23 2011 02:55:54 GMT+0000 (UTC)",
"errmsg" : "connect/transport error"
},
{
"_id" : 1,
"name" : "xx2.internal:27017",
"health" : 1,
"state" : 1,
"uptime" : 1168573,
"lastHeartbeat" : "Thu Apr 21 2011 18:03:08 GMT+0000 (UTC)"
},
{
"_id" : 2,
"name" : "xx0:27017",
"health" : 1,
"state" : 2,
"self" : true
},
{
"_id" : 3,
"name" : "xx3.internal:27017",
"health" : 0,
"state" : 2,
"uptime" : 0,
"lastHeartbeat" : "Fri Apr 15 2011 04:26:33 GMT+0000 (UTC)",
"errmsg" : "connect/transport error"
}
],
"ok" : 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment