0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

adding db.serverStatus() to db.help()

This commit is contained in:
Mathias Stearn 2010-03-10 14:13:18 -05:00
parent eb7cde3e75
commit 141a94b37a

View File

@ -282,6 +282,7 @@ DB.prototype.help = function() {
print("\tdb.repairDatabase()"); print("\tdb.repairDatabase()");
print("\tdb.resetError()"); print("\tdb.resetError()");
print("\tdb.runCommand(cmdObj) run a database command. if cmdObj is a string, turns it into { cmdObj : 1 }"); print("\tdb.runCommand(cmdObj) run a database command. if cmdObj is a string, turns it into { cmdObj : 1 }");
print("\tdb.serverStatus()");
print("\tdb.setProfilingLevel(level,<slowms>) 0=off 1=slow 2=all"); print("\tdb.setProfilingLevel(level,<slowms>) 0=off 1=slow 2=all");
print("\tdb.shutdownServer()"); print("\tdb.shutdownServer()");
print("\tdb.stats()"); print("\tdb.stats()");