You can download the product consumption data for a vCloud Usage Meter instance by using the vCloud Usage Meter Web interface or by running a Python script.

To ensure the accurate reporting for the specified month, the downloaded product consumption report includes consumption data from up to two days from the previous month and up to two days from the beginning of the next month. After the second day of the new reporting month, you must download from vCloud Usage Meter the product consumption data and upload it to vCloud Usage Insight.

If you unpack the downloaded file with the product consumption data, you can review the additional days of consumption data. When you upload the product consumption data to the cloud, some of the consumption data duplicates with the consumption data that is uploaded a month earlier. vCloud Usage Insight does not report duplicate consumption data and you are not billed twice for the days from the start and end of each month.

Prerequisites

To download the product consumption data by using a Python script, you must meet the following requirements.
  • On the machine from which you run the script, you must install Python 3.x.
  • You must install the Python requests library.
  • On the vCloud Usage Meter 4.4 Download Page, navigate to Drivers & Tools, and download the download_usage.py script.

Procedure

  1. To download the product consumption data by using the vCloud Usage Meter Web interface, follow the steps.
    1. In the main menu bar of the web interface, click Usage.
    2. From the Select Reporting Month drop-down menu, select the month for which you want to download the product consumption report, and click Download.
    You downloaded the file with the product consumption data for the vCloud Usage Meter that is configured in an offline mode.
  2. To download the product consumption data by using a Python script, follow the steps.
    1. Enter the directory in which you save the download_usage.py script.
    2. Download the product consumption data.
      Download Type Command Location for the Download File
      Download the product consumption data for the most recent month.
      python3 download_usage.py um-ip-address usagemeter usagemeter-account-password
      The downloaded file is saved to the directory from which you run the Python script.
      Download the product consumption data for a specified month.
      python3 download_usage.py -p year-month um-ip-address usagemeter usagemeter-account-password
      The downloaded file is saved to the directory from which you run the Python script.
      Download to a specified directory the product consumption data for a specified month.
      python3 download_usage.py -p year-month -d full-system-path-to-directory um-ip-address usagemeter usagemeter-account-password
      The downloaded file is saved to the directory which you specified in the command.

What to do next

To upload the file with the product consumption data by using a Python script, see How do I use a script to upload the product consumption data for a vCloud Usage Meter instance in an offline mode.

To upload the file with the product consumption data by using the vCloud Usage Insight UI, see How do I upload a vCloud Usage Meter product consumption report to vCloud Usage Insight.