Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-19160

hostInfo for Mac OS has extra characters

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Trivial - P5 Trivial - P5
    • 3.1.7
    • Affects Version/s: 3.1.4
    • Component/s: Diagnostics, Shell
    • Fully Compatible
    • OS X
    • Hide

      db.hostInfo()

      Show
      db.hostInfo()
    • Platform 6 07/17/15, Platform 7 08/10/15
    • None
    • 0
    • None
    • None
    • None
    • None
    • None
    • None

      The output of hostInfo on Mac OS X has the \u0000 characters on the end of several fields:

      db.hostInfo()
      {
      	"system" : {
      		"currentTime" : ISODate("2015-06-26T18:12:50.429Z"),
      		"hostname" : "MacBook-Pro.local",
      		"cpuAddrSize" : 64,
      		"memSizeMB" : 16384,
      		"numCores" : 8,
      		"cpuArch" : "x86_64\u0000",
      		"numaEnabled" : false
      	},
      	"os" : {
      		"type" : "Darwin",
      		"name" : "Mac OS X",
      		"version" : "14.3.0\u0000"
      	},
      	"extra" : {
      		"versionString" : "Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64\u0000",
      		"alwaysFullSync" : 0,
      		"nfsAsync" : 0,
      		"model" : "MacBookPro10,1\u0000",
      		"physicalCores" : 4,
      		"cpuFrequencyMHz" : 2300,
      		"cpuString" : "Intel(R) Core(TM) i7-3615QM CPU @ 2.30GHz\u0000",
      		"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 EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC POPCNT AES PCID XSAVE OSXSAVE TSCTMR AVX1.0 RDRAND F16C\u0000 SYSCALL XD EM64T LAHF RDTSCP TSCI\u0000",
      		"pageSize" : 4096,
      		"scheduler" : "multiq\u0000"
      	},
      	"ok" : 1
      }
      

            Assignee:
            andrew.morrow@mongodb.com Andrew Morrow (Inactive)
            Reporter:
            jonathan.abrahams Jonathan Abrahams (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: