db.hostInfo()¶Returns a document with information about the underlying system that the mongod or mongos runs on. Some of the returned fields are only included on some platforms.
db.hostInfo() provides a helper in the mongo shell around the hostInfo The output of db.hostInfo() on a Linux system will resemble the following:
See hostInfo for full documentation of the output of db.hostInfo().