Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Version

Module

Description

6.0.1

Both

This tool is now available as part of the Abiquo platform

6.0.2

AWS

Allow billing check tool to check keynode enterprises too in AWS.
New AWS option: -r, --rootEnterpriseId to specify reseller or keynode for pricing credentials. This replaces the previous reseller option

6.0.2

AWS

Billing check tool does not take into account an AWS SPP discount.
New AWS option: -spp, --sppDiscount to include the solution provider program discount.

6.0.2

Both

The seed parameter was removed

Install the tool

You can run this tool on the Abiquo Server.

...

Code Block
languagenone
java -jar public-cloud-billing-check-tool.jar aws -h
Usage: <main class> aws [-abhvV] [-spp] [-cfp=<configYAMLPath>] [-d=<resellerDiscount>] [-m=<margin>] [-mt=<month>] -r=<rootEnterpriseId> [-y=<year>]
Check for AWS organization billing costs and account mappings.

-a, --accounts             Run the check for accounts inside an organization mapped to abiquo
-b, --billing              Run check for billing information in Abiquo for the last consolidated billing period
-cfp, --configPath=<configYAMLPath>
                           Specify a different path for the config file. Default path is the same where .jar is located
-d, --discount=<resellerDiscount>
                           Define the discount necessary to subtract to total cost
-h, --help                 Show this help message and exit.
-m, --margin=<margin>      Desired margin to compare cost from AWS and Abiquo database. If difference is bigger than margin, it will be considered
                              as an error. Default is 0
-mt, --month=<month>       Month of the billing period to check. Default is previous month
-r, --rootEnterpriseId=<rootEnterpriseId>
                           Enterprise id of the reseller or key node from which obtain the pricing credentials
-spp, --sppDiscount        If true, include solution provider program discounts in the price
-v, --verbose              Display more detailed information about the process execution
-V, --version              Print version information and exit.
-y, --year=<year>          Year of the billing period to check. Default is the year of the previous month

...

Here is an example of the help parameters output. The "-r" parameter is mandatory.

Code Block
java -azp (--azureplan)      : Run the check for Azure Plan subscriptions in Abiquojar public-cloud-billing-check-tool.jar azure -h
Usage: <main class> azure [-bhvV] [-azp] [-c=<currencyCode>] [-cfp=<configYAMLPath>] [-d=<resellerDiscount>] [-m=<margin>] [-mt=<month>]
                          -r=<resellerId> [-y=<year>] [-ep=<excludedPublishers>[,<excludedPublishers>...]]...
Check withfor theAzure CSP data customer costs and subscription mappings.
 -b (--billing)    -azp, --azureplan     : Run the check for Azure billingPlan informationsubscriptions in Abiquo forwith the CSP data
  -b, --billing              Run check for billing information in Abiquo for the last consolidated billing period
  -cfpc, (--configPath) VAL : Specify a different path for the config file.currencyCode=<currencyCode>
                             Currency code used to retrieve billing line items, Default code is USD
The default path is the same as where the .jar is located
 -d (--discount)-cfp, --configPath=<configYAMLPath>
                   : Define the discount to subtract from total cost  -ep, --excludedPublishers=<excludedPublishers>[,<excludedPublishers>...]
 -s (--seed)             : Path to seed file used to decrypt access and key tokensSpecify a different path for the config file. Default path is the same where .jar is located
  -d, --discount=<resellerDiscount>
                             Define the discount necessary to substract to total fromcost
database  -rep, (--reseller)excludedPublishers=<excludedPublishers>[,<excludedPublishers>...]

  -h, --help    : Enterprise ID of the reseller from which obtain the    Show this help message and exit.
  -m, --margin=<margin>      Desired margin to compare cost from CSP and  pricing credentials
 -m (--margin) N         : Desired margin to compare cost from CSP and AbiquoAbiquo database. If difference is bigger than margin, it will be considered
                               as an error. Default is 0
 database. If the difference is bigger than margin, it
              -mt, --month=<month>       Month of the billing period to check. Default is previous month
  -r, --reseller=<resellerId>
            will be considered an error. Default is 0  -oe (--onlyErrors)      : ConfigureEnterprise scriptid toof onlythe promptreseller errorsfrom orwhich warningsobtain the pricing credentials
  -v, --verbose              Display more detailed information about the process inexecution
logs  -vV, (--verbose)version             : Print more detailedversion information aboutand theexit.
process  -y, --year=<year>          Year of the billing period to check. Default is the year of the previous  executionmonth

Here is an example of running the tool on Azure using parameters:

Code Block
java -jar public-cloud-billing-check-tool.jar azure -azp -b -cfp "/path/to/config.yml" -s "/path/to/seed/.store" -m 2 -v -r 10

And another example:

...