VMware VS4-ENT-PL-A - vSphere Enterprise Plus Setup Manual page 176

Setup guide
Table of Contents

Advertisement

vSphere Installation and Setup
Procedure
1
Run the
Connect-VIServer
is registered with.
Connect-VIServer 192.XXX.X.XX
The cmdlet might return a server certificate warning. In a production environment, make sure no server
certificate warnings result. In a development environment, you can ignore the warning.
2
Define a rule in which hosts with certain attributes, for example a range of IP addresses, are assigned to
a folder or a cluster.
New-DeployRule -Name "testrule3" -Item "my folder" -Pattern "vendor=Acme,Zven",
"ipv4=192.XXX.1.10-192.XXX.1.20"
This example passes in the folder by name. You can instead pass in a folder, cluster, or datacenter object
that you retrieve with the
3
Add the rule to the rule set.
Add-DeployRule testrule3
By default, the working rule set becomes the active rule set, and any changes to the rule set become
active when you add a rule. If you use the
the active rule set.
What to do next
Upgrade existing hosts to be added to the specified vCenter Server location by performing test and
n
repair compliance operations on those hosts. See
Turn on unprovisioned hosts to add them to the specified vCenter Server location.
n
Test and Repair Rule Compliance
When you add a rule to the Auto Deploy rule set or make changes to one or more rules, hosts are not
updated automatically. Auto Deploy applies the new rules only when you test their rule compliance and
perform remediation.
This task assumes that your infrastructure includes one or more ESXi hosts provisioned with Auto Deploy,
and that the host on which you installed vSphere PowerCLI can access those ESXi hosts.
Prerequisites
Install vSphere PowerCLI and all prerequisite software.
n
If you encounter problems running PowerCLI cmdlets, consider changing the execution policy. See
n
"Using Auto Deploy Cmdlets,"
Procedure
1
Use PowerCLI to check which Auto Deploy rules are currently available.
Get-DeployRule
The system returns the rules and the associated items and patterns.
2
Make a change to one of the available rules, for example, you might change the image profile 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
pattern you want to change. By default, PowerCLI uses the old name for the copy and hides the old
rule.
176
PowerCLI cmdlet to connect to the vCenter Server system that Auto Deploy
,
, or
Get-Folder
Get-Cluster
NoActivate
"Test and Repair Rule Compliance,"
on page 170.
cmdlet.
Get-Datacenter
parameter, the working rule set does not become
on page 176.
VMware, Inc.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vsphere 5.5

Table of Contents