VMware vSphere PowerCLI is a command-line interface (CLI) tool for automating vSphere and vCloud management. VMware vSphere PowerCLI debuted as the VMware Infrastructure Toolkit, also called the VI Toolkit.
PowerCLI commands are executed in Windows PowerShell by using PowerShell cmdlets. PowerCLI cmdlets are available for VMware High Availability and Distributed Resource Scheduler setup, infrastructure activity reporting, VM ownership alerts and other tasks.
PowerCLI 6.3 Release1 requires Windows PowerShell 3.0 and a supported version of .NET Framework. This latest tool version includes the vCloud Director PowerCLI snapin.
In this chapter we are going connect VI servers using PowerCLI and create new DataCenter in VCenter, also we how to add new host in VCenter server using PowerCLI.Connect to VCenter Server.
Creating a new DataCenter
To Create New DataCenter Name Called "LAB" use PowerCLI cmdlet "New-Datacenter"
Add Esxi Host to Newly created DataCenter "LAB"
To add new Esxi host to newly created Datacenter use "Add-VMHost" command.
monitor the progress on screen
Once host get added successfully you can seen connection status and all other host related details like CPU, Memory usages, total CPU and Memory capacity.
I will be adding more article for VMware administration with PowerCLI