Technical Articles
F5 SMEs share good practice.
Showing results for 
Search instead for 
Did you mean: 
Legacy Employee
Legacy Employee

This script generate the utility billing report based of a list of regKey. This script only applies to utility-type licenses used for F5's subscription and/or ELA programs.

The regkey listed in the csv file or in the command line are the registration key associated with the license pool you wish to report on. Reports can be automatically submitted to F5 or manually created.

/!\ This feature will be included with BIG-IQ 6.1 /!\

  1.  Automatic report submission requires BIG-IQ to access

BIG-IQ makes a REST call over SSL to to upload the report.

  1. Manual report submission is used in cases where BIG-IQ cannot reach

In this workflow, the customer generates the report, extracts it, then emails it to F5 (/shared/scripts/F5_Billing_License_Report.<date>.json).

Make sure you can access port 443 if automatic reporting is chosen (nslookup, ping, telnet 443). The script has to be executed locally from the BIG-IQ.

The script must be installed in BIG-IQ under /shared/scripts:

# mkdir /shared/scripts
# chmod +x /shared/scripts/

Allowed command line options:
        -h      Help
        -c      Path to CSV file with all regKey - REQUIRED if not using -k
        -k      regKey(s) separated by , - REQUIRED if not using -c
        -r      Report option automatic or manual - OPTIONAL (default is automatic)

  • Command example automatic report:

# cd /shared/scripts

  • CSV file example manual report:

# ./ -c listregkey.csv -r manual
# cat listregkey.csv


  • Cron table example (every 1st of the month at 10am) for both above examples:

# crontab -e
(edit: type 'o' to add a new line, then 'ESC' and ':x' to save and quit)
# crontab -l
0 10 1 * * /usr/bin/perl /shared/scripts/ -k DRLPZ-JISKU-VPUPT-HZMMV-LERVPYQ
0 10 1 * * /usr/bin/perl /shared/scripts/ -c /shared/script/listregkey.csv -r manual

┌───────────── minute (0 - 59)
│ ┌───────────── hour (0 - 23)
│ │ ┌───────────── day of month (1 - 31)
│ │ │ ┌───────────── month (1 - 12)
│ │ │ │ ┌───────────── day of week (0 - 6) (Sunday to Saturday;
│ │ │ │ │                                       7 is also Sunday on some systems)
│ │ │ │ │
│ │ │ │ │
* * * * *

In case you need to obfuscate the Utility Billing Report before sending it, use manual export, then use the following script to mask IP/Mac addresses and Hostnames from the report. Then submit/email report to F5 (Please contact F5 Support for assistance).

# ./ F5_Billing_License_Report.<date>.json

Location of the scripts on GitHub:

Version history
Last update:
‎05-Jun-2023 22:03
Updated by: