6.7

Table Of Contents
3 Before comparing the VIBs, assign them to variables.
For example, you can create variables $vib1 and $vib2 to hold the names of the compared VIBs.
$vib1 = Get-EsxSoftwarePackage -Name "ReferenceVIB"
$vib2 = Get-EsxSoftwarePackage -Name "ComparisonVIB"
4 Use a comparison operator to compare the VIBs by contents and acceptance level or by a specific
property.
n
Compare the two VIBs by their contents and acceptance level.
if ($vib1 -eq $vib2) {
Write-host "Successfully verified that both VIBs are equal."
} else {
Write-host "Failed to verify that the VIBs are equal."
}
n
Compare a specific property of the VIBs by using a comparison operator such as -eq, -lt, -le, -
gt or -ge.
if ($vib1.VersionObject -lt $vib2.VersionObject) {
Write-host "Successfully verified that both the VIBs are equal."
} else {
Write-host "Failed to verify that the VIBs are equal."
}
Working with Acceptance Levels
Hosts, image profiles, and individual VIBs have acceptance levels. VIB acceptance levels show how the
VIB was tested. Understanding what each acceptance level implies, how to change levels, and what a
change implies is an important part of installation and update procedures.
VMware ESXi Installation and Setup
VMware, Inc. 59