Chargeback EMCLIs
Chargeback verbs for EMCLIs can be used to quickly track chargebacks. You can use custom charge items to create separate chargeback rules from the ones defined by Enterprise Manager. We will go through some examples to illustrate the usage of chargeback EMCLIs.
Example: List the items registered to chargeback
EMCLI verb:
list_charge_item_candidates
Usage:
emcli list_charge_item_candidates -target_type="oracle_database" -source_data_type="metric"
Value of
target_type
can beoracle_database
,oracle_vm_guest
,host
,oracle_pdb
, orweblogic_j2eeserver
.
Example: Create a charge item
EMCLI verb:
create_charge_item
Usage:
emcli create_charge_item -input_file="property_file:/home/vantani/db.prop"
You need to provide a property file that contains all the necessary values for the creation of the charge item. Property file for this verb contains values in format <key>=<value>.
Example: Delete a charge item
EMCLI verb:
delete_charge_item
Usage:
emcli delete_charge_item...