Dutch VMUG 2010 PowerCLI Presentation

1,822 views

Published on

The presentation given at the Dutch VMUG in 2010 by Alan Renouf and Luc Dekens

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,822
On SlideShare
0
From Embeds
0
Number of Embeds
242
Actions
Shares
0
Downloads
60
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Alans Slide
  • Dutch VMUG 2010 PowerCLI Presentation

    1. 1. PowerCLI is for Administrators<br />Luc Dekens<br />Alan Renouf<br />terry.mathew@bell.ca<br />
    2. 2. Who are we ?<br />Alan<br /><ul><li>vExpert 2009 & 2010
    3. 3. EMC vSpecialist
    4. 4. Blog http://www.virtu-al.net/
    5. 5. Podcast http://get-scripting.blogspot.com/</li></ul>Luc<br /><ul><li>vExpert 2009 & 2010
    6. 6. Eurocontrol Maastricht
    7. 7. Blog http://lucd.info/
    8. 8. LucD on the VMTN PowerCLI community</li></li></ul><li>What is PowerShell<br /><ul><li>PowerShell is for System Administrators
    9. 9. PowerShell is the universal language for Windows datacenters
    10. 10. GUI interfaces are single purpose and rigid
    11. 11. Microsoft Common Engineering Criteria program
    12. 12. Cmdlets are in a Verb-Noun format
    13. 13. Microsoft making admin tasks PowerShell enabled
    14. 14. Exchange
    15. 15. SQL Server
    16. 16. IIS 7
    17. 17. More
    18. 18. PowerShell is the Glue between your infrastructure</li></li></ul><li>What is PowerCLI<br /><ul><li>PowerCLI is a Snapin for PowerShell
    19. 19. PowerCLI 4.1 U1 adds 258 cmdlets to PowerShell
    20. 20. PowerCLI is built on the vSphere APIs
    21. 21. PowerCLI is for all your vSphere administration tasks
    22. 22. Active Community: PowerShell and PowerCLI</li></li></ul><li>VMware vSphere PowerCLI Reference: Automating vSphere Administration<br />Introduction1 Automating vCenter Deployment and Configuration<br />2 Automating ESX/ESXi Server Deployment and Configuration<br />3 Automating Storage and Networking<br />4 Using Advanced vSphere Features<br />5 Creating virtual machines<br />6 Templates and Customisation Specifications<br />7 Configuring Virtual Machine Hardware<br />8 Advanced Virtual Machine Features<br />9 Using vApps10 Backup and Restore your Virtual Machines<br />11 Organize your Disaster Recovery12 Hardening the vSphere Environment<br />13 Maintain Security in Your vSphere Environment           <br />14 Report the Status of Your vSphere Environment<br />15 Using Statistical Data <br />16 Monitoring the vSphere Environment<br />17 Auditing the vSphere Environment<br />18 Schedule Automation Scripts<br />19 The SDK<br />20 The Onyx Project    <br />21 PowerGUI and vEcoShell22 PowerWF Studio<br />23 Add a GUI Frontend to Your Automation ScriptsAppendices<br /><ul><li>Luc Dekens
    23. 23. Alan Renouf
    24. 24. Arnim Van Lieshout
    25. 25. Jonathan Medd
    26. 26. Glenn Sizemore
    27. 27. Released early 2011
    28. 28. Today's examples are from the book</li></li></ul><li>Today's Scenario<br />A DR site needs to be setup as our current DC keeps getting snowed in.<br />Our pointy haired manager has bought us a Vblock in a hosted DC and now we need to set it up.<br />We have drawn a quick outline of the things we need to do and automate the process so if things go wrong in live we can minimise the amount of downtime to our production systems.<br />Our Mission is to build a virtual environment in an hour - and show you !<br />
    29. 29. Automating ESX Hosts<br />Initial Config<br /><ul><li>80% - 90% configuration included in installation
    30. 30. Linux Kickstart</li></ul>Post config<br /><ul><li>%post%
    31. 31. Host Profiles (Ent +) - $$$$
    32. 32. PowerCLI
    33. 33. Storage
    34. 34. Networking
    35. 35. Advanced Features</li></ul>DEMO<br />
    36. 36. Automating vCenter<br />The vCenter is a complex structure<br /><ul><li>Datacenters
    37. 37. Folders
    38. 38. Roles
    39. 39. Permissions
    40. 40. Alarms
    41. 41. …</li></ul>DEMO<br />
    42. 42. Folder structure<br />Export-Folders"Blue""DC1""C:BlueFolders.csv"<br />Import-Folders-FolderType"blue"-DC"DC2"`<br />-Filename"C:BlueFolders.csv"<br />
    43. 43. Alarms<br /><ul><li>Alarm = Complex Managed Object
    44. 44. No export/import cmdlets
    45. 45. Serialising/deserialing objects
    46. 46. Simple solution !</li></ul>DEMO<br />
    47. 47. vCenter database backup & restore<br /><ul><li>PowerShell is the universal language !
    48. 48. As part of the migration
    49. 49. … or as a part of your DR procedure</li></ul>DEMO<br />
    50. 50. Automating Virtual Machines<br />Creating Virtual Machines<br /><ul><li>Automated VM Creation
    51. 51. Interaction with the guest OS
    52. 52. WMI
    53. 53. PowerShellRemoting
    54. 54. Invoke-VMScript
    55. 55. Testing VMotion and SVMotion
    56. 56. Move-VM
    57. 57. Backups</li></ul>DEMO<br />
    58. 58. Reporting<br /><ul><li>Is the entry point for most PowerCLI users
    59. 59. Numerous possibilities !
    60. 60. Example: PCI information</li></li></ul><li>Monitoring<br /><ul><li>Most vSphere activity generates events
    61. 61. Normally retro-active
    62. 62. Can be done ‘direct’
    63. 63. Showcase for the integration with WinForms</li></ul>DEMO<br />
    64. 64.
    65. 65. PowerCLI Poster<br /><ul><li> They are big !
    66. 66. Easy to fold</li></li></ul><li>Support and Training<br />VMware vSphere Automation <br />2 day instructor led course, 40% Lecture, 60% hands on lab<br />Available worldwide, use PSO credits<br />http://vmware.com/go/vsphereautomation<br />VMware Scripting and SDK Support<br />Dedicated help when developing scripts / applications<br />Expert API engineers happy to help <br />http://vmware.com/go/sdksupport<br />
    67. 67. Q & A<br /><ul><li>Do you use PowerCLI ?
    68. 68. Why not ?
    69. 69. What is holding you back ?
    70. 70. Are you blocked in a PowerCLI script ?
    71. 71. Do you have tasks you cant do with PowerCLI ?</li>

    ×