mongos> db.version() 2.4.3 mongos> version() 2.4.3 mongos> buildInfo() Sat Jun 1 08:18:27.040 ReferenceError: buildInfo is not defined (shell):1 mongos> db.adminCommand("buildInfo") { "version" : "2.4.3", "gitVersion" : "nogitversion", "sysInfo" : "FreeBSD bayanbox1.bayan.ir 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 BOOST_LIB_VERSION=1_49", "loaderFlags" : "-fPIC -pthread -rdynamic", "compilerFlags" : "-Wnon-virtual-dtor -Woverloaded-virtual -fno-omit-frame-pointer -fPIC -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -O2 -pipe -fno-strict-aliasing", "allocator" : "system", "versionArray" : [ 2, 4, 3, 0 ], "javascriptEngine" : "SpiderMonkey", "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "ok" : 1 } mongos> db.hostInfo() { "system" : { "currentTime" : ISODate("2013-06-01T03:48:53.753Z"), "hostname" : "bayanbox1.bayan.ir", "cpuAddrSize" : 64, "memSizeMB" : 16165, "numCores" : 4, "cpuArch" : "amd64", "numaEnabled" : false }, "os" : { "type" : "BSD", "name" : "FreeBSD", "version" : "FreeBSD 9.0-RELEASE-p3 #0: Tue Jun 12 02:52:29 UTC 2012\n root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC\n" }, "extra" : { }, "ok" : 1 } mongos> getHostName() bayanbox1.bayan.ir