Created
December 10, 2014 19:12
-
-
Save yupadhyay/4a71d5ad759425e7b2ac to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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