Automation of ESXi5.1
I need to automate ESXi 5.1 installation from a powershell script.For This to understand how PXE works we done with setup of DHCP on Virtual m/c having Windows 2008 R2 and TFTP server on Ubuntu 11.10...
View ArticleRemove RDM and re-create RDM mapping file and attach
Hi, I've written the script below but it works fine except it doesn't create the RDM mapping file.If I comment out the following lines it works fine.$fileMgr.DeleteDatastoreFile_Task($name,...
View ArticleESX / DATASTORE details in inventory list.
Hi all, Thanks in advance for all volunteers who helped me to understand little bit about power cli. today i came with a different topic in power cli. how to get the esx/ details and datastore details...
View ArticleUsing Powercli I having trouble modifying vm hardware and nic portgroup when...
Hello, wondering if anyone can help out, i am trying to deploy 1 or more vm from multiple templates, the variables are being imported from a csv file each line is a new VM with specific name, ip,...
View ArticleReport to list vm name disk(s) name disk capacity and used space
Hi Does any one have a script to list the following:vm name disk(s) name disk capacity and used space Thanks
View Articleorphaned vmdk files script
I found the below useful script for finding orphaned vmdk files as seen below: Purpose : List all orphaned vmdk on all datastores in all VC'sVersion: 1.1Author : HJA van BokhovenModifications: LucD...
View ArticleScript esxcfg-vswitch -l info
Is there a powercli equivalent script to the esxcfg-vswitch -l command? Since Im using a 1000v, the CDP info doesnt really help the ports connected to the 1000v. I can run that command (esxcfg-vswitch...
View Articlethe number of waithandles must be less than 64 error when i run the script.
Dear power cli guys, Why i am getting this error when i run the script. how to avoid this ? i am running .net 4.5 with power cli 5.0. Kindly guide me to solve this thread. what modification i need to...
View ArticleMove-VM to datastore cluster with DiskStorageFlag throws error.
I am trying to move vms to a new datastore cluster and as part of the move convert them to thin provisioned. As soon as I add the -DiskStorageFormat Thin2GB it throws an error. Am I missing...
View ArticleScript to map out datastores to NAA ID's?
Does anyone have a script to map a list of datastores from a host or cluster along with the the NAA ID's? I have found scripts that gather various types of information on the LUN's on hosts and...
View ArticleDeploy Linux VM from template with Guest Customization
Based on various forum postings and numerous articles i still haven't completely understood how to achieve the following scenario in a powercli script. any guidance is highly appreciated....
View Articleany way to run a powershell script?
Is there any other way to be able to setup a script to be able to run by either double clicking it or some other way other than having to opening powercli and going to the script and running it. It...
View ArticleHow to get the packet number of VM's nic in all cluster in datacenter
I want get the packet sent and receive number per second of all vm's nics.In My vsphere env, there is a datacenter, some cluster, every cluster have some esxi host.Some VM will send huge number...
View Articlepowercli script to get targets devices paths from HBA
I need to quickly check all the hosts in my clusters to see all of them have the correct number of HBA targets, devices and paths. I can see this information in vCenter. Not an easy task if you have...
View ArticleHow to manage Faults with Powershell SDK.
Hi AllI want to migrate VMs from 1 host to other and i am doing it well in normal circumstances ..but i want to manage all the faults that are available with MigrateVM_task.. I am also ok with Move-VM...
View ArticleGet-ScsiLun
$A=get-vmhost vmhostNamePowerCLI D:\Scripts\RDMReport> Get-ScsiLun -VmHost $AGet-ScsiLun : 27.3.2013 12:19:55 Get-ScsiLun Value cannot be null.Parameter name: arrayAt line:1 char:12+...
View Articlevm ware vsphere 5.1 powercli
When did powercli come live? from version 4.1 or 5.0? Where did need to be installed? ON a workstation or on vcenter server? I installed on a win7 workstation but could not run any command. No command...
View ArticleGet available VDI's with PowerCLI.
Hi folks, We are running a VMWare View 5.1 enviroment with about 320-340 users concurrent. Recently we had some issues with provisioning and we had to check the available/(dis)connected count by hand...
View ArticleGet Status on ESXi 5.1 High Availability Agent
Hello everybody ! Someone has any script to check status on ESXi 5.1 High Availability Agent ? Thanks, Rafael Nunes
View ArticleVM_Count for PowerCLI
HI,We required Info of Cluster Name, Host,version of host and VM's count of every host.Thanks for Advance.. Regards,Siva Reddy G
View Article