The last couple of days I’ve been playing with PernixData FVP and after a couple of changes to my lab I wanted to know which ESXi hosts contained the FVP vib and which didn’t. There are a couple of ways check if the vib is installed on an ESXi server…

First is through Putty using this ESXCLI command:

esxcli software vib list

This will provide you with the list of all installed VIBs on that host.

largelistclick to enlarge

Because we only need to know if the PernixData vib is installed the following command will only show the VIBs that include Pernix:

esxcli software vib list |grep Pernix

Now because we need to do this on every single host, this could become a very intensive task. But as we all know Luc and Alan would write a great script to do this much easier and a lot faster…

smalllistclick to enlarge

After some google searches and a couple of failed attemps I finally got a script that shows just what I needed to know.

Here it is (feel free to change to make it even better, but this was what did the trick for me ;P):

$AllHosts = Get-VMHost | Where {$_.ConnectionState -eq ‘Connected’}
foreach ($VMHost in $AllHosts) {
$ESXCLI = Get-EsxCli -VMHost $VMHost
$ESXCLI.software.vib.list() | Select $VMHost.Name,AcceptanceLevel,ID,InstallDate,Name,ReleaseDate,Status,Vendor,Version | Where {$_.Vendor -match ‘PernixData’}
}

powercliclick to enlarge