1 Check the vSphere SDK for Perl Utility Applications Reference or the apps directory for a script that retrieves performance information.Check /usr/lib/vmware-vcli/apps on Linux and Program Files\VMware vSphere CLI\Perl\apps on Windows. All utility applications are fully supported.The viperformance.pl script retrieves performance counters from the host.
Note If you cannot find a utility application, examine the sample scripts. You can use sample scripts as starting points for your application. On Linux, /usr/share/doc/vmware-vcli/samples, on Windows, Program Files\VMware\VMware vSphere CLI\Perl\samples. Sample scripts are not supported.
2 Run the script with the --help option or without any options to see its online documentation. More detailed information is in the Utility Applications Reference included in the vSphere SDK for Perl documentation set and available from the VMware Web site.
3 Run the viperformance.pl script against an ESXi host.Escape characters must precede special characters in passwords. See Options Available for All SDK for Perl Commands for a complete list of connection parameters.
1 Check the /samples folder for a sample script that performs a similar task. The scripts in the samples folder are available for customization.
■ Use the options in Options Available for All SDK for Perl Commandsto specify connection information.
■ Use the mechanism discussed in Step 2: (Optional) Define Script-Specific Command-Line Options for specifying additional script-specific options.
viperformance.pl (retrieves performance counters from host) vmsnapshot.pl, snapshotmanager.pl
To match Boolean values in a filter, use the strings true and false. See Creating and Using Filters.
■ Date/Time – The server returns a SOAP dateTime value. You can use the Date::Parse Perl module to process these objects.The vSphere SDK for Perl accepts only native SOAP dateTime values using standard date time format with or without fractional seconds, and with or without GMT (Z) time zone:YYYY-MM-DDThh:mm:ssTZD, for example, 1997-07-16T19:20:30+01:00
YYYY-MM-DDThh:mm:ss.sTZD, for example, 1997-07-16T19:20:30.45+01:00The SDK always returns dateTime values in the standard date time format.