Upgrading to PowerCLI 4.0 update 1

Now that I have upgraded to vSphere 4 U1, I’m just doing an upgrade of the PowerCLI.

Well, now that I have upgraded to vSphere 4 U1, I’m just doing an upgrade of the PowerCLI (VMware’s addition of some 200+ cmdlets together with access to the VMware SDK too). I’m an avid fan and believe in the powers of PowerCLI. 

PowerCLI has been overhauled with a whole new raft of cmdlets which will go a long way in shortening my PS1 scripts. That said I don’t know when I’m going to get the time to replace my lengthy references to short cmdlets.

If you want to download and install the latest PowerCLI you will find it here:

http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit

I’ve been looking at the new cmdlets and trying to make a hit list of the ones I should look at first. Basically, I'm trying to figure out what my personal favorites/highlights will be by looking at the release notes:

  • Managing the failover and load-balancing policies of VirtualSwitch and VirtualPortGroup objects with Get-NicTeamingPolicy and Set-NicTeamingPolicy. Previously, these settings were only accessible by navigating the complicated SDK environment
  • Working with host storages and iSCSI HBA devices with Get-VMHostHba, Set-VMHostHba, Get-iScsiHbaTarget, New-iScsiHbaTarget, Remove-iScsiHbaTarget, Set-iScsiHbaTarget, and Set-VMHostStorage. Previously, these settings were only accessible by navigating the complicated SDK environment
  • Upgrading hosts with Install-VMHostPatch
  • Running BAT (Windows) and BASH (Linux) scripts with Invoke-VMScript. I think these cmdlets may be very useful in the SRM environment.
  • Uploading firmware packages with Set-VMHostFirmware.
  • Extending, cloning, inflating, and reallocating virtual hard disks with Copy-HardDisk, New-HardDisk, and Set-HardDisk. I’m hoping these cmdlets will be able to tell me if my virtual disk is eagerzeroedthick, the format valid for VMware Fault Tolerance. The conversion process can take some time, so it will be helpful to know because it will factor into your maintenance windows.

 

This was first published in November 2009

Dig deeper on Scripting administrative tasks

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchVirtualDesktop

SearchDataCenter

SearchCloudComputing

Close