OPTIONS

sh._adminCommand()

Definition

sh._adminCommand(command, checkMongos)

Runs a database command against the admin database of a mongos instance.

Parameter Description
command A database command to run against the admin database.
checkMongos Require verification that the shell is connected to a mongos instance.

See also

db.runCommand()