- Reference >
- Database Commands >
- Diagnostic Commands >
- getCmdLineOpts
getCmdLineOpts¶
-
getCmdLineOpts¶ The
getCmdLineOptscommand returns a document containing command line options used to start the givenmongodormongos:This command returns a document with two fields,
argvandparsed. Theargvfield contains an array with each item from the command string used to invokemongodormongos. 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: