Navigation

mongocli ops-manager serverUsage download

The serverUsage download command retrieves a compressed report, in zip or .tar.gz format, of server usage in a given timeframe. You can also retrieve this information using the Ops Manager UI or API.

mongocli ops-manager|om serverUsage download
[--format <format>]
[--startDate <start-date>]
[--endDate <end-date>]
Note

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

Option
Type
Description
Required?
--format
string
Compression format of the resulting report. Ops Manager accepts zip or .tar.gz.
yes
--startDate
string
ISO 8601 formatted date when the report starts.
yes
--endDate
string
ISO 8601 formatted date when the report ends.
yes

If the command succeeds, it returns either a zip or .tar.gz compressed file based on your format parameter. If the command returns errors, see Troubleshooting for recommended solutions.

For more information, see the Ops Manager API.

The following command returns a compressed report, in zip format, of server usage in a given timeframe.

mongocli om serverUsage download -- format zip --startDate 2020-01-01 --endDate 2021-01-01
Give Feedback