summaryrefslogtreecommitdiff
path: root/src/mongo/shell
diff options
context:
space:
mode:
authorBen Becker <benjamin.becker@gmail.com>2012-02-29 08:28:01 -0800
committerBen Becker <benjamin.becker@gmail.com>2012-02-29 08:28:01 -0800
commit17e1dd2529d9622544717e635e71fd261977899f (patch)
tree8c3bf024de95e9a73eb71e9a5eef83bd90134954 /src/mongo/shell
parent8d87f158dc51809c993bb13da1d57c0907cc2659 (diff)
downloadmongo-17e1dd2529d9622544717e635e71fd261977899f.tar.gz
SERVER-4615: Added db.hostInfo() command
Diffstat (limited to 'src/mongo/shell')
-rw-r--r--src/mongo/shell/db.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/shell/db.js b/src/mongo/shell/db.js
index 6414e0351e7..05fa7fed9da 100644
--- a/src/mongo/shell/db.js
+++ b/src/mongo/shell/db.js
@@ -330,6 +330,7 @@ DB.prototype.help = function() {
print("\tdb.getProfilingStatus() - returns if profiling is on and slow threshold");
print("\tdb.getReplicationInfo()");
print("\tdb.getSiblingDB(name) get the db at the same server as this one");
+ print("\tdb.hostInfo() get details about the server's host");
print("\tdb.isMaster() check replica primary status");
print("\tdb.killOp(opid) kills the current operation in the db");
print("\tdb.listCommands() lists all the db commands");
@@ -805,6 +806,10 @@ DB.prototype.serverStatus = function(){
return this._adminCommand( "serverStatus" );
}
+DB.prototype.hostInfo = function(){
+ return this._adminCommand( "hostInfo" );
+}
+
DB.prototype.serverCmdLineOpts = function(){
return this._adminCommand( "getCmdLineOpts" );
}