mongocli ops-manager admin backup oplog list
Note
You must be a Global Owner
to run admin
commands.
The admin backup oplog list
command retrieves the
configurations of all oplog stores. You can also
retrieve the configurations of all oplog stores using
the API.
Syntax
mongocli ops-manager|om admin backup oplog(s) list|ls [ --limit <items-per-page> ] [ --page <page-number> ] [ --output|-o <output-format> ] [ --profile|-P <profile-name> ]
Note
Use -h
or --help
to view the command-line help for
this command.
Options
Option | Type | Description | Required? |
---|---|---|---|
--limit | integer | Number of items to return per page, up to a maximum of 500.
Defaults to 100 if omitted. | no |
--page | integer | Page number (1-based). Defaults to 1 if not specified. | no |
--output , -o | string | Command output format. Valid values are:
If omitted, the command returns output in the default format. | no |
--profile , -P | string | Name of the profile where the public and private
keys for accessing Ops Manager are saved. If omitted, uses the
default profile. To learn more about creating a
profile, see Configure the MongoDB CLI. | no |
Output
If the command succeeds, it returns the following output in the default format. If the command returns errors, see Troubleshooting for recommended solutions.
NAME URI SSL LOAD FACTOR MAX CAPACITY GB <oplog-ID> <store-path> <true|false> <load-factor> <capacity>
The default output contains a subset of the fields returned by this command. For the complete list of JSON fields returned by the command, see the API reference.
Example
The following mongocli om admin backup oplog list
command
retrieves the configurations of all oplog stores using the
default profile, which contains Ops Manager credentials.
mongocli om admin backup oplog list
The previous command returns the following:
NAME URI SSL LOAD FACTOR MAX CAPACITY GB oplog1 mongodb://localhost:27017 false 1 <nil>
mongocli om admin backup oplog list --output json
The previous command returns the following:
{ "links": [ { "rel": "self", "href": "http://example.com:8080/api/public/v1.0/admin/backup/oplog/mongoConfigs?pageNum=1\u0026itemsPerPage=100" } ], "results": [ { "id": "oplog1", "uri": "mongodb://localhost:27017", "ssl": false, "assignmentEnabled": true, "encryptedCredentials": false, "loadFactor": 1 } ], "totalCount": 1 }