san diego vmug oct 2009
DESCRIPTION
This is the presentation I gave at the San Diego VMUG on October 22, 2009. I demoed a number of scripts which you can find at http://blogs.vmware.com/vipowershellTRANSCRIPT
vSphere PowerCLIThe best tool for automating vSphere
http://vmware.com/go/powercli
You need to automate! You’re only one click away from a new
VM, application or network. Your virtual environment is not “out of
control” – having to manage more than before is the new reality.
http://vmware.com/go/powercli
SDVMUG October 2009 A brief intro to PowerCLI. Reporting with PowerCLI. VM Provisioning and Lifecycle. Storage Management. Q + A.
http://vmware.com/go/powercli
What is PowerCLI? PowerCLI is an automation tool. Designed with the admin in mind.
You don’t need to spend weeks learning the API.
Based on Windows PowerShell.Provides a modern and powerful scripting
framework.
http://vmware.com/go/powercli
PowerCLI Supports: ESX 3.0+ VirtualCenter/vCenter 2.0+ Any version of Windows that supports
PowerShell.
http://vmware.com/go/powercli
PowerCLI Goals. Power:
Automate any vSphere action. Simplicity:
Any vSphere admin can read PowerCLI code and immediately understand what it does.
http://vmware.com/go/powercli
People use PowerCLI to… Clone hundreds of VMs from a template. Perform mass migrations with Storage
VMotion. Easily integrate vSphere with other apps. More than 500 examples on our
community.http://vmware.com/go/powercli
http://vmware.com/go/powercli
DemoA 5 Minute Tour of PowerCLI.
http://vmware.com/go/powercli
Reporting 3 Types Of Reporting Inventory
Get-* cmdlets Events
Get-VIEvent Performance
Get-Stat
http://vmware.com/go/powercli
DemoReporting
http://vmware.com/go/powercli
Just to repeat myself 3 Types Of Reporting Inventory
Get-* cmdlets Events
Get-VIEvent Performance
Get-Stat
http://vmware.com/go/powercli
Some Interesting StatsInteresting Stuff disk.write.average
disk.read.average Resource Contention cpu.swapwait.summation
cpu.ready.summation
disk.totalreadlatency.average
disk.totalwritelatency.average
Generally Bad Stuff mem.swapout.average
disk.busresets.summation
disk.commandsaborted.summation
Storage Management *-Datastore *-ScsiLun *-ScsiLunPath Storage VMotion
http://vmware.com/go/powercli
DemoStorage Management (Contains future features)
http://vmware.com/go/powercli
Storage: Conclusion PowerCLI makes it easy to:
Provision storage.Report on storage.Diagnose storage problems.
http://vmware.com/go/powercli
VM Provisioning New-VM Get-Template Get-OSCustomizationSpec Set-VM
http://vmware.com/go/powercli
Demo
VM Provisioning and Lifecycle (Contains future features)
http://vmware.com/go/powercli
Provisioning: Conclusion PowerCLI makes provisioning large
numbers of assets very easy.
http://vmware.com/go/powercli
Coming Soon Configure virtual switch teaming, failover,
etc. Thin provisioning.
Convert existing or provision new. Guest management.
Copy files in and out. Roles and Permissions.
Duplicate between vCenter instances.
http://vmware.com/go/powercli
Conclusion PowerCLI is extremely powerful and
useful. It’s getting better all the time. It’s free and easy to install. This is a must-know tool for any
vSphere admin.
http://vmware.com/go/powercli
Learn More. Download at
http://vmware.com/go/powercli Join our community. Subscribe to the PowerCLI blog.
http://blogs.vmware.com/vipowershell Extensions at
http://codeplex.com/vitoolkitextensionshttp://vmware.com/go/powercli
http://vmware.com/go/powercli
Questions?
Download today: http://vmware.com/go/powercli
http://vmware.com/go/powercli