2.0
Table Of Contents
- vCenter Chargeback Manager User’s Guide
- Contents
- About the User's Guide
- Introduction to vCenter Chargeback Manager
- Configuring Administration Settings
- Authenticating and Managing Users, Roles, and Permissions
- Resource Based Authorization in vCenter Chargeback Manager
- Permissions Defined in vCenter Chargeback Manager
- Managing Roles
- Managing Users
- vCenter Chargeback Manager User Authentication
- Managing Chargeback Hierarchies
- Creating a Chargeback Hierarchy
- Managing a Chargeback Hierarchy
- View a Chargeback Hierarchy
- Add a vCenter Chargeback Manager Entity
- Add a vCenter Server Entity
- Rename a Chargeback Hierarchy or a Chargeback Entity
- Delete an Entity from the Hierarchy
- Delete a Chargeback Hierarchy
- Assign Attributes
- Move Entities Within a Hierarchy
- Allocate Computing Resource Units for a Chargeback Entity
- Share Virtual Machine Cost
- Backdate a Chargeback Hierarchy
- View Properties of a vCenter Server Entity
- Managing and Configuring vCenter Chargeback Manager Cost Elements
- Generating Reports
- Monitoring System Health
- Administration Utilities
- Index
For example,
SELECT * from TABLE(CB_FN_GOS_LICENSE_PAYG('Test Hierarchy',to_timestamp('20110114 00:00:00',
'YYYYMMDD HH24:MI:SS'), to_timestamp('20110714 23:59:59', 'YYYYMMDD HH24:MI:SS')));
NOTE The CB_FN_GOS_LICENSE_PAYG function is created based on the assumption that all the virtual machines
in vCenter Chargeback Manager under the Pay as You Go model for any hierarchy organization is present
under Pay as You Go > Any_OrgVDC > vApps Folder > vApps.
Storage Allocation Script
The storage allocation script helps you identify the storage allocation details for the virtual machines that are
part of any hierarchy created in vCenter Chargeback Manager.
Running the Guest OS Licensing Script in SQL Server
You must have the SELECT permission on the tables in the vCenter Chargeback Manager database to run the
guest OS licensing script.
On running the script, two database objects are created.
n
The CB_VIEW_STORAGEALLOC_INVENTORY database view.
n
The CB_FN_STORAGE_ALLOC_PAYG function.
The CB_VIEW_STORAGEALLOC_INVENTORY view contains the storage allocation values for the virtual machines that
are part of any hierarchy created in vCenter Chargeback Manager. Table 8-3 lists the details of the columns in
the CB_VIEW_STORAGEALLOC_INVENTORY view.
Table 8-3. Column Details of the Storage Allocation Database View
Column Name Data Type Nullable Description
VM_NAME NVARCHAR2(255
CHAR)
No Name of the virtual machine.
VM_MOID NVARCHAR2(255
CHAR)
No Managed Object ID of the virtual machine.
VC_SERVER_UUI
D
NVARCHAR2(255
CHAR)
No UUID of the vCenter Server on which the virtual machine
exists.
RESOURCE_TYPE NVARCHAR2(255
CHAR)
No The type of resource. Applicable value is Storage.
RESOURCE_VAL
UE
NUMBER(19,4) No Storage allocation value in KB.
START_TIME DATETIME No The start time for the resource type.
END_TIME DATETIME Yes The end time for the resource type or the end time of the
virtual machine in the hierarchy, whichever is earlier.
After the view is created, you can run SELECT queries on the view to obtain the necessary information.
Table 8-4 shows the sample output for a SELECT query on the CB_VIEW_STORAGEALLOC_INVENTORY view.
vCenter Chargeback Manager User’s Guide
130 VMware, Inc.