Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-1035

document hostInfo command

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: Server
    • Labels:
      None

      I believe this command was first released in 2.2.0.

      There is a shell helper:

      db.hostInfo();
      {
      	"system" : {
      		"currentTime" : ISODate("2013-01-23T19:27:00.170Z"),
      		"hostname" : "rnzm.local",
      		"cpuAddrSize" : 64,
      		"memSizeMB" : 16384,
      		"numCores" : 8,
      		"cpuArch" : "x86_64",
      		"numaEnabled" : false
      	},
      	"os" : {
      		"type" : "Darwin",
      		"name" : "Mac OS X",
      		"version" : "12.2.1"
      	},
      	"extra" : {
      		"versionString" : "Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64",
      		"alwaysFullSync" : 0,
      		"nfsAsync" : 0,
      		"model" : "MacBookPro10,1",
      		"physicalCores" : 4,
      		"cpuFrequencyMHz" : 2700,
      		"cpuString" : "Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz",
      		"cpuFeatures" : "FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 SSE4.2 xAPIC POPCNT AES PCID XSAVE OSXSAVE TSCTMR AVX1.0 RDRAND F16C",
      		"pageSize" : 4096,
      		"scheduler" : "traditional"
      	},
      	"ok" : 1
      }
      

      And... the actual command:

      db.runCommand({'hostInfo' : 1});
      {
      	"system" : {
      		"currentTime" : ISODate("2013-01-23T19:26:56.114Z"),
      		"hostname" : "rnzm.local",
      		"cpuAddrSize" : 64,
      		"memSizeMB" : 16384,
      		"numCores" : 8,
      		"cpuArch" : "x86_64",
      		"numaEnabled" : false
      	},
      	"os" : {
      		"type" : "Darwin",
      		"name" : "Mac OS X",
      		"version" : "12.2.1"
      	},
      	"extra" : {
      		"versionString" : "Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64",
      		"alwaysFullSync" : 0,
      		"nfsAsync" : 0,
      		"model" : "MacBookPro10,1",
      		"physicalCores" : 4,
      		"cpuFrequencyMHz" : 2700,
      		"cpuString" : "Intel(R) Core(TM) i7-3820QM CPU @ 2.70GHz",
      		"cpuFeatures" : "FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 SSE4.2 xAPIC POPCNT AES PCID XSAVE OSXSAVE TSCTMR AVX1.0 RDRAND F16C",
      		"pageSize" : 4096,
      		"scheduler" : "traditional"
      	},
      	"ok" : 1
      }
      
      

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            rn@deftlabs.com Ryan Nitz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              11 years, 9 weeks, 1 day ago