- Reference >
- JavaScript Methods >
- db.printSlaveReplicationInfo()
db.printSlaveReplicationInfo()¶
-
db.
printSlaveReplicationInfo
()¶ Provides a formatted report of the status of a replica set from the perspective of the secondary set member. See the “Replica Set Status Reference” for more information regarding the contents of this output.
Note
The
db.printSlaveReplicationInfo()
in themongo
shell does not return JSON. Usedb.printSlaveReplicationInfo()
for manual inspection, andrs.status()
in scripts.