Information Technology Reference
In-Depth Information
specify the “adauth” authpolicy, fastpass would use an Active Directory account for authentica-
tion to the host.
You can view any hosts that fastpass has been coni gured for using the vifp listservers
command:
vi-admin@vma01:~> vifp listservers
vSphere01.vSphere.local ESXi
You can see that a single host is fastpass enabled, and it is an ESXi host.
Now that fastpass is aware of the host, you set the host as the current target using the
vifptarget command:
vifptarget -s < Hostname >
After this you can execute ESXi coni guration commands as though you are logged into the
console of that host. The list of commands now looks like standard ESX coni guration com-
mands from the old Service Console. Note that you can still use the esxcfg- prei x for the
commands, so existing scripts can be copied into place with minimal changes. For example,
Listing 14.4 adds a vSwitch to the vSphere01 host using vMA fastpass.
Listing 14.4: Add a vSwitch using vMA fastpass
vi-admin@vma01:~>vifptarget -s vSphere01.vSphere.local
vi-admin@vma01:~[vSphere01.vSphere.local]> vicfg-vswitch -a vSwitch1
vi-admin@vma01:~[vSphere01.vSphere.local]> vicfg-vswitch -L vmnic1 vSwitch1
vi-admin@vma01:~[vSphere01.vSphere.local]> vicfg-vswitch -A ″VM-Public″ ↵
vSwitch1
vi-admin@vma01:~vSphere01.vSphere.local]> vicfg-vswitch -v 10 -p ↵
″VM-Public″ vSwitch1
By adding additional ESXi servers to fastpass, you can coni gure multiple hosts quickly using
a simple bash loop. For example, Listing 14.5 will connect to each host and add the vm_nfs01
datastore.
Listing 14.5: Add an NFS datastore or multiple hosts by using vMA fastpass
for server in ″vSphere01 vSphere02 vSphere03 vSphere04 vSphere05″; do
> vifptarget -s $server
> vicfg-nas -a -o FAS3210A.vSphere.local -s /vol/vm_nfs01 vm_nfs01
> vifptarget -c
> done
Search WWH ::




Custom Search