What the script does
This script collects values from the advanced settings of Virtual Machines objects stored in Virtual Centre and posts them to the matching Virtual Machine object in vRealize Operations Manager
- The Advanced Setting is set as part of the script and the value is collected from the Virtual Centre Virtual Machine object
- The StatKey is set as part of the script
- The Cluster to target is set as part of the script
- Simple logic checks if the Advanced Setting requested exists against the Virtual Centre Virtual Machine object and if it does not it skips
- Calls the 'resource.addproperty' method to Post the value to the matching Virtual machine object wihin vRealize Operations Manager
- This script requires VMware PowerCLI including the VMware.VimAutomation.vROps module
- An existing connection to Virtual Centre
- An existing connection to vRealize Operations Manager
vRealize Operations Manager
No support offered or liability accepted use this script at your own risk.
This script was built and tested using;
- VMware.VimAutomation.vROps version 184.108.40.20640184.
- Vmware.VimAutomation.Core version 220.127.116.1139655.
- VMware vRealize Operations Manager 8.1.0 Enterprise Edition.
- VMware ESXi 7.0.0 15843807
- VMware vCenter 7.0.0 15952599