NAME

viperformance.pl - Retrieves performance counters from a host.


SYNOPSIS

 viperformance.pl [options]


DESCRIPTION

This command provides an interface to retrieve performance counters from the specified host. Performance counters shows these primary attributes: CPU Usage, Memory Usage, Disk I/O Usage, Network I/O Usage, and System Usage.


OPTIONS

Host

Required. Name of the host.

countertype

Required. Counter type [cpu | mem | net | disk | sys].

interval

Optional. Interval in seconds.

samples

Optional. Number of samples to retrieve. Default: 10

instance

Optional. Name of instance to query. Default: Aggregate of all instance. Specify '*' for all the instances.

out

Optional. Name of the filename to hold the output.


EXAMPLES

Retrieve performance counter for countertype 'cpu' from host 'Host123'

 viperformance.pl --url https://<host>:<port>/sdk/vimService
                --username myuser --password mypassword
                --host Host123 --countertype cpu

Retrieve performance counter for countertype 'net' from host 'Host123'. Let the interval be 30 seconds and the number of samples be 3.

 viperformance.pl --url https://<host>:<port>/sdk/vimService
                --username myuser --password mypassword
                --host Host123 --countertype net --interval 30
                --samples 3

Retrieve performance counter for countertype 'net' from host 'Host123' for cpu instance 1.

 viperformance.pl --url https://<host>:<port>/sdk/vimService
                --username myuser --password mypassword
                --host Host123 --countertype net --interval 30
                --samples 3 --instance 1

Retrieve performance counter for countertype 'net' from host 'Host123' for all the cpu instances.

 viperformance.pl --url https://<host>:<port>/sdk/vimService
                --username myuser --password mypassword
                --host Host123 --countertype net --interval 30
                --samples 3 --instance *


SUPPORTED PLATFORMS

All operations work with VMware VirtualCenter 2.0.1 or later.

All operations work with VMware ESX 3.0.1 or later.