Learn
Drivers
Downloads
Community
Blog
OPTIONS
Version
Select Version
3.0 (current)
2.6
2.4
2.2
Formats
HTML
PDF
EPUB
Contribute
Report a Problem
Edit on Github
Reference
>
mongo
Shell Methods
>
Sharding Methods
>
sh._adminCommand()
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()
←
Sharding Methods
sh.getBalancerLockDetails()
→
ON THIS PAGE
sh._adminCommand()
Definition
Report a Problem