get_metering_data
Gets usage details.
Format
emcli get_metering_data [-start_date=<start_date_in_mmddyyyy>] [-end_date=<end_date_in_mmddyyyy>] [-charge] [-cost_center=<cost_center_name>] [-target_type=<target_type> [-target_name=<target_name>] [ ] indicates that the parameter is optional
Options
-
start_date
Report cycle start date in mmddyyyy. If you do not specify the report cycle start date, the latest report cycle is used.
-
end_date
Report cycle end date in mmddyyyy. If you do not specify the report cycle end date, the latest report cycle is used.
-
charge
Prints charge relation information.
-
cost_center
Cost center name. If you do not specify the cost center name, the logged in user is used as the cost center name.
-
target_type
If you do not specify the target type, all targets are used. Supported target types for this release are oracle_database, oracle_vm_guest, host, and weblogic_j2eeserver. This option is not valid without the target_name parameter.
-
target_name
If you do not specify the target name, all targets of a given target type are used. this option is not valid without the target_type parameter.
Examples
Example 1
This example shows usage data for the cost center cost_center_internal_name for the report cycle with a starting date of 10012011.
emcli get_metering_data -start_date=10012011 -cost_center=cost_center_internal_name
Example 2
This example shows charge data for the my_target Oracle Guest VM target for cost center cost_center_internal_name for a report cycle with a starting date of 10012011.
emcli get_metering_data -start_date=10012011 -cost_center=cost_center_internal_name -target_type=oracle_vm_guest -target_name=my_target -charge