vFabric Suite provides Windows command-line tools and a simple Web user interface to monitor vFabric license usage by the VMs.
Note: Although you previously activated vFabric licenses using the vSphere client, you cannot yet use the vSphere client user interface to monitor the vFabric license usage; rather, you must use the commands described in this section.
Monitor License Usage Using Command-Line Tools
Monitor License Usage Using the Web User Interface
Displaying the Component Events File in Readable Format
vFabric Suite provides the following Windows command-line tools to monitor current and periodic vFabric license usage by the VMs. You run these tools on the same Windows computer on which you installed vCenter Server.
The vFabric license-usage reports require a 64-bit JDK or JRE (version 1.6). By default, the reports use the JRE installed with vCenter Server (located by default in the c:\Program Files\VMware\Infrastructure\jre directory). The reports use the following line to add these Java binaries to the PATH variable:
SET PATH=%PATH%;C:\Program Files\VMware\Infrastructure\jre\bin
If you have installed your own JDK or JRE on the vCenter Server computer, and updated the system PATH variable with its location, then the vFabric license-usage reports will use that JDK/JRE instead. This should not cause any problems, as long as the JDK/JRE is 64-bit and version 1.6. If it is not, then you must change the SET PATH line in the license reports to the following:
SET PATH=C:\Program Files\VMware\Infrastructure\jre\bin;%PATH%
The preceding sample assumes the default location of the VMware infrastructure directory; if you installed vCenter into a different directory, then make the appropriate change.
The vFabric license-usage reports are located by default in C:\Program Files\VMware\Infrastructure\vFabric Platform\Reporting.
On the Windows computer on which vCenter Server is running, open
a command window and change to the
directory, where
vCenter-Install-Dir\vFabric
Platform\Reporting refers to
the directory in which you installed vCenter Server (default is
vCenter-Install-DirC:\Program Files\VMware\Infrastructure.) For
example:
prompt> cd c:\Program Files\VMware\Infrastructure\vFabric Platform\Reporting
Run the desired monitoring command; see Command Reference for a table that lists all the commands along with their required or optional parameters.
For example, run the usage-over-periods.bat command
to display vFabric license usage over a period of time. You must
specify the start and end dates of the time period, as well as the
period, such as monthly or yearly.
prompt> usage-over-periods.bat -startDate 08/01/2011 -endDate 08/31/2011 -period WEEKLY
The output will look something like the following:
License Key,Period,Minimum Usage,Maximum Usage,Average Usage 123AA-123BB-123CC-123DD-123EE,"Aug 1, 2011 - Aug 7, 2011",2,4,3.1 123AA-123BB-123CC-123DD-123EE,"Aug 8, 2011 - Aug 14, 2011",2,3,2.5 123AA-123BB-123CC-123DD-123EE,"Aug 15, 2011 - Aug 21, 2011",0,1,0 123AA-123BB-123CC-123DD-123EE,"Aug 22, 2011 - Aug 28, 2011",0,2,0.07 123AA-123BB-123CC-123DD-123EE,"Aug 29, 2011 - Aug 31, 2011",1,4,1.3
The output shows the minimum, maximum, and average use of a single vFabric license for each week in the month of August, 2011. If you had installed additional vFabric licenses, then these would also show up in the report.
Another example is to view the year-to-date usage of your vFabric licenses. For example, if today is July 31, 2011:
prompt> usage-over-periods.bat -startDate 08/01/2010 -endDate 07/31/2011 -period YEARLY
The output will look something like the following:
License Key,Period,Minimum Usage,Maximum Usage,Average Usage 123AA-123BB-123CC-123DD-123EE,"Aug 1, 2010 - July 31, 2011",50,75,30.5
To view the daily usage over the last 90 days and group the output by the associated resource pool, run the following command:
prompt> usage-over-periods.bat -days 90 -group resourcePool
Run the current-usage.bat Windows command to get a
report of the current vFabric license usage.
prompt> current-usage.bat
The output will look something like the following:
License Key,Quantity Licensed,Quantity Available,Current Usage 123AA-123BB-123CC-123DD-123EE,500,498,2
The entry shows the 500-license vFabric license key, with 498 licenses available and 2 currently in use.
To limit the report to the current usage on the
myVDC datacenter, run the following:
prompt> current-usage.bat -datacenter myVDC
To view a weekly report of the number of virtual machines on a
cluster called mycluster that have run the vFabric
components from March 1, 2011 to March 31, 2011, run the following
monitoring command:
prompt> versions-over-periods.bat -startDate 03/01/2011 -endDate 03/31/2011 -period WEEKLY -cluster mycluster
Table 2. vFabric License Server Monitoring Commands