Docs Menu

Docs HomeMongoDB Command Line Interface

mongocli ops-manager serverUsage capture

On this page

  • Syntax
  • Options
  • Output
  • Example

The serverUsage capture command generates a snapshot of the usage of all deployments in the projects and organizations associated with your profile. This snapshot includes the current information for each mongod and mongos process:

  • memory statistics

  • date

  • organization

  • project

  • IP

  • IANA port

You can also retrieve this information using the Ops Manager UI or API.

mongocli ops-manager|om serverUsage capture

Note

Use -h or --help to view the command-line help for this command.

Option
Type
Description
Required?
--profile, -P
string

Name of the profile where your credentials are saved.

If omitted, uses the default profile. To learn more about creating a profile, see Configure the MongoDB CLI.

no

If the command succeeds, it returns the message Snapshot captured. If the command returns errors, see Troubleshooting for recommended solutions.

For more information, see the Ops Manager API.

The following command generates a snapshot.

mongocli om serverUsage capture

The previous command prints the following to the terminal.

Snapshot captured.
←  mongocli ops-manager serverUsage project hosts listOps Manager versionManifest commands →
Share Feedback