Navigation
This version of the documentation is archived and no longer supported.

db.printReplicationInfo()

db.printReplicationInfo()

Provides a formatted report of the status of a replica set from the perspective of the primary set member. See the replSetGetStatus for more information regarding the contents of this output.

Note

The db.printReplicationInfo() in the mongo shell does not return JSON. Use db.printReplicationInfo() for manual inspection, and rs.status() in scripts.