mongocli ops-manager agents upgrade
The agents upgrade
command upgrades the MongoDB Agents and BI
Connector in the specified project to their latest version.
Syntax
mongocli ops-manager|om agents upgrade [ --output|-o <output-format> ] [ --profile|-P <profile-name> ] [ --projectId <id-of-project> ]
Options
Option | Type | Description | Required? |
--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 the project are saved. If omitted, uses the
default profile. To learn more about creating a
profile, see Configure the MongoDB CLI. | no |
--projectId | string | Unique identifier of the project. If omitted, uses the project ID in the profile or environment variable. | no |
Output
The command prints the following fields in the specified format to the terminal if the command succeeds. If the command returns errors, see Troubleshooting for recommended solutions.
Name | Type | Description |
---|---|---|
automationAgentVersion | string | Latest version of the MongoDB Agent. |
biConnectorVersion | string | Latest version of the BI Connector. |
Example
The following example uses the mongocli om agents upgrade
command
to upgrade the MongoDB Agents and the BI Connector to their latest
version in the specified project. It uses the profile named
myprofile
for accessing Ops Manager.
mongocli om agents upgrade --projectId 5eac961b0838261259e0302d \ --profile myprofile --output json
The previous command prints the following fields in the specified format to the terminal. To learn more about these fields, see Output.
{ "automationAgentVersion": "10.15.0.6376-1", "biConnectorVersion": "2.13.4" }