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



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://www.w3resource.com/mongodb/shell-methods/database/db-serverCmdLineOpts.php