vMA samples illustrate the vMA CLIs and the VmaTargetLib library.

The vMA samples are available in the /opt/vmware/vma/samples file after vMA is installed.

Command

Description

bulkAddServers.pl

A Perl sample that adds multiple targets to vMA.

mcli.pl

A Perl sample that runs a vSphere CLI command on multiple vMA targets listed in a file supplied as an argument. You must run vifptarget before running this script.

listTargets.pl

A Perl sample that retrieves information and version of vMA targets using VmaTargetLib.

listTargets.sh

A Java sample that demonstrates use of VmaTargetLib.