The below vCO script moves a VM to a new business group (provisioning group) and reservation in vRealize Automation.
The trick is that each reservation is mapped to one business group only and once you move a VM between business groups you also have to re-define reservations. Business groups are represented by provisioning groups in vRA. Reservations are changed by updating VM’s references to host-reservation and host-reservation-to-storage objects. Read the rest of this entry »
You can run PowerCLI scripts directly in the Windows command line. This is useful if you need to run a PowerCLI script in Windows Scheduler.
PowerCLI must be installed on the Windows system.
Just use the following systax:
C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe -psconsolefile "C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\vim.psc1" -outputformat Text -command ". \"C:\My Scripts\PowerCLI Script.ps1\" -arg1 X -arg2 Y"
During a recent implementation of VMware Site Recovery Manager 5.1.1 for one of my clients I faced a problem how I could make a text dump of current SRM settings mainly for a project documentation but also just in case the SRM environment had to be restored from scratch.
Some of you already know that working with the HP Virtual Connect Enterprise Manager may be simply tedious. The web-based GUI and unwieldy database make you find HP VCEM rather slow and hardly responsive. Of course HP VCEM provides some advantages, which compensate many drawbacks. For example you can define a new VLAN and assign it to existing shared uplink in a specific Virtual Connect module and such change will be automatically replicated to all Virtual Connect modules in the same domain group. You would love such feature if you had 30 C7000 chassis and 240 BL685c blade servers in a single Virtual Connect domain group. Nevertheless there are some management operations which take a lot of time. Read the rest of this entry »