vSphere 5.1 & vCloud 5.1 Available for Download

After the announcement of  of vCloud & vSphere 5.1 in VMworld 2012. Now that products are available for download Products Download VMware vSphere 5.1 Download vCloud Director 5.1 Download vCenter SRM 5.1 Download VMware PowerCLI 5.1 Download VMware CLI 5.1 Download Free ESXi 5.1 Documentation VMware vSphere 5.1 Documentation VMware vSphere 5.1 Release Notes Configuration Maximums 5.1 What’s New […]

Share

List Number of VM’s in a Datastore

Here is quick way to get number of VM’s running on each datastore using PowerCLI Get-Datastore | Select Name, @{N=”NumVM”;E={@($_ | Get-VM | where {$_.PowerState -eq “PoweredOn”}).Count}} | Sort Name| Out-Gridview Output If you wish to export the results to Excel you could use Export-CSV cmdlets

Share

Integrating Cisco UCS and vSphere – Video

In this video Cisco Eric Williams and VMware Alan Renouf shows  the integration of UCS and vSphere using powershell and automate the build from bare metal to the VMware Hypervisor [youtube=http://www.youtube.com/watch?v=vBrgkmsI8Jw&feature=g-all-u]

Share

Creating Multiple datastore using PowerCLI

Recently I have been on a project where i have to create multiple new datastore. I thought it would be tedious process to keep creating the datastore using vSphere Client so i thought of giving a try using PowerCLI for creating the new datastore.We have a cmdlet New-Datastore which does the trick for us To […]

Share

Set Maintenance Mode using Power CLI

A quick one liner to set host to Maintenance mode and remove the host from Maintenance mode. This can be achieved using Set-VMHost cmdlet with State parameter. There are three values which can be used in State parameter Connected, Disconnected, and Maintenance Before using the One liner make sure you are connected to the vCenter server […]

Share

Connect-VIServer Could not connect using requested protocol

All of a sudden I has a problem in connecting to one of the vCenter server using Power CLI and it was throwing the error message as below Solution Disabled the the proxy setting for the PowerCLI session using Set-PowerCLIConfiguration cmdlet with –ProxyPolicy parameter Enjoy 🙂

Share

Set Multipath Policy via PowerCLI

In this post will cover how to view and set the multipath policy using Power CLI To View the Current Multipathing Policy there is a cmdlet Get-ScsiLun which retries the SCSI devices available To Check the status of a Cluster Get-Cluster ClusterName| Get-VMHost | Get-ScsiLun -LunType disk To Check the status of a particular host Get-VMhost HostName | Get-ScsiLun -LunType […]

Share

Find Host build number using Power CLI

To find the build number of the host you could run the below one liner which will fetch the information Get-View -ViewType HostSystem -Property Name,Config.Product | select Name,@{N=”Build”;E={$_.Config.Product.FullName}} Output will be as below

Share
Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com