Skip to content

Instantly share code, notes, and snippets.

@crizstian
Created April 12, 2019 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crizstian/ae2722a3ff63b592504c342f8624396a to your computer and use it in GitHub Desktop.
Save crizstian/ae2722a3ff63b592504c342f8624396a to your computer and use it in GitHub Desktop.
MongoDB shell version v4.0.8
connecting to: mongodb://127.0.0.1:27017/?authSource=admin&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("26ef130b-42df-4aa3-bf71-a88c2d6dfb20") }
MongoDB server version: 4.0.8
{
...
"members" : [
{
"_id" : 0,
"name" : "10.0.3.175:27017",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
...
},
{
"_id" : 1,
"name" : "10.0.3.17:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
...
},
{
"_id" : 2,
"name" : "10.0.3.88:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 4094,
"optime" : {
"ts" : Timestamp(1554505219, 1),
"t" : NumberLong(1)
},
...
}
],
"ok" : 1,
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment