You can download the product consumption data for a vCloud Usage Meter instance that is running in an offline mode by using the vCloud Usage Meter Web interface or by running a Python script.

Within the first 48 hours UTC time of the new month, you must download the product consumption data for the previous month from vCloud Usage Meter, and upload it to vCloud Usage Insight. The report contains product consumption data for the previous month as well as for the period from the start of the current month to the report generation event. vCloud Usage Insight checks subsequent reports for duplicate product consumption data anddoes not report duplicate consumption data and you are not billed for overlapping data.

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.5 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 vCloud Usage Meter consumption data to VMware Cloud Partner Navigator in the Using and Managing VMware Cloud Partner Navigator as a Cloud Provider documentation.