This procedure outlines extracting usage information from your vCloud Availability for Cloud-to-Cloud DR installation. You can use the exported information for reporting purposes.

Procedure

  1. Log in to the vCloud Availability vApp Replication Service/Manager appliance console as root.
    $ c4 loginroot C4-Root-Password
  2. (Optional) To verify that the usage report generates properly, run the following command.
    $ usage-report

    The system returns the vCloud Availability for Cloud-to-Cloud DR in the following format:

    # vCloud Availability C2C DR Usage Report
    
    generatedOn 2018-05-14 13:18:47.634510
    productName vSphere Replication Cloud (C4)
    buildVersion    1.1.0.2623-70917fa
    localSite   site2
    instanceId  7c6198d8-e608-4396-be7e-defc29abdab7
    
    Total incoming vApp replications        2
    Total incoming VM replications      3
    
    Incoming vApp replications by org
    Org Org Id  Number of Replications
    AnotherOrg  980ce8bc-afc0-402e-9bf3-f0fb51d9ed4d    1
    s2Org   4031acf0-a702-4652-8de2-fc2af2ab7e2e    1
    
    Incoming VM replications by org
    Org Org Id  Number of Replications
    AnotherOrg  980ce8bc-afc0-402e-9bf3-f0fb51d9ed4d    2
    s2Org   4031acf0-a702-4652-8de2-fc2af2ab7e2e    1
    
    Incoming vApp replications by vDC
    vDC vDC Id  Org Number of Replications
    AnotherVdc  c14e2678-28c8-47d0-bf5b-69043074533f    AnotherOrg  1
    vdc_s2Org   38338c25-eb91-4607-9328-7faf8cde69b7    s2Org   1
    
    Incoming VM replications by vDC
    vDC vDC Id  Org Number of Replications
    AnotherVdc  c14e2678-28c8-47d0-bf5b-69043074533f    AnotherOrg  2
    vdc_s2Org   38338c25-eb91-4607-9328-7faf8cde69b7    s2Org   1
    
    # End of report.
  3. (Optional) Retrieve more information about the usage-report script.
    $ usage-report --help
  4. Generate the vCloud Availability for Cloud-to-Cloud DR usage report.
    $ usage-report --output /tmp/report_summary.tsv --details /tmp/report_details.tsv

    The vCloud Availability for Cloud-to-Cloud DR usage report consists of two .tsv files. The /tmp/report_summary.tsv file contains information about the total incoming replications and information about incoming replications aggregated by Organizations and by vDC.

    The /tmp/report_details.tsv file contains information about individual incoming replications.

  5. Download the vCloud Availability for Cloud-to-Cloud DR usage report locally.
    $ scp /tmp/report_summary.tsv /tmp/report_details.tsv user@your-host:/download-target-location
  6. (Optional) Remove the generated reports from the vCloud Availability vApp Replication Service/Manager appliance.
    $ rm /tmp/report_summary.tsv /tmp/report_details.tsv

What to do next

You generated the vCloud Availability for Cloud-to-Cloud DR usage report and, for example, you can aggregate the information to report to the VMware Cloud Provider Program.