Skip to content

Instantly share code, notes, and snippets.

@yupadhyay
Created December 10, 2014 19:12
Show Gist options
  • Save yupadhyay/4a71d5ad759425e7b2ac to your computer and use it in GitHub Desktop.
Save yupadhyay/4a71d5ad759425e7b2ac to your computer and use it in GitHub Desktop.
cd <Mongo bin directory>
./mongo
# Show all db
show dbs
# Check status of replica set
rs.status()
# If this is secondary you need to do
rs.slaveOk()
# Use database (Use AEM DB or DB you chose)
use <data-base-name>
# Show all collection
show collections
# Check status of blob
db.blobs.stats()
# Check all cluster Node
db.clusterNodes.find().pretty()
#Will add more later .......
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment