June 2009 PowerCLI Webinar

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

description

 

Transcript of June 2009 PowerCLI Webinar

Page 1: June 2009 PowerCLI Webinar

vSphere PowerCLIThe best tool for automating vSphere

http://vmware.com/go/powercli

Page 2: June 2009 PowerCLI Webinar

Agenda For Today A brief intro to PowerCLI. Performance monitoring. Analyzing logs. Advanced configuration. Reporting. Dealing with ESXi.

http://vmware.com/go/powercli

Page 3: June 2009 PowerCLI Webinar

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 4: June 2009 PowerCLI Webinar

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 5: June 2009 PowerCLI Webinar

Why we automate. “Those who cannot automate are

condemned to repeat themselves.”-- Some Internet person.

Simple things:Automate if you plan to do it 10+ times.

Hard things:Automate if you plan to do it 50+ times.

http://vmware.com/go/powercli

Page 6: June 2009 PowerCLI Webinar

People use PowerCLI to… Synchronize guest and host time. Upgrade VMware Tools without

rebooting. Tune HBA storage paths. More than 300 examples on our

community.http://vmware.com/go/powercli

http://vmware.com/go/powercli

Page 7: June 2009 PowerCLI Webinar

DemoA 5 Minute Tour of PowerCLI.

http://vmware.com/go/powercli

Page 8: June 2009 PowerCLI Webinar

Key Performance Cmdlets Get-StatType Get-StatInterval Get-Stat

http://vmware.com/go/powercli

Page 9: June 2009 PowerCLI Webinar

DemoAnalyzing Performance.

http://vmware.com/go/powercli

Page 10: June 2009 PowerCLI Webinar

Key Logging Cmdlets Get-LogType

Tells you what types of logs are available.vCenter and ESX have different types.

Get-LogReturns lines from log files.-Bundle: Gets all server logs and

diagnostics. VI Toolkit Extensions

Log archival.http://vmware.com/go/powercli

Page 11: June 2009 PowerCLI Webinar

DemoDealing With Logs.

http://vmware.com/go/powercli

Page 12: June 2009 PowerCLI Webinar

Advanced Configuration. Key cmdlets:

Get-VMHostAdvancedConfigurationSet-VMHostAdvancedConfigurationGet-VMHostModuleSet-VMHostModule

http://vmware.com/go/powercli

Page 13: June 2009 PowerCLI Webinar

DemoAdvanced Configuration.

http://vmware.com/go/powercli

Page 14: June 2009 PowerCLI Webinar

Reporting in style with VESI. VESI is a PowerShell-based automation

tool for VM administrators. VESI also has some great reporting

facilities. Find it at http://www.thevesi.org/

http://vmware.com/go/powercli

Page 15: June 2009 PowerCLI Webinar

DemoReporting With Virtualization EcoShell.

http://vmware.com/go/powercli

Page 16: June 2009 PowerCLI Webinar

Dealing With ESXi New in PowerCLI 4.0: Host Profiles

cmdlets.Export-VMHostProfileApply-VMHostProfileWatch the video:

http://vimeo.com/4410391 ESXi configuration scripts in the

community:http://tr.im/nfpb

http://vmware.com/go/powercli

Page 17: June 2009 PowerCLI Webinar

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 18: June 2009 PowerCLI Webinar

Questions?

http://vmware.com/go/powercli