w3resource

MongoDB: db.serverCmdLineOpts() method

db.serverCmdLineOpts

The db.serverCmdLineOpts() method is used to return a document that reports on the arguments and configuration options used to start the mongod or mongos instance.

Syntax:

db.serverCmdLineOpts()

Example: MongoDB: db.serverCmdLineOpts() method

db.serverCmdLineOpts();

Output:

> db.serverCmdLineOpts();
{ "argv" : [ "mongod" ], "parsed" : { }, "ok" : 1 }

Retrieve the restaurants data from here

Previous: db.serverBuildInfo() method
Next: db.serverStatus() method



Share this Tutorial / Exercise on : Facebook and Twitter