Tip

Upgrading to PowerCLI 4.0 update 1

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:

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.