diff --git a/source/includes/fact-multiple-hosts.rst b/source/includes/fact-multiple-hosts.rst new file mode 100644 index 00000000000..31bd7f40180 --- /dev/null +++ b/source/includes/fact-multiple-hosts.rst @@ -0,0 +1,6 @@ +For replica sets, you can specify multiple hosts using the following +format: + +.. code-block:: javascript + + /<:port>,,... \ No newline at end of file diff --git a/source/reference/mongodump.txt b/source/reference/mongodump.txt index b794c2b44b5..3a3bac95319 100644 --- a/source/reference/mongodump.txt +++ b/source/reference/mongodump.txt @@ -51,8 +51,8 @@ Options running on a port other than ``27017``. To connect to a replica set, use the :option:`--host ` - argument with a setname, followed by a slash and a comma - separated list of host names and port numbers. The :program:`mongodump` + argument with a setname, followed by a slash and a comma-separated + list of host names and port numbers. The :program:`mongodump` utility will, given the seed of at least one connected set member, connect to the primary member of that set. This option would resemble: diff --git a/source/reference/mongoexport.txt b/source/reference/mongoexport.txt index d6a65996769..697eea92f9c 100644 --- a/source/reference/mongoexport.txt +++ b/source/reference/mongoexport.txt @@ -55,6 +55,8 @@ Options Optionally, specify a port number to connect a MongoDB instance running on a port other than ``27017``. + .. include:: /includes/fact-multiple-hosts.rst + .. option:: --port Specifies the port number, if the MongoDB instance is not running on diff --git a/source/reference/mongoimport.txt b/source/reference/mongoimport.txt index 553a53dc836..fa5b9cec9d9 100644 --- a/source/reference/mongoimport.txt +++ b/source/reference/mongoimport.txt @@ -57,9 +57,9 @@ Options running on a port other than ``27017``. To connect to a replica set, use the :option:`--host` argument with a - setname, followed by a slash and a comma separated list of host and + setname, followed by a slash and a comma-separated list of host and port names. The :program:`mongo` utility will, given the seed of at least - one connected set member, connect to primary node of that set. this + one connected set member, connect to primary node of that set. This option would resemble: .. code-block:: sh diff --git a/source/reference/mongooplog.txt b/source/reference/mongooplog.txt index 88b89742fb4..12743d59539 100644 --- a/source/reference/mongooplog.txt +++ b/source/reference/mongooplog.txt @@ -79,6 +79,8 @@ Options You can always connect directly to a single :program:`mongod` instance by specifying the host and port number directly. + .. include:: /includes/fact-multiple-hosts.rst + .. option:: --port Specifies the port number of the :program:`mongod` instance where diff --git a/source/reference/mongorestore.txt b/source/reference/mongorestore.txt index 4e568cb2f46..c44a37eb3fa 100644 --- a/source/reference/mongorestore.txt +++ b/source/reference/mongorestore.txt @@ -66,6 +66,8 @@ Options Optionally, specify a port number to connect a MongoDB instance running on a port other than ``27017``. + .. include:: /includes/fact-multiple-hosts.rst + .. option:: --port Specifies the port number, if the MongoDB instance is not running diff --git a/source/reference/mongosniff.txt b/source/reference/mongosniff.txt index c4dd728192e..10371d5d70c 100644 --- a/source/reference/mongosniff.txt +++ b/source/reference/mongosniff.txt @@ -55,6 +55,8 @@ Options Specify the target host name and port in the ``:`` format. + .. include:: /includes/fact-multiple-hosts.rst + .. option:: --source , , Specifies source material to inspect. Use ``--source NET diff --git a/source/reference/mongostat.txt b/source/reference/mongostat.txt index 7b0dea4c00a..f3af4bab277 100644 --- a/source/reference/mongostat.txt +++ b/source/reference/mongostat.txt @@ -67,6 +67,8 @@ Options Optionally, specify a port number to connect a MongoDB instance running on a port other than ``27017``. + .. include:: /includes/fact-multiple-hosts.rst + .. option:: --port Specifies the port number, if the MongoDB instance is not running on diff --git a/source/reference/mongotop.txt b/source/reference/mongotop.txt index cfc7432c295..5fecaf756df 100644 --- a/source/reference/mongotop.txt +++ b/source/reference/mongotop.txt @@ -63,6 +63,8 @@ Options Optionally, specify a port number to connect a MongoDB instance running on a port other than ``27017``. + .. include:: /includes/fact-multiple-hosts.rst + .. option:: --port Specifies the port number, if the MongoDB instance is not running on