- Reference >
mongoShell Methods >- Database Methods >
- db.hostInfo()
db.hostInfo()¶
-
db.hostInfo()¶ New in version 2.2.
Returns: A document with information about the underlying system that the mongodormongosruns on. Some of the returned fields are only included on some platforms.db.hostInfo()provides a helper in themongoshell around thehostInfoThe output ofdb.hostInfo()on a Linux system will resemble the following:See
hostInfofor full documentation of the output ofdb.hostInfo().