[DOCS-1035] document hostInfo command Created: 23/Jan/13  Updated: 30/Oct/23  Resolved: 14/Mar/13

Status: Closed
Project: Documentation
Component/s: Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Ryan Nitz Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-4615 Add hostInfo command to show host inf... Closed
Participants:
Days since reply: 10 years, 48 weeks, 6 days ago

 Description   

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
}
 



 Comments   
Comment by auto [ 14/Mar/13 ]

Author:

{u'date': u'2013-02-27T01:09:17Z', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-1035: hostInfo documentation
Branch: master
https://github.com/mongodb/docs/commit/4a0ac01ae2686f873e0e3c1133cbc587f2a84142

Generated at Thu Feb 08 07:40:05 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.