.. _mongocli-ops-manager-serverUsage-download:

=========================================
mongocli ops-manager serverUsage download
=========================================

.. default-domain:: mongodb

.. contents:: On this page
   :local:
   :backlinks: none
   :depth: 1
   :class: singlecol

Download the server usage report.

Syntax
------

.. code-block::
   :caption: Command Syntax

   mongocli ops-manager serverUsage download [options]

.. Code end marker, please don't delete this comment

Options
-------

.. list-table::
   :header-rows: 1
   :widths: 20 10 10 60

   * - Name
     - Type
     - Required
     - Description
   * - --endDate
     - string
     - true
     - Timestamp, in ISO 8601 date format, when the list of host assignments ends.
   * - --force
     - 
     - false
     - Flag that indicates whether to overwrite the destination file.
   * - --format
     - string
     - false
     - Compression format of the resulting report. Valid values are ZIP, TAR, or .GZ. This value defaults to "tar.gz".
   * - -h, --help
     - 
     - false
     - help for download
   * - --out
     - string
     - false
     - Output file name. This value defaults to the log name.
   * - --skipRedaction
     - 
     - false
     - Flag that indicates whether to skip the redaction of sensitive values. If you set this flag, Ops Manager logs the original values for hostnames, IP addresses, and namespaces in API responses for this job.
   * - --startDate
     - string
     - true
     - Timestamp, in ISO 8601 date format, when the list of host assignments starts.

Inherited Options
-----------------

.. list-table::
   :header-rows: 1
   :widths: 20 10 10 60

   * - Name
     - Type
     - Required
     - Description
   * - -P, --profile
     - string
     - false
     - Name of the profile to use from your configuration file. To learn about profiles for MongoCLI, see https://dochub.mongodb.org/core/atlas-cli-configuration-file.

Examples
--------

.. code-block::
   :copyable: false

   mongocli ops-manager serverUsage download --endDate 2022-12-12 --startDate 2022-01-01
