- Reference >
- JavaScript Methods >
- db.printShardingStatus()
db.printShardingStatus()¶
-
db.
printShardingStatus
()¶ Provides a formatted report of the sharding configuration and the information regarding existing chunks in a sharded cluster.
Only use
db.printShardingStatus()
when connected to amongos
instance.Note
The
db.printCollectionStats()
in themongo
shell does not return JSON. Usedb.printCollectionStats()
for manual inspection, and Config Database Contents in scripts.See also