Navigation
This version of the manual is no longer supported.

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 a mongos instance.

Note

The db.printCollectionStats() in the mongo shell does not return JSON. Use db.printCollectionStats() for manual inspection, and Config Database Contents in scripts.

See also

sh.status()