I had reservation for some VMs in clusters, I wanted to find out how much free (unreserved) resources are exist on each esxi host, it could help us regarding VMs migration. 1. Connect to the vCenter Server: Connect-VIServer VC_ADDRESS 2. Then for each host in our cluster, we get total …
Read More »PowerCLI: Update the BIOS of all G10 server in a vSphere environment
So we need to update all G10 servers which reside in a cluster. I should mention we need to install ilorest in order to be able to that. Then I have provided the process here: ESXi Root HPE iLO Username & Password $ilousername = 'ILOUSER'$ilopassword = 'ILOPASS' vCenter and Cluster …
Read More »PowerCLI: how to change DNS on ESXi hosts?
I had a situation to update the DNS servers on multiple esxi hosts. When you want to do bulk actions, PowerCLI is your friend! 1. Connect to the vCenter Server: Connect-VIServer VC_ADDRESS 2. Create a variable which includes the IP address of the DNS Server $dnsServers = '172.16.10.5' 3. Remove the old DNS …
Read More »PowerCLI: how to get the BIOS version of my esxi hosts?
I had one task to update the BIOS of servers with the help of PowerCLI/PowerShell which I will share the process with you a bit later but in this post I want to get the BIOS version of my ESXi hosts which are not a few! 1. Connect to the …
Read More »PowerCLI: how to remove a specific VIB from many ESXi
I was in a situation which I had to remove a VIB file from ESXi hosts which reside in a cluster. In such cases PowerCLI is our good friend. Let’s see how it can help us: 1. Connect to the vCenter Server: Connect-VIServer VC_ADDRESS 2. The we create a variable …
Read More »PowerCLI: how to get the model of all servers in a big virtual infrastructure?
In order to do some task I had to get the model of all servers in a big VMware infra. It is quite easy but can be helpful: 1. Connect to the vCenter Server: Connect-VIServer VC_ADDRESS 2. Then we get the property: Get-Vmhost | Get-View |Sort-object Name |select Name,@{N = …
Read More »