Join us at MongoDB.local London on 7 May to unlock new possibilities for your data. Use WEB50 to save 50%.
Register now >
Docs Menu
Docs Home
/ /
Database Methods

db.serverCmdLineOpts()

db.serverCmdLineOpts()

Wraps the getCmdLineOpts database command.

Returns a document that reports on the arguments and configuration options used to start the mongod or mongos instance.

See Configuration File Options, mongod, and mongos for additional information on available MongoDB runtime options.

Back

db.serverBuildInfo()