- Reference >
mongo
Shell Methods >- Database 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 replSetGetStatus 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.