6.0.2

Table Of Contents
Procedure
1 Use vSphere PowerCLI to check which Auto Deploy rules are currently available.
Get-DeployRule
The system returns the rules and the associated items and paerns.
2 Make a change to one of the available rules.
For example, you can change the image prole and the name of the rule.
Copy-DeployRule -DeployRule testrule -ReplaceItem MyNewProfile
You cannot edit a rule already added to a rule set. Instead, you copy the rule and replace the item or
paern you want to change.
3 Verify that you can access the host for which you want to test rule set compliance.
Get-VMHost -Name MyEsxi42
4 Run the cmdlet that tests rule set compliance for the host, and bind the return value to a variable for
later use.
$tr = Test-DeployRuleSetCompliance MyEsxi42
5 Examine the dierences between the contents of the rule set and conguration of the host.
$tr.itemlist
The system returns a table of current and expected items.
CurrentItem ExpectedItem
----------- ------------
My Profile 25 MyProfileUpdate
6 Remediate the host to use the revised rule set the next time you boot the host.
Repair-DeployRuleSetCompliance $tr
What to do next
If the rule you changed specied the inventory location, the change takes eect when you repair compliance.
For all other changes, boot your host to have Auto Deploy apply the new rule and to achieve compliance
between the rule set and the host.
Upgrading Hosts by Using esxcli Commands
By using vSphere CLI, you can upgrade ESXi 5.x host to version 6.0 and update or patch ESXi 5.x and 6.0
hosts.
To use esxcli commands for vCLI , you must install vSphere CLI (vCLI). For more information about
installing and using the vCLI, see the following documents:
n
Geing Started with vSphere Command-Line Interfaces
n
vSphere Command-Line Interface Concepts and Examples
n
vSphere Command-Line Interface Reference is a reference to vicfg- and related vCLI commands.
N If you press Ctrl+C while an esxcli command is running, the command-line interface exits to a new
prompt without displaying a message. However, the command continues to run to completion.
For ESXi hosts deployed with vSphere Auto Deploy, the tools VIB must be part of the base booting image
used for the initial Auto Deploy installation. The tools VIB cannot be added separately later.
vSphere Upgrade
188 VMware, Inc.