san diego vmug oct 2009

23
vSphere PowerCLI The best tool for automating vSphere http://vmware.com/go/powerc

Upload: carter-shanklin

Post on 26-Jan-2015

109 views

Category:

Technology


1 download

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/vipowershell

TRANSCRIPT

Page 1: San Diego VMUG Oct 2009

vSphere PowerCLIThe best tool for automating vSphere

http://vmware.com/go/powercli

Page 2: San Diego VMUG Oct 2009

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

Page 3: San Diego VMUG Oct 2009

SDVMUG October 2009 A brief intro to PowerCLI. Reporting with PowerCLI. VM Provisioning and Lifecycle. Storage Management. Q + A.

http://vmware.com/go/powercli

Page 4: San Diego VMUG Oct 2009

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

Page 5: San Diego VMUG Oct 2009

PowerCLI Supports: ESX 3.0+ VirtualCenter/vCenter 2.0+ Any version of Windows that supports

PowerShell.

http://vmware.com/go/powercli

Page 6: San Diego VMUG Oct 2009

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

Page 7: San Diego VMUG Oct 2009

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

Page 8: San Diego VMUG Oct 2009

DemoA 5 Minute Tour of PowerCLI.

http://vmware.com/go/powercli

Page 9: San Diego VMUG Oct 2009

Reporting 3 Types Of Reporting Inventory

Get-* cmdlets Events

Get-VIEvent Performance

Get-Stat

http://vmware.com/go/powercli

Page 10: San Diego VMUG Oct 2009

DemoReporting

http://vmware.com/go/powercli

Page 11: San Diego VMUG Oct 2009

Just to repeat myself 3 Types Of Reporting Inventory

Get-* cmdlets Events

Get-VIEvent Performance

Get-Stat

http://vmware.com/go/powercli

Page 12: San Diego VMUG Oct 2009

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

Page 13: San Diego VMUG Oct 2009

Storage Management *-Datastore *-ScsiLun *-ScsiLunPath Storage VMotion

http://vmware.com/go/powercli

Page 14: San Diego VMUG Oct 2009

DemoStorage Management (Contains future features)

http://vmware.com/go/powercli

Page 15: San Diego VMUG Oct 2009

Storage: Conclusion PowerCLI makes it easy to:

Provision storage.Report on storage.Diagnose storage problems.

http://vmware.com/go/powercli

Page 16: San Diego VMUG Oct 2009

VM Provisioning New-VM Get-Template Get-OSCustomizationSpec Set-VM

http://vmware.com/go/powercli

Page 17: San Diego VMUG Oct 2009

Demo

VM Provisioning and Lifecycle (Contains future features)

http://vmware.com/go/powercli

Page 18: San Diego VMUG Oct 2009

Provisioning: Conclusion PowerCLI makes provisioning large

numbers of assets very easy.

http://vmware.com/go/powercli

Page 19: San Diego VMUG Oct 2009

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

Page 20: San Diego VMUG Oct 2009

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

Page 21: San Diego VMUG Oct 2009

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

Page 22: San Diego VMUG Oct 2009

http://vmware.com/go/powercli

Page 23: San Diego VMUG Oct 2009

Questions?

Download today: http://vmware.com/go/powercli

http://vmware.com/go/powercli