- Reference >
- Database Commands >
- Diagnostic Commands >
- getCmdLineOpts
getCmdLineOpts¶
-
getCmdLineOpts
¶ The
getCmdLineOpts
command returns a document containing command line options used to start the givenmongod
ormongos
. RungetCmdLineOpts
in theadmin
database.This command returns a document with two fields,
argv
andparsed
. Theargv
field contains an array with each item from the command string used to invokemongod
ormongos
. The document in theparsed
field 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
: