viperformance.pl - Retrieves performance counters from a host.
viperformance.pl [options]
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.
Required. Name of the host.
Required. Counter type [cpu | mem | net | disk | sys].
Optional. Interval in seconds.
Optional. Number of samples to retrieve. Default: 10
Optional. Name of instance to query. Default: Aggregate of all instance. Specify '*' for all the instances.
Optional. Name of the filename to hold the output.
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 *