Skip to content

Commit b058c6f

Browse files
author
Bob Grabar
committed
DOCS-767 specify multiple hosts
1 parent 551acb0 commit b058c6f

File tree

9 files changed

+22
-4
lines changed

9 files changed

+22
-4
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
For replica sets, you can specify multiple hosts using the following
2+
format:
3+
4+
.. code-block:: javascript
5+
6+
<replica_set_name>/<hostname1><:port>,<hostname2:<port>,...

source/reference/mongodump.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ Options
5151
running on a port other than ``27017``.
5252

5353
To connect to a replica set, use the :option:`--host <mongodump --host>`
54-
argument with a setname, followed by a slash and a comma
55-
separated list of host names and port numbers. The :program:`mongodump`
54+
argument with a setname, followed by a slash and a comma-separated
55+
list of host names and port numbers. The :program:`mongodump`
5656
utility will, given the seed of at least one connected set member,
5757
connect to the primary member of that set. This option would resemble:
5858

source/reference/mongoexport.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Options
5555
Optionally, specify a port number to connect a MongoDB instance
5656
running on a port other than ``27017``.
5757

58+
.. include:: /includes/fact-multiple-hosts.rst
59+
5860
.. option:: --port <port>
5961

6062
Specifies the port number, if the MongoDB instance is not running on

source/reference/mongoimport.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ Options
5757
running on a port other than ``27017``.
5858

5959
To connect to a replica set, use the :option:`--host` argument with a
60-
setname, followed by a slash and a comma separated list of host and
60+
setname, followed by a slash and a comma-separated list of host and
6161
port names. The :program:`mongo` utility will, given the seed of at least
62-
one connected set member, connect to primary node of that set. this
62+
one connected set member, connect to primary node of that set. This
6363
option would resemble:
6464

6565
.. code-block:: sh

source/reference/mongooplog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ Options
7979
You can always connect directly to a single :program:`mongod`
8080
instance by specifying the host and port number directly.
8181

82+
.. include:: /includes/fact-multiple-hosts.rst
83+
8284
.. option:: --port
8385

8486
Specifies the port number of the :program:`mongod` instance where

source/reference/mongorestore.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Options
6666
Optionally, specify a port number to connect a MongoDB instance
6767
running on a port other than ``27017``.
6868

69+
.. include:: /includes/fact-multiple-hosts.rst
70+
6971
.. option:: --port <port>
7072

7173
Specifies the port number, if the MongoDB instance is not running

source/reference/mongosniff.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ Options
5555
Specify the target host name and port in the ``<host>:<port>``
5656
format.
5757

58+
.. include:: /includes/fact-multiple-hosts.rst
59+
5860
.. option:: --source <NET [interface]>, <FILE [filename]>, <DIAGLOG [filename]>
5961

6062
Specifies source material to inspect. Use ``--source NET

source/reference/mongostat.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ Options
6767
Optionally, specify a port number to connect a MongoDB instance
6868
running on a port other than ``27017``.
6969

70+
.. include:: /includes/fact-multiple-hosts.rst
71+
7072
.. option:: --port <port>
7173

7274
Specifies the port number, if the MongoDB instance is not running on

source/reference/mongotop.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Options
6363
Optionally, specify a port number to connect a MongoDB instance
6464
running on a port other than ``27017``.
6565

66+
.. include:: /includes/fact-multiple-hosts.rst
67+
6668
.. option:: --port <port>
6769

6870
Specifies the port number, if the MongoDB instance is not running on

0 commit comments

Comments
 (0)