Professional Documents
Culture Documents
EN-000529-00
You can find the most up-to-date technical documentation on the VMware Web site at:
http://www.vmware.com/support/
The VMware Web site also provides the latest product updates.
If you have comments about this documentation, submit your feedback to:
docfeedback@vmware.com
Copyright 2014 VMware, Inc. All rights reserved. Copyright and trademark information.
VMware, Inc.
3401 Hillview Ave.
Palo Alto, CA 94304
www.vmware.com
VMware, Inc.
Contents
1 Introduction 7
2 Manage 11
Provider tab 11
Email tab 12
Products tab 12
Collections tab 18
API tab 18
LDAP tab 18
3 Licenses 21
4 Automatic Reporting 23
5 Monitor 25
6 Customers 27
7 Rules 31
Add a Rule 31
Change Rule Details 32
Delete a Rule 32
About Object and Value Types
8 Reports 35
VMware, Inc.
33
35
36
9 Support 41
10 Advanced Management 45
11 Installation 51
System Requirements 51
TCP Port Configuration 52
Install with vSphere Client 53
Configure IP Pool 53
Change Time Zone 54
Configure Web Application Password
Upgrades 55
Index
54
59
VMware, Inc.
The VMware vCloud Usage Meter User's Guide provides information to install, configure, and use the vCloud
Usage Meter.
Intended Audience
The VMware vCloud Usage Meter User's Guide is intended for service provider administrators with access
privileges to manage the VMware vCloud Usage Meter. These individuals must be familiar with data center
operations.
VMware, Inc.
VMware, Inc.
Introduction
vCloud Usage Meter collects raw product consumption data on Service Provider products that are part of
VMware Service Provider Program bundles.
Service providers can generate reports to use the reported data for their VMware Service Provider Program
aggregator, as well as diagnostic purposes.
For information about the VMware Service Provider Program, see
http://www.vmware.com/partners/partners.html.
Figure 11. Service Provider Workflow
VMware.com
download site
Download vCloud
Usage Meter OVA file
Install
VMware
vSphere
Client
Service provider
user
Set up
- service provider details
- email alerts
- vCenter information
- other product information
Service
provider
user
Service Provider
User Interface
Service
provider
user
Automatically send
product consumption
data in email if
desired
VMware, Inc.
Description
Web application
REST API
VMware vSphere host includes DNS name, RAM (physical memory), and license type.
Virtual machine includes the VMware vCenter name, hostname, allocated and billing vRAM (virtual
memory), CPU, instance universal unique identifier (UUID), and location in the vSphere inventory.
Products include billing vRAM, storage, and other metrics specific to the product.
Collected data is stored in the VMware vFabric Postgres database of the virtual appliance.
About Reports
Various reports help monitor and track specific resource consumption. Reports can be generated on demand
and managed with several output options:
n
Browse
Zip
Other reports can be automatically generated and emailed to specific recipients. Service providers with
multiple aggregators can set up automatic reports to each aggregator, specific to their requirements.
VMware, Inc.
Chapter 1 Introduction
VMware, Inc.
10
VMware, Inc.
Manage
Configure vCloud Usage Meter to set up how information about product consumption is received. This
includes email alerts, access to vCloud Usage Meter, and collection times that do not conflict with server
operations.
vCloud Usage Meter configuration includes service provider information. This information is used to report
consumption data.
You can configure several settings.
n
Configure and test collection timing, to avoid conflicts with other server operations.
Provider tab
Configure Service Providor information. These details appear in reports.
Procedure
1
VMware, Inc.
Description
Company
Contact Name
Name of the person who is the single point of contact. Type the name in
Last Name, First Name format.
Phone
Phone number of the contact. Type the number in +country code phone
number format.
Partner ID
Contract Number
11
Option
Description
Site ID
(optional) Enter the SP-defined ID for the Usage Meter location. Service
Providers can create sites to report multiple locations with multiple usage
meters. This can be used to report back to an individual site for each usage
meter.
Click Save.
Email tab
Settings of the Email communications configuration. Alerts can be automatically sent for automatic monthly
billing reports. Alerts can also be sent for failed or successful collections.
Procedure
1
On the Email tab, in the Outgoing Email Server section, enter the details:
Option
Action
Host
Port
Option
Action
From Email
Type the name to appear in the From line of the email alert.
To Email
Type the email address to receive email alerts. Use commas to separate
multiple email addresses.
Alerts
Testing
Select check box to send a test email after this configuration is saved.
Click Save.
Products tab
On this tab, add selected products to be metered.
Prerequisites
Verify that you have read-only administrator privileges.
Procedure
12
VMware, Inc.
Chapter 2 Manage
The selected vCloud products are added for metering and monitoring. If an error occurs, a message appears
and the server is not added.
On the Products tab, vCenter Server area, click Add to enter details.
Host Name or IP
Use a comma to separate multiple servers. Each must use the same User Name and Password.
Password
Meter checkbox
Do not select if this is a recovery site vCenter Server instance.
Monitor checkbox
Select only for special cases, as directed by technical support.
Click Save.
If server certificates cannot be authenticated, a dialog displays. When a vCenter Site Recovery Manager
certificate fingerprint is not in the vCenter Server extension, vCloud Usage Meter presents it for
approval. First the vCenter Server certificate must be presented and accepted, which allows connecting
to the vCenter Server instance, which allows discovery of vCenter Site Recovery Manager. So in this
step you press Save, Accept and Save for the vCenter Server instance, and then Accept and Save for
vCenter Site Recovery Manager
The vCenter Server instance is added to the list of vCenter Server instances. vCloud Usage Meter performs
collections against all added vCenter Server instances and vCenter Site Recovery Manager instances in both
the protected and recovery sites.
Metered and Unmetered vCenter Server Instance Examples
VMware, Inc.
13
Figure 21. vCenter Servers Set Up For vCenter Site Recovery Manager Management
The row for server 10.24.183.124 shows a vCenter Server instance for which vCloud Usage Meter does
not perform collections. In this case this is the recovery site server for server 10.24.183.244.
The row for server 10.24.183.244 shows a vCenter Server instance for which vCloud Usage Meter
performs collections. In this case this is the protected site server. Its recovery site server 10.24.183.124 is
listed in the Site Recovery Manager Peer column.
The row for server 10.255.79.100 shows a vCenter Server instance for which vCloud Usage Meter
performs collections. In this case this server is not protected by vCenter Site Recovery Manager. A check
in the Monitor column designates special cases for which vCloud Usage Meter performs collections
depending upon power status.
The row for server 10.24.183.124 shows a vCenter Server instance for which vCloud Usage Meter does
not perform collections. In this case this is the recovery site server for server 10.24.183.244.
The row for server 10.24.183.244 shows a vCenter Server instance for which vCloud Usage Meter
performs collections. In this case this is the protected site server. Its recovery site server 10.24.183.124 is
listed in the Site Recovery Manager Peer column.
The row for server 10.255.79.100 shows a vCenter Server instance for which vCloud Usage Meter
performs collections. In this case this server is not protected by vCenter Site Recovery Manager.
A check in the Monitor column designates special cases for which vCloud Usage Meter performs
collections depending upon power status.
14
VMware, Inc.
Chapter 2 Manage
Procedure
1
On the Products tab, Center Automation Center area, click Add to enter details.
Host Name or IP
Use a comma to separate multiple servers. Each must use the same User Name and Password.
Password
Click Save.
The vCloud Automation center server is added to the list of instances. If an error occurs, a message appears
and the server is not added.
On the Products tab, vCenter Director area, click Add to enter details.
Host Name or IP
Use a comma to separate multiple servers. Each must use the same User Name and Password.
Port
Change as needed, otherwise accept default value.
Password
The vCloud Integration Manager server is added to the list of instances. If an error occurs, a message
appears and the server is not added.
On the Products tab, vCenter Integration Manager area, click Add to enter details.
Host Name or IP
Use a comma to separate multiple servers. Each must use the same User Name and Password.
Password
Click Save.
VMware, Inc.
15
The vCloud Integration Manager server is added to the list of vCloud Integration Manager instances. If an
error occurs, a message appears and the server is not added.
On the Products tab, Horizon Data area, click Add to enter details.
Unique ID or Name
Host Name or IP
Use a comma to separate multiple servers. Each must use the same User Name and Password.
User Name
Password
Click Get host key and compare the host key fingerprint shown to the copy.
Click Save.
The Horizon Data server is added to the list of instances. If an error occurs, a message appears and the
server is not added.
16
Click Save.
VMware, Inc.
Chapter 2 Manage
On the Products tab - to delete a server, in the appropriate product area, select the server, click Delete.
It is moved to the inactive listing for that product. If any data was collected prior to the deletion,
vCloud Usage Meter designates the server as inactive and data that was collected before removal
remains in the database. If a server was added to but no collections were made, nothing is saved in the
database and the server cannot be activated.
To reactivate a server, in the appropriate product area, select the Show Inactive checkbox. Select the
inactive server and click Activate.
It is moved to the active list.
VMware, Inc.
17
|
. . .|
|
.. .|
|
....|
+-----------------+
What to do next
Add the product on the Manage page, Products tab.
Collections tab
vCloud Usage Meter collects consumption data from vCenter Server instances and other products. Default
is one the hour collection. If this competes with other scripts, the start time can be adjusted.
Procedure
1
On the Collections tab, on the Start at minute drop-down, select when the data collection begins.
What to do next
Monitor your collections. See Chapter 5, Monitor, on page 25.
API tab
This procedure adds/revokes Access Tokens.
Prerequisites
Super-user access.
Procedure
1
Admin and User Tokens are added or revoked according to the user action.
LDAP tab
vCloud Usage Meter can authenticate users against an LDAP service.
Prerequisites
18
Verify that the LDAP server is supported by vCloud Usage Meter. See System Requirements, on
page 51.
Verify a base distinguished name of the LDAP hierarchy to allow log in to vCloud Usage Meter. Use a
specific Base DN that only contains your intended user group.
Verify a user name and password for a user account within the LDAP hierarchy user group to allow og
in to vCloud Usage Meter.
VMware, Inc.
Chapter 2 Manage
Verify a valid SSL certificate if using SSL security. See Generate SSL Certificate for vCloud Usage
Meter, on page 48.
Procedure
1
Host
Option
Description
Hostname
Domain Name
IP Address
Port
389 is the default port for LDAP.
Username DN
(60 characters) This is the user account that will connect to LDAP for the purposes of locating the
account of someone logging in to vCloud Usage Meter.
Password
Password of the user account that connects to LDAP to locate the account of log in o
vCloud Usage Meter.
LDAP Schema
a
User Base DN
(60 characters) Base distinguished name of LDAP hierarchy group that allows log in to
vCloud Usage Meter. Use a specific user base DN that contains only your intended user group.
Click Save.
What to do next
To test your LDAP login.
1
To verify and confirm the certificate fingerprint, log out of vCloud Usage Meter.
Log in with the user name and password of a user in the intended user group.
VMware, Inc.
19
20
VMware, Inc.
Licenses
The VMware Service Provider Program provides licenses to use service provider bundles. With billing
groups, vCloud Usage Meter you can designate some licenses as nonbillable and can group licenses in sets.
Super User admin credentials are required to manage licenses. Users can:
n
vCloud Usage Meter Reports include licenses that are identified and updated through queries to the
vCenter Server instances in your inventory. If a license key is no longer present, the license is removed from
the licenses that can be managed.
vSphere license keys that service providers deploy might have different billing characteristics, so you can
indicate which license keys are billable by defining the billing category. You can assign one of the following
categories.
VSPP
License key obtained through the VMware Service Provider Program. All
virtual machines running on hosts with these keys are considered to be
billable.
Demo
License key that is not billable, such as for a system used for demonstration.
With license sets, you can group one or more vSphere license keys and associate virtual machine vRAM
consumption with those groups.
This chapter includes the following topics:
n
VMware, Inc.
21
Click New.
Click Save.
Click Save.
To delete an entire License Set, select the name. To delete a single (or several) licenses within a LIcense
Set, click the License Set name and select the license(s) to be deleted.
Click Delete.
The License Set or individual license(s) is removed.
22
VMware, Inc.
Automatic Reporting
You can configure vCloud Usage Meter to create automatically generated sets of reports and email them to
an aggregator, or elsewhere. If you report to multiple aggregators, you can configure a report set for each
one.
A single name can contain one or more reports.
n
VMware, Inc.
23
Action
From Email
To Email
Enter email address to receive the Automatic Report Set. Separate multiple
email addresses with a semicolon ( ; ).
Click Save.
The name of the new reporting set appears in the left-hand panel list.
In the left-hand pane, Name drop-down, select the reporting set to edit.
The last time sent for the selection in at the bottom of the right-hand pane.
Description
Name
Type the name of the reporting set. If existing name is changed, it is saved
as a new set.
Reporting Day
Reports to Include
License Set
From Email
Type the name to appear in the From line of the reporting set.
To Email
Enter email address to receive the Automatic Report Set. Separate multiple
email addresses with a semicolon ( ; ).
Click Save.
What to do next
Old reporting sets can be deleted. See Delete Automatic Report Set, on page 24.
In the left-side pane, Name drop-down, select the reporting set to remove.
Click Delete.
There is no confirmation of the deletion.
24
VMware, Inc.
Monitor
You can view times of successful or failed collections for vCenter Server instances and other products
associated with vCloud Usage Meter, to monitor the incidence of failed collections.
Procedure
1
Click Submit.
What to do next
To minimize failed collections you can change collection times or memory settings.
n
If your collection start time is competing with other scripts that are working with your vCenter Server
instances, you can change the start time. See Collections tab, on page 18.
VMware, Inc.
25
26
VMware, Inc.
Customers
Product consumption is metered on the entire vCenter Server inventory. Customers and rules provide
detailed control to organize consumption reporting. Customers and rules work together.
Customers can be added individually or imported to vCloud Usage Meter. The import and export process
ensures the same customer list is used on multiple vCloud Usage Meter virtual appliance installations. This
is useful when customer consumption is shared among multiple vCenter Server instances or products.
On the Customers page, a Rule can be added to an individual customer. To do this, select the customer, and
click Rules button. This opens the Rules UI.
.
This chapter includes the following topics:
n
Add a Customer
Product consumption is recorded by customer. This procedure adds one or multiple customers to
vCloud Usage Meter.
Procedure
1
VMware, Inc.
27
Name
(60 characters) Name of customer
Country
Select from drop-down list.
Postal Code
(associated with selected Country)
Click Save.
What to do next
Add more customes as needed.
For more information, see Import Customers and Rules, on page 28.
Click Edit.
Click Save.
Delete a Customer
You can remove one or more customers from the metering scope of vCloud Usage Meter.
Procedure
1
The selected customer(s) is removed from the list of customers. Data that was collected before removal
remains in the database.
28
VMware, Inc.
Chapter 6 Customers
Prerequisites
n
Prepared a tab-separated file. See Export Customers and Rules, on page 30. If transferring customer
and rule data from one vCloud Usage Meter virtual appliance to another, obtain a tab-separated file by
export.
Procedure
1
Click Import.
If the import fails, an error message appears that indicates the type of error and the line number
producing the error.
Column A
Column B
Column C
Column D
Column E
# vCloud Usage
Meter Customer
Export
# Version: 1
# Customers
# Name
Country
Postal Code
NewCo
AF
44
YourCo
US
94555
TheCo
ThisCo
US
95555
# Rules
10
# Example rule:
Exact string
folder match for
abc for customer
CloudCo
11
# CloudCo
Folder
Exact String
abc
12
# Customer
vCenter
Object Type
Value Type
Value
13
NewCo
10.255.79.10
VM
Unique ID
vm-100
14
NewCo
10.255.79.10
Host
Unique ID
host-77
15
NewCo
VM DNS name
Exact string
ad
16
NewCo
10.255.79.10
vApp
Unique ID
resgroup-v99
17
NewCo
10.255.79.10
VM
Unique ID
vm-103
VMware, Inc.
29
Table 61. Tab-Separated File Format for Importing Customers and Rules (Continued)
Row
Column A
Column B
Column C
Column D
Column E
18
NewCo
10.255.79.10
vApp
Unique ID
resgroup-v91
19
TheCo
192.168.128.1
Data Center
Unique ID
datacenter-2
30
Use the file to import data to another vCloud Usage Meter virtual appliance. See Import Customers
and Rules, on page 28.
VMware, Inc.
Rules
Customers that require confidentiality can be still be represented and metered in vCloud Usage Meter. If
confidentiality is needed, you designate that customer as restricted, and work with your VMware Service
Provider Program coordinator to set up a code, so confidential names and locations are never visible.
User with Super User privileges can:
n
Add a Rule
Delete a Rule
Add a Rule
Rules can be added to collect product consumption data about your customers for the VMware Service
Provider Program.
Prerequisites
Review vSphere inventory for object types that correspond to your customers. See About Object and Value
Types, on page 33.
Review status of virtual machines. Virtual machines that have been deleted from a vCenter Server inventory
but that remain in the vCloud Usage Meter database are shown as dimmed out. A rule assignment remains
valid for reporting and billing purposes, whether the virtual machine is active or not.
Procedure
1
You can select in three different ways;Select from the vSphere Inventory or To select Object Type dropdown
Select from the list.
VMware, Inc.
31
In the Object Type drop-down list, select an item. Remaining fields (Value Type, vCenter and
Value) are populated as selections are made.
Use Filter to reduce the list size, and then select an item.
Click Create.
What to do next
Confirm that the replacement Rule details are accurate.
Delete a Rule
You can remove rules based on relationships between a vSphere inventory object and a customer. When a
rule is deleted, only the relationship between the vSphere inventory object and the customer is removed. All
product consumption data is maintained.
Procedure
32
Click Rules in the top right menu bar of the Web application.
VMware, Inc.
Chapter 7 Rules
(Optional) Select a customer by typing part of the customer name and then locating it in the list that
appears.
vCloud Usage Meter populates a list of customer names that match the characters you typed.
(Optional) Show Rules for All Customers check box shows all rules for all customers.
Definition
VM
Virtual machine. A software-based computer that, like a physical computer, runs an operating
system and applications. Virtual machines that have been deleted from a vCenter Server
inventory but that remain in the vCloud Usage Meter database are shown as dimmed out.
VM vCenter Server
Name
A vCenter Server name in your inventory. Differs from the object type vCenter Server in that
rules based on this object are based on string, substring, or regular expression.
VM DNS Name
IPv4 address
Folder
Grouped objects of the same type. For example, folders help set permissions across objects, to
set alarms across objects, and to organize objects in a meaningful way.
Resource Pool
vApp
A format that packages and manages applications containing multiple virtual machines.
Host
Cluster
Datacenter
A required structure in vCenter Server under which hosts and their associated virtual
machines are added.
vCenter Server
A vCenter Server as identified by a unique ID. Differs from the object type VM vCenter Server
Name in that rules based on this object are specific to the unique ID only.
VMware, Inc.
33
34
Object Type
Value Types
Unique ID
Yes
VM
vCenter
ServerName or
VM DNS Name
Exact string
No
Substring
No
Regular expression
No
IP V4 address
IP V4 CIDR notation
No
Folder, resource
pool, or vApp
Unique ID
Yes
Exact string
No
Substring
No
Regular expression
No
VMware, Inc.
Reports
These product consumption reports monitor and track resource consumption by customer or by vSphere
inventory object. Any and all reports can be manually generated at any time. Report results can be exported
as a tab-separated file or ZIP file (when large numbers of records are returned).
Report Types
vCloud Usage Meter provides a choice of reports. See About Product Consumption Reports, on page 36.
Browse a report in the user interface or save it to a file. See Generate a Product Consumption Report,
on page 38.
Create automatic reporting sets. See Create Automatic Report Set, on page 23.
VMware, Inc.
35
Description
VSPP
License key obtained through the VMware Service Provider Program. All
virtual machines running on hosts with these keys are considered to be
billable.
Demo
License keys that are not billable that can be used for environments such as
demonstration systems.
Perpetual
Monthly Usage
The monthly usage report provides information such as the product being monitored, the unit type being
metered, and the associated consumption, including usage information by VSPP bundles.
Table 81. Monthly Usage Report Details
Report Column
Description
Product
Unit of Measure
Units to be Reported
Bundle
The bundle report provides further information than the monthly usage report, related to bundle
consumption.
Table 82. Bundle Report Details
Report Column
Description
Hours
Average
Customer Summary
The customer summary report summarizes customer activity.
Table 83. Customer Summary Report Details
36
Report Column
Description
Customer
Country
Customers country
VMware, Inc.
Chapter 8 Reports
Description
Postal
License Type
Category
Billable
Detailed Billing
The detailed billing report is a generic report that provides billing information for all types of vSphere
licenses. This report is also used for sending product consumption details to the aggregator assigned to the
service provider. Virtual machine use reported is based on which vSphere license keys are selected as
VMware Service Provider Program keys.
Table 84. Detailed Billing Report Details
Report Column
Description
Time
vSphere License
VM RAM (MB)
VM CPUs
VM Instance UUID
Detailed Usage
The detailed usage report provides all product consumption-related information.
Table 85. Detailed Usage Report Details
Report Column
Description
Time
Customer
vSphere License
VM VC Name
VMware, Inc.
37
Description
VM Hostname
VM RAM (MB)
VM CPUs
VM Instance UUID
License Summary
The license summary report summarizes license type activity.
Table 86. Customer Summary Report Details
Report Column
Description
Billable
Category
License Type
Customer Product
The customer product report is included in monthly reporting if vCenter Site Recovery Manager is used to
protect the customer's virtual machines. Customers appear in the report if the vCenter Server folder and
resource pool associated with a protection group are also mapped to the customer as part of the customer's
rule definitions.
NOTE The reporting by vCloud Usage Meter on vCenter Site Recovery Manager should be used for
reporting of normal operations only. Manual corrections may be needed when recovery plans have been
run.
Table 87. Customer Product Report Details
Report Column
Description
Customer
Product
Product metered
Object
38
VMware, Inc.
Chapter 8 Reports
Procedure
1
Browse - view report in web browser. There is a 6000 limit on the total rows.
n
Go
to: /usr/local/tcserver/vfabric-tc-server-standard/um/webapps/um/WEBINF/classes/props/default.props
vCloud Usage Meter generates the report. vCloud Usage Meter retains the report in your browser's cache
until another report is generated or you log out from the virtual appliance.
VMware, Inc.
39
40
VMware, Inc.
Support
Runtime Information
Background Activity
Database
Logging Level
Support Bundle
VMware, Inc.
41
Description
Runtime Information
Background Activity
Description
What to do next
n
If desired, back up the database. See Back Up the Database, on page 46.
If desired, delete old data. See Delete Older Data from the Database, on page 42.
Enter CONFIRM.
Click Delete.
42
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
VMware, Inc.
Chapter 9 Support
Procedure
1
Type /var/log/usgmtr/*.
Review log rolling capacity. See Change Log History Capacity, on page 43.
Description
Trace
Debug
Info
Warn
Error
Fatal
What to do next
After review of logging activity, consider setting the level for minimum effect on log rolling capacity. See
Change Log History Capacity, on page 43.
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
Procedure
1
VMware, Inc.
43
Enter /usr/local/tcserver/vfabric-tc-server-standard/um/webapps/um/WEBINF/classes/log4j.properties
Description
log4j.appender.roll.MaxFileSize
=10MB
log4j.appender.roll.MaxBackupIn
dex=10
What to do next
Review log history. Adjust the log rolling capacity to conserve resources.
44
In the Support Bundle area, click Delete support bundles to delete existing support bundle collections
of log files.
VMware, Inc.
Advanced Management
10
You can change default settings and perform other advanced management of vCloud Usage Meter. The
procedures are available either in the vCloud Usage Meter Web application or through the console.
This chapter includes the following topics:
n
VMware, Inc.
45
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
Procedure
1
The ESXi host instance is added to the list of vCenter Server instances. If an error occurs, a message appears
and the host instance is not added.
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
IMPORTANT All collected product consumption data is maintained in the virtual appliance database. To
maintain history, do not delete thevCloud Usage Meter virtual appliance.
Procedure
1
Earlier than 3.1 - Enter cd /tmp, then sudo -u postgres pg_dump usage_meter_db | gzip
>umdump.sql.gz
46
VMware, Inc.
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
Procedure
1
[identify the file name, then show the line] Change the 1 to a 5 in the collection parameter value.
/usr/local/tcserver/vfabric-tc-server-standard/um/webapps/um/WEBINF/classes/props/default.props
maxConcurrentCollections=1
VMware, Inc.
47
What to do next
Monitor your collection speed. See Chapter 5, Monitor, on page 25.
Verify that you have access to the location of the vCloud Usage Meter console.
Verify that you have a password to log in to the vCloud Usage Meter console as root.
Procedure
1
Option
Description
Enter which keytool. The system confirms the path. A typical response
is /usr/java/latest/bin/keytool.
Change directories.
Enter cd /home/usgmtr/.
Enter keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore .keystore and follow
the prompts to create a new keystore file.
Follow the prompts. The first is for domain first and last name (your domain name and extension). If
ordering a wildcard certificate, begin phrase with *, for example: *.example.com. Make a note of the
keystore password.
Enter keytool -certreq -alias tomcat -keyalg RSA -file example.com.csr -keystore .keystore,
where example.com is domain name and extension, and enter the keystore password when prompted.
This action creates a certificate signing request file with the extension csr.
Enter
keytool -import -trustcacerts -alias tomcat -file certificate-from-ca.pem -keystore .keystore
10
48
VMware, Inc.
What to do next
To confirm that the SSL certificate is valid, open the URL for the vCloud Usage Meter Web application in a
browser.
Enter cd /usr/local/tcserver/vfabric-tc-server-standard/um/conf/.
For the provided admin user, replace <password> with your desired password.
Connect with the Java Management Extensions Client to Use the JMX Service
Connect with your JMX client to use the JMX service. With JMX service you gain access to internal data such
as database size, customer count, customer rules count, and other information.
Prerequisites
Verify that you have enabled Java Management Extensions for vCloud Usage Meter. See Enable Java
Management Extensions, on page 49.
Procedure
1
VMware, Inc.
49
50
VMware, Inc.
Installation
11
vCloud Usage Meter is a virtual appliance installed with vSphere Client. Installation includes entering
connection and configuration details.
Data collection speed is affected by the size of your data set and vCenter Server inventories. Write down
details on system requirements and metering capacities.
For large data sets and vCenter Server inventories, you should consider the installation of more than one
vCloud Usage Meter virtual appliances. Reported data can be consolidated from multiple virtual appliances
in monthly reports to individual VMware Service Provider Program aggregators.
For upgrades from previous versions, use the correct procedure.
This chapter includes the following topics:
n
Upgrades, on page 55
System Requirements
Before installation, verify that your system meets the minimum requirements. Usage Meter is deployed on a
vCenter Server. Deployment on an ESXi host is possible with a vCenter Server license.
Web Browsers
The vCloud Usage Meter Web application is compatible with:
n
Metered Capacities
The following metering of capacities is supported:
n
VMware, Inc.
51
1,000 customers
vCloud Service Provider bundle editions: Standard, Premier and Premier Plus
NOTE For higher capacities, parallel collections should be enabled. See Increase Collection Speed with
Parallel Collections, on page 47.
Hardware Requirements
This is the minimum recommended hardware:
n
Software Requirements
vCenter Server
vSphere Client
SSH client
LDAP Requirements
These LDAP servers are supported:
n
OpenLDAP
52
Port
Source
Target
Purpose
22
Executes reporting
commands
443
vCenter Server
8443
Client browser
9003
9007
SRM Server
VMware, Inc.
Chapter 11 Installation
Download and save the vCloud Usage Meter OVA installation file from
http://www.vmware.com/download/download.do?downloadGroup=UMSV32.
Procedure
1
On the Deploy OVF Template dialog, specify the location of the saved OVA file.
10
11
12
13
On the Ready to Complete dialog, confirm the information and click Finish.
The installer starts the deployment process.
What to do next
If the IP allocation policy was set to Fixed, configure an IP pool for vCloud Usage Meter. See Configure IP
Pool, on page 53.
Set the vCloud Usage Meter appliance vRAM as needed. Most service providers can use the 2048MB
default. Monitor memory usage on the Support page and adjust as needed.
Configure IP Pool
When vCloud Usage Meter is installed with a fixed IP policy, create an associated IP pool.
Because the OVF template uses network properties, vCloud Usage Meter might not work correctly unless
assigned networks have an associated IP pool. If not, the vCloud Usage Meter virtual machine does not
power on and users get a message that there is no associated network protocol profile.
Prerequisites
n
VMware, Inc.
Verify vSphere Client is installed and you have read-only administrator privileges.
53
Verify vCloud Usage Meter is installed and you can navigate to the data center. See Install with
vSphere Client, on page 53.
Procedure
1
In the vSphere Client, Inventory tree, click the data center that contains the vCloud Usage Meter virtual
machine.
On the IP Pools tab, click Add. On the dialong, enter IP pool details.
Name
DNS domain
Seach Path
Click OK.
In vSphere Client, open the virtual console and select Set Timezone.
Press Enter.
54
VMware, Inc.
Chapter 11 Installation
Procedure
1
Press Enter.
Type root and the password that was configured at installation and press Enter.
To create your Web application password, at the prompt, type webpass and press Enter.
What to do next
n
Note the URL for accessing the vCloud Usage Meter Web application that appears in the console.
Upgrades
There are three ways to migrate vCloud Usage Meter from an older version to the latest version (3.3). For
Apply a One path 3.2 to version 3.3.provides a newer, more secure virtual appliance, based on SUSE Linux
Enterprise Server 11 Service Pack 2. You do not upgrade an earlier appliance. Instead, you can migrate data
to vCloud Usage Meter 3.2 from older versions 2.3.2 through 3.1
n
Back up or snapshot the vCloud Usage Meter virtual appliance that you are migrating from, in case an
unexpected error occurs during the migrate process.
Verify that you are migrating from vCloud Usage Meter 2.3.2 or later. This procedure does not work for
versions earlier than 2.3.2.
Verify that you have the TCP hostname or IP address of the older vCloud Usage Meter virtual
appliance, and its root and Web application passwords.
Verify vCloud Usage Meter 3.3 has been properly installed and you have the root password.
VMware, Inc.
55
Procedure
1
In vSphere Client, open the older vCloud Usage Meter appliance virtual console and log in as the
root user.
If the root password is still set to the default password vmware for the older vCloud Usage Meter
appliance, change it from the default.
c
2
Option
Description
Enter passwd
On the older vCloud Usage Meter virtual appliance, enter service sshd start to turn on sshd.
In vSphere Client, open the 3.3 GA appliance virtual console and log in as the root user.
Type importum hostname version, where hostname is the TCP hostname or IP address of the older
vCloud Usage Meter virtual appliance, and the version is 232, 300, 302, or 310.
The command uses ssh and scp to export the database from the old system, and copies it and a
keystore file to 3.3 GA. There are two prompts for the root password of the older system, once by
ssh and once by scp. Ignor log file messages: ERROR: must be owner of extension plpgsql or
WARNING: no privileges could be revoked for "public" .
On older vCloud Usage Meter virtual appliance console, enter service sshd stop to turn off sshd.
Log in to the 3.3 GA Web application to review and accept the security information for all products.
Option
Description
Click Edit, then Save. for each product server Note that there is no need to
retype credentials. This action displays the server's security information.
The data of the older vCloud Usage Meter virtual appliance is migrated to the 3.3 GA virtual appliance. Run
this in parallel with the old system while you verify that it is working correctly. The migration steps more
than once.
What to do next
Manage collection speed, if needed. Any changes made to web.xml on the old system are not preserved. See
Increase Collection Speed with Parallel Collections, on page 47.
If desired, change the Web application password of the 3.3 GA virtual appliance. See Configure Web
Application Password, on page 54.
56
VMware, Inc.
Chapter 11 Installation
Verify that you have the TCP hostname or IP address of the older vCloud Usage Meter virtual appliance,
and its root and Web application passwords
Verify vCloud Usage Meter 3.3 has been properly installed and you have the root password
Procedure
1
Unzip usage-meter-330-update.zip
Enter cd usage-meter-330-update
Enter ./update-um
Unzip usage-meter-330-update.zip
Enter cd usage-meter-330-update
Enter ./update-um
VMware, Inc.
57
58
VMware, Inc.
Index
Active Directory 18
advanced management overview 45
API 18
authenticate servers 17
automatic reporting sets
creating 23
editing 24
removing 24
B
billing categories, managing 35
browsers, supported 51
C
capacities, metered 51
Chargeback 2.5 extension 41
collections
configure testing 18
configure timing 18
failed 12
successful 12
troubleshooting speed 47
viewing success or failure 25
customers
add for metering 27
edit metering details 28
exporting 30
importing 28
overview 27
remove from metering 28
requiring confidentiality 27
D
data, migrate or import 55
database
backing up 46
delete older data 42
E
email alerts, configuring 12
ESXi host, add for metering 45
F
firewall port configuration 52
VMware, Inc.
I
installation
configure time zone 54
firewall ports configuration 52
overview 51
virtual appliance 51
IP pool, configure 53
J
Java Management Extensions service 49, 50
L
LDAP authentication,configuring 18
licenses
creating sets 21
editing sets 22
managing billing category 35
removing sets 22
log file, collection 44
logs
changing history capacity 43
changing level 43
generating support bundles 41
overview 41
rolling 43
viewing 42
N
notifications 45
O
object types
understanding 33
using in rules 28, 31
outgoing email server, configuring 12
P
poll start time, configuring 18
products
activate 17
edit metering details 16
inactivate 17
59
R
reports
generating 38
overview 35, 36
restricted status, customers 27, 28
RSA key fingerprint 17
rules
add for metering customers 27, 31, 33
edit details 32
exporting 30
importing 28
removing 32
W
Web application password, configure 54
S
server host key fingerprint 17
service provider contact details, configuring 11
settings, overview 11
SSL certificate, generating 48
support bundles 41, 44
system requirements
hardware 51
software 51
T
tab separated file 28, 30
TCP ports, configuring 52
TCP Port, configuring for a different vCenter
Server port 47
time zone, configuring 54
troubleshooting
accessing Java Management Extensions 49
connecting with the JMX client 49
generating diagnostic information 41
V
value types
understanding 33
using in rules 28, 31
vCenter Server, changing the default port 47
vCenter Servers, add for metering 13
vCenter Site Recovery Manager, add for
metering 13
vCloud Director, add to vCloud Usage Meter 12
vCloud Integration Manager, add to vCloud
Usage Meter 15
vCloud Usage Meter
book audience 5
introduction to 7
service provider workflow 7
vCloud Usage Meter API 7, 52
virtual machine mapping 31
60
VMware, Inc.