- 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 amongosinstance.Note
The
db.printCollectionStats()in themongoshell does not return JSON. Usedb.printCollectionStats()for manual inspection, and Config Database Contents in scripts.See also