on 20-Oct-202003:18 - edited on 02-Jun-202308:33 by Marco_dS
Problem this snippet solves:
You are using BIG-IQ Centralized Manager or BIG-IQ License Manager to manage your ELA licenses.
The Chargeback Tag is visible on the customer usage reports, and can be useful if you bill across multiple departments within the account.
When you first provision a license to a BIG-IP, you have the option to add a free text entry into a field call "Chargeback Tag". However, if you missed this or want to change this tag at a later time, it is currently not possible to add or edit the entry via the BIG-IQ GUI.
How to use this snippet:
You will need to copy the bash code below and then create a simple CSV file including details of the BIG-IP’s IP Address or MachineID and corresponding Chargeback Tag text you want to create or edit into the /shared directory of BIG-IQ.
You will then run the script, which will confirm "Updating" followed by each IP address or MachineID and corresponding Chargeback Tag text.
The Chargeback Tag can be seen in the BIG-IQ GUI: Devices >> License Management >> Licenses >> select ELA name >> Select Offering Name of the license type.
The Chargeback Tag can also be seen in the reports created and shared each quarter by the Customer Success team.
In the /shared directory of BIG-IQ, create a CSV file named update.csv and enter the value pair on a line for each BIG-IP device tag to chage using the format:
<BIG-IP IP address1>,<new tag text>
<BIG-IP IP address2>,<new tag text>
<BIG-IP MachineID 1>,<new tag text>
<BIG-IP MachineID 2>,<new tag text>
10.11.10.43,new tag value
10.23.12.100, new tag value
xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,new tag value
yyyyyyy-yyyy-yyy-yyy-yyyyyyyyyyyyy,new tag value
Save the file.
Please note that no inverted commas are needed, and spaces are accepted within the Chargeback Tag value
Create a file named update.sh in the same directory using your favourite editor, copy and paste the provided code below and make this file executable with:
chmod u+x update.sh
Run the script by entering
If everything runs correctly, the output showing:
Updating <ip address> to 'new tag'
Updating <MachineId> to 'new tag'
will be shown for each entry within the update.csv file