Using the VmaTargetLib LibraryThe VmaTargetLib library allows you to programmatically connect to vMA targets by using Perl or Java. Agents can link with VmaTargetLib and use vi-fastpass functionality. The VmaTargetLib library allows you to enable vi-fastpass authentication and to query or list one or more targets with the following commands:
■ EnumerateTargets – Retrieves a list of all servers that are vMA targets.
■ QueryTarget – Retrieves connection information for a target server.
■ Login – Connects to a target server.See the VmaTargetLib java library for a more detailed reference to the Java interface. You can find samples in /opt/vmware/vma/samples.VmaTargetLib ReferenceYou can use the following VmaTargetLib commands in Perl or Java programs.
Returns a list of target vCenter Server or ESXi systems added to the vMA instance by using vifp addserver.
query_target (<servername>)
One of the servers added to this vMA instance using vifp addserver. Can be an ESXi host or a vCenter Server system.
One of the servers added to this vMA instance using vifp addserver.
One of the servers added to this vMA instance using vifp addserver.