Hi,
We have some PowerCLI build scripts that I have created for building vSphere enviroments, two of the only elements I havent been able to automate are as follows
enable CDP on the vSwitches
Currently we use the following command from the CLI
esxcfg-vswitch -B both vSwitch?
Teaming the VMK's with the iSCSI HBA from the CLI
esxcli swiscsi nic add -n vmk? vmhba??
Am I able to complete these two steps with PowerCLI and if not will I be able to do it with vSphere 5 and PowerCLI 5?
Cheers
Barry
Afaik there are no public API to perform these functions.
But you can use Robert's vCLI wrapper and call the commands from your PS script.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Afaik there are no public API to perform these functions.
But you can use Robert's vCLI wrapper and call the commands from your PS script.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Cheers Luc I will take a look
Have you also tried Get-ESXCLI for the second one ?