命令:
# rs.conf(); # db.runCommand( { replSetGetConfig: 1 } ); glc-test:PRIMARY> db.runCommand({replSetGetConfig:1}).config.members [ { "_id" : 0, "host" : "c3-dba-glc-db03.bj:28042", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : { }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "c4-mc-buffer-db41.bj:28042", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : { }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 2, "host" : "c4-using-glc-db05.bj:28042", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : { }, "slaveDelay" : NumberLong(0), "votes" : 1 } ]
#######################################################################################