NAME

viperformance.pl - Retrieves performance counters from a host.


SYNOPSIS

viperformance.pl [options]


DESCRIPTION

This VI Perl command-line utility 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

GENERAL OPTIONS

Host

Required. Name of the host.

file

Optional. Name of the file to hold output.

countertype

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

interval

Optional. Interval in seconds. Default: 20

samples

Optional. Number of samples to retrieve. Default: 1


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


SUPPORTED PLATFORMS

All operations work with VMware VirtualCenter 2.0.1 or later.

All operations work with VMware ESX Server 3.0.1 or later.