Navigation
This version of the documentation is archived and no longer supported.

rs.status()

On this page

Definition

rs.status()

Returns the replica set status from the point of view of the member where the method is run.

Important

mongo Shell Method

This page documents a mongo method. This is not the documentation for database commands or language-specific drivers, such as Node.js. To use the database command, see the replSetGetStatus command.

For MongoDB API drivers, refer to the language-specific MongoDB driver documentation.

This output reflects the current status of the replica set, using data derived from the heartbeat packets sent by the other members of the replica set.

Output

For an example and details on the output, see replSetGetStatus.