- Reference >
mongo
Shell Methods >- Database Methods >
- db.hostInfo()
db.hostInfo()¶
-
db.
hostInfo
()¶ Returns a document with information about the underlying system that the
mongod
ormongos
runs on. Some of the returned fields are only included on some platforms.db.hostInfo()
provides a helper in themongo
shell around thehostInfo
The output ofdb.hostInfo()
on a Linux system will resemble the following:See
hostInfo
for full documentation of the output ofdb.hostInfo()
.