Created
March 6, 2015 14:56
-
-
Save keewon/4196bd0c73bbcaabf3e5 to your computer and use it in GitHub Desktop.
get Mongo primary uri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mongo --quiet --eval 'rs.isMaster()["primary"]' | |
air.local:27017 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment