VMware Cloud Community
mondorescue
Contributor
Contributor
Jump to solution

Reading custom fields with vMA

Hallo together,

i am searching information for reading a custom attribute field with a perl program.

It has to read a annotation field from a vm.

Can anybody help me with a sample script?

Thanks

Timm

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Take a look at these two scripts as references, as custom fields and annotations are two different things.

http://communities.vmware.com/docs/DOC-10779

http://communities.vmware.com/docs/DOC-10220

View solution in original post

0 Kudos
2 Replies
lamw
Community Manager
Community Manager
Jump to solution

Take a look at these two scripts as references, as custom fields and annotations are two different things.

http://communities.vmware.com/docs/DOC-10779

http://communities.vmware.com/docs/DOC-10220

0 Kudos
mondorescue
Contributor
Contributor
Jump to solution

Thank you very much. "queryVMCustomField.pl" helped to read custom fields for a vm.

I combined it with "getvmtoolsstatus.pl" and now i can get a list of all outdated vmtools.

Every virtual machine is listed with vmtools-status and the responsible department (realized as custom field).

All this information will be sent as email :-).

Now this script works as automated check for outdated vmtools.

Thanks

Timm

0 Kudos