- Reference >
- Database Commands >
- getCmdLineOpts
getCmdLineOpts¶
-
getCmdLineOpts¶ The
getCmdLineOptscommand returns a document containing command line options used to start the givenmongod:This command returns a document with two fields,
argvandparsed. Theargvfield contains an array with each item from the command string used to invokemongod. The document in theparsedfield includes all runtime options, including those parsed from the command line and those specified in the configuration file, if specified.Consider the following example output of
getCmdLineOpts:http://docs.mongodb.org/manual/administration/import-export/