
Community Archive (Customer) asked a question.
WUG scripts to do VMWare actions
Has anyone figured out how to create scripts to do things in VMWare based on some alert. I see in the APM portion of WUG there is the ability to do some VMWare commands. In this case I was looking to add more disk based on a disk space alert. I was thinking I could fire off a script to expand the disk space.
There are VMware actions with the virtualization addon, but nothing that would extend disk space. Theoretically this is possible using vSphere PowerCLI (PowerShell cmdlets) but it would be more involved than you'd think. For example, increasing the size of the disk in VMware is one thing -- you'd still need to increase the size of the partition/volume in the guest operating system though. Instead of automating this, I would recommend identifying why the disk space is increasing so often that you'd want to automate it.