VMware

Retrieving Performance Statistics Info

VERSION 3 Published

Created on: Aug 28, 2009 4:04 PM by navadavuluri - Last Modified:  Sep 10, 2009 10:39 AM by navadavuluri

This sample retrieves the performance statistics information using multi-threaded client program. It demonstrates using the best practices.

Usage:
java GetMultiPerfStats <host> <username> <password> <EntityName:EntityType[vm|host|rp|ccr]> <PerfGroup.PerfCounter.RollupType> [isCSVOutput]

################################################################################

Case 1:
Retrieved the past 1 hour samples (180 samples) for two entities.
One VM, and one Host. The VM is running on the specified Host.
All Perf stats are retrieved for each entity in one call, and for all entities
in one call. The times are recorded in both the cases.

Input:
https://10.20.140.70/sdk Administrator password ITSM701:vm,rkoganty-dev1.eng.vmware.com:host cpu,mem,net,disk,cpu.usagemhz.average,mem.overhead.average,net.packetsRx.summation,net.packetsTx.summation true

Output:

MOR Type : VirtualMachine

Managed entity: vm-27
Current supported: true
Refresh rate: 20
Summary supported: true

PerfCountersArr length: 8

Time for all perf query specs are in one array for one entity
                                      1. One entity Thread start time: 1251408083890 ms
MOR Type : HostSystem

Managed entity: host-10
Current supported: true
Refresh rate: 20
Summary supported: true

$$$$$$$$$$$$$$$ Total time for the perf stats query: 576 ms
PerfQuerySpec Arr Length: 8
PerfEntityMetricBase array length: 8
PerfCountersArr length: 8

Time for all perf query specs are in one array for one entity
                                      1. One entity Thread start time: 1251408084706 ms

Cumulative time for all entities when all perf query specs are in one array
%%%%%%%%%%%%%%% Cumulative Thread start time: 1251408084706 ms
$$$$$$$$$$$$$$$ Total time for the perf stats query: 654 ms
PerfQuerySpec Arr Length: 8
PerfEntityMetricBase array length: 8
$$$$$$$$$$$$$$$ Total time for the perf stats query: 1005 ms
PerfQuerySpec Arr Length: 16
PerfEntityMetricBase array length: 16

################################################################################

Case 2:
Retrieved the past 1 hour samples (180 samples) for three entities.
One VM, and two Hosts. The VM is running on one of the specified Hosts.
All Perf stats are retrieved for each entity in one call, and for all entities
in one call. The times are recorded in both the cases.

Input:
https://10.20.140.70/sdk Administrator password ITSM701:vm,rkoganty-dev1.eng.vmware.com:host,10.17.204.255:host cpu,mem,net,disk,cpu.usagemhz.average,mem.overhead.average,net.packetsRx.summation,net.packetsTx.summation true

Output:

MOR Type : VirtualMachine


Managed entity: vm-27
Current supported: true
Refresh rate: 20
Summary supported: true

PerfCountersArr length: 8

Time for all perf query specs are in one array for one entity
                                      1. One entity Thread start time: 1251408272940 ms
MOR Type : HostSystem

Managed entity: host-46
Current supported: true
Refresh rate: 20
Summary supported: true

$$$$$$$$$$$$$$$ Total time for the perf stats query: 548 ms
PerfQuerySpec Arr Length: 8
PerfEntityMetricBase array length: 8
PerfCountersArr length: 8

Time for all perf query specs are in one array for one entity
                                      1. One entity Thread start time: 1251408273791 ms
MOR Type : HostSystem

Managed entity: host-10
Current supported: true
Refresh rate: 20
Summary supported: true

PerfCountersArr length: 8

Time for all perf query specs are in one array for one entity
                                      1. One entity Thread start time: 1251408274503 ms

Cumulative time for all entities when all perf query specs are in one array
%%%%%%%%%%%%%%% Cumulative Thread start time: 1251408274504 ms
$$$$$$$$$$$$$$$ Total time for the perf stats query: 1200 ms
PerfQuerySpec Arr Length: 8
PerfEntityMetricBase array length: 8
$$$$$$$$$$$$$$$ Total time for the perf stats query: 612 ms
PerfQuerySpec Arr Length: 8
PerfEntityMetricBase array length: 8
$$$$$$$$$$$$$$$ Total time for the perf stats query: 2255 ms
PerfQuerySpec Arr Length: 24
PerfEntityMetricBase array length: 24
Attachments:
Average User Rating
(1 rating)




Comments

There are no comments on this document

 

Developer Social Media

Communities