2.0

Table Of Contents
3 Press the Y key to confirm the information provided.
The IP address for vCenter Chargeback Manager is modified in the database and relevant configuration files.
Statistics Collection Scripts
vCenter Chargeback Manager provides few SQL scripts that help you collect different resource usage and
allocation statistics.
vCenter Chargeback Manager provides the following SQL scripts:
n
Guest OS licensing script
n
Storage allocation script
n
Performance statistics script
These SQL scripts can be run from the SQL prompt by any database user having the required permissions.
These scripts are packaged with the application and are located in the following folders:
n
For SQL Server
Installation_Directory
\Database Scripts\main\
version
\mssql\gos-license-accounting
The script names are of the form
script_name_mssql
.sql.
n
For Oracle
Installation_Directory
\Database Scripts\main\
version
\oracle\gos-license-accounting
The script names are of the form
script_name_oracle
.sql.
Installtion_Directory refers to the complete path of the folder in which vCenter Chargeback Manager is installed.
version refers to a folder that has version number as the folder name. For example, v2.0.
Guest OS Licensing Script
The guest OS licensing script helps you identify the operating system running on a virtual machine and the
corresponding memory and vCPU details for that virtual machine. The script considers only 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_GOS_LICENSE_INVENTORY database view.
n
The CB_FN_GOS_LICENSE_PAYG function.
The CB_VIEW_GOS_LICENSE_INVENTORY view contains the guest OS details and the corresponding memory,
vCPU, and power state details for all the virtual machines that are part of any hierarchy created in vCenter
Chargeback Manager. Table 8-1 lists the details of the columns in the CB_VIEW_GOS_LICENSE_INVENTORY view.
Table 8-1. Column Details of the GOS Licensing 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.
Chapter 8 Administration Utilities
VMware, Inc. 127