SlideShare ist ein Scribd-Unternehmen logo
1 von 22
PowerCLI Workshop London VMUG Jonathan Medd
Je ne suis pas Alan Renouf Today’s theme is simple and practical examples to improve the management of your VMware Infrastructure What’s New? Reporting Useful One-Liners / Short Scripts Project Onyx VESI
Buy this book Two ebook copies to give away to those who ask / answer questions
You should also get this Practical PowerCLI examples side-by-side vSphere topics
PowerCLI 4.0 U1 is out! More than 60 new cmdlets since the last release earlier this year Cmdlet reference is now online - http://bit.ly/6Cx1s7 vSpherePowerCLI Administration Guide   http://bit.ly/08iWLQK Virtu-Al’s summary of the new cmdlets http://bit.ly/8KMGdg
A few of the new cmdlets Set-PowerCLIConfiguration -DefaultServerMode multiple Stop-VMHost Server01 -Confirm (or      –whatif) ;-)  Set-HardDisk -HardDisk $hd -CapacityKB $extendedCapacity -HostCredential $ hostCred -GuestCredential $guestCred
PowerShell 2.0 is out! More than 100 new cmdlets since v1.0 Installed by default in Windows 7 / Server 2008 R2 New features: Remoting, Advanced Functions, Background Jobs, ISE
vCheck (Daily Report)  Schedule this report to run every day in your environment Have a person dedicated to working through highlighted issues each day – if possible rotate between team members, say weekly http://bit.ly/24KTGe
vCheck
vCheck – New in V3
vCheck Examples - Snapshots Do you know every old Snapshot you have? Hassle the Snapshot Creator Manage those which are required to be kept
vCheck Examples – Too Many CPU’s Weren’t aware of these until they turned up in the daily report Could potentially cause some unnecessary high CPU %RDY times All now down to 2 x vCPU
vCheck Examples – VM’s on Local Storage Often created ‘temporarily’ whilst waiting for SAN space. Still there months later. Could effect host maintenance since can’t be VMotioned
Find Host Version and Build Get-VMHost | Get-View | Select-Object Name, @{N="Version";E={$_.config.product.version}}, @{N="Build";E={$_.config.product.build}} | Sort-Object Name | Export-CsvC:criptsosts.csv -NoTypeInformation Demo: Get-View Exploring
Who’s seen one of these? Or three in one month? Three different servers, same model, same ESX version, same CPU error
Find Vendor, Model and Bios Get-VMHost | Get-View | Select-Object Name, @{N="Vendor";E={$_.summary.hardware.vendor}}, @{N="Model";E={$_.summary.hardware.model}}, @{N="Bios Version";E={$_.hardware.biosinfo.biosversion}}, @{N="Release Date";E={$_.hardware.biosinfo.releasedate}} | Sort-Object Name | Export-Csv C:criptsios.csv -NoTypeInformation Note: Some vendors don’t seem to be populating this information for all models
SVMotion Moved entire production infrastructure between SAN’s in different data centres with no downtime simply by scheduling these commands Get-VM Server01 | Move-VM –Datastore (Get-DataStore Datastore10) Combine with Import-CSV to make it even easier for large batches Watch out for VM’s with multiple disks in different datastores if you have multiple target datastores
Slot Size What are ESX Slot Sizes? ‘Prevent VMs from being powered on if they violate availability constraints’ Cluster with seemingly plenty of capacity won’t power on VM’s. Watch out for ‘expensive’ VM’s with CPU or Memory reservations, and / or vSMP
Slot Size Code
Project Onyx from PowerCLI team Currently in Alpha Think Macro Recorder for Excel Best for automating things that can’t be automated using native PowerCLI cmdlets Beats having to read the API documentation Project Onyx Demo
The VESI  Offshoot from Quest PowerGUI tool PowerShell scripts bundled up into a GUI interface Great for beginners to use PowerShell scripts before getting to grips with writing your own Great for more advanced scripters wishing to share code VESI Demo
Resources http://blogs.vmware.com/vipowershell/ http://www.virtu-al.net/ http://lucd.info/ PowerCLI community forum http://bit.ly/6BwTUS

Weitere ähnliche Inhalte

Was ist angesagt?

VMware compute driver for OpenStack
VMware compute driver for OpenStackVMware compute driver for OpenStack
VMware compute driver for OpenStack
openstackindia
 
Automated Web App Performance Testing Using WebDriver
Automated Web App Performance Testing Using WebDriverAutomated Web App Performance Testing Using WebDriver
Automated Web App Performance Testing Using WebDriver
seleniumconf
 

Was ist angesagt? (20)

Recapture Disk Space in Agile PLM
Recapture Disk Space in Agile PLM Recapture Disk Space in Agile PLM
Recapture Disk Space in Agile PLM
 
Top 10 RxJs Operators in Angular
Top 10 RxJs Operators in Angular Top 10 RxJs Operators in Angular
Top 10 RxJs Operators in Angular
 
NodeHack #2 - MVP
NodeHack #2 - MVPNodeHack #2 - MVP
NodeHack #2 - MVP
 
Performance tests with gatling
Performance tests with gatlingPerformance tests with gatling
Performance tests with gatling
 
VMware compute driver for OpenStack
VMware compute driver for OpenStackVMware compute driver for OpenStack
VMware compute driver for OpenStack
 
Quartz component in mule
Quartz component in muleQuartz component in mule
Quartz component in mule
 
DSLing your System For Scalability Testing Using Gatling - Dublin Scala User ...
DSLing your System For Scalability Testing Using Gatling - Dublin Scala User ...DSLing your System For Scalability Testing Using Gatling - Dublin Scala User ...
DSLing your System For Scalability Testing Using Gatling - Dublin Scala User ...
 
005. a React project structure
005. a React project structure005. a React project structure
005. a React project structure
 
Mssql to mysql - Anton Ivanov
Mssql to mysql - Anton IvanovMssql to mysql - Anton Ivanov
Mssql to mysql - Anton Ivanov
 
LJC: Microservices in the real world
LJC: Microservices in the real worldLJC: Microservices in the real world
LJC: Microservices in the real world
 
From Web Developer to Hardware Developer
From Web Developer to Hardware DeveloperFrom Web Developer to Hardware Developer
From Web Developer to Hardware Developer
 
Create a custom AutoNumber source
Create a custom AutoNumber sourceCreate a custom AutoNumber source
Create a custom AutoNumber source
 
Automation for Anyone at Nutanix NEXT 2017 US
Automation for Anyone at Nutanix NEXT 2017 USAutomation for Anyone at Nutanix NEXT 2017 US
Automation for Anyone at Nutanix NEXT 2017 US
 
Monitoring Agile PLM with JConsole
Monitoring Agile PLM with JConsole Monitoring Agile PLM with JConsole
Monitoring Agile PLM with JConsole
 
AWS Community Day - Paul Kuliniewicz - CloudHSM: Frustration as a Service
 AWS Community Day - Paul Kuliniewicz - CloudHSM: Frustration as a Service  AWS Community Day - Paul Kuliniewicz - CloudHSM: Frustration as a Service
AWS Community Day - Paul Kuliniewicz - CloudHSM: Frustration as a Service
 
Headless drupal + react js Oleksandr Linyvyi
Headless drupal + react js   Oleksandr LinyvyiHeadless drupal + react js   Oleksandr Linyvyi
Headless drupal + react js Oleksandr Linyvyi
 
Sergejus Barinovas
Sergejus BarinovasSergejus Barinovas
Sergejus Barinovas
 
Automated Web App Performance Testing Using WebDriver
Automated Web App Performance Testing Using WebDriverAutomated Web App Performance Testing Using WebDriver
Automated Web App Performance Testing Using WebDriver
 
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
(DEV310) CI/CD of Services with Mocking & Resiliency Testing Using AWS
 
Docker and jvm. A good idea?
Docker and jvm. A good idea?Docker and jvm. A good idea?
Docker and jvm. A good idea?
 

Andere mochten auch (6)

Automation using power cli
Automation using power cliAutomation using power cli
Automation using power cli
 
Where to start with power cli
Where to start with power cliWhere to start with power cli
Where to start with power cli
 
Professional Help for PowerShell Modules
Professional Help for PowerShell ModulesProfessional Help for PowerShell Modules
Professional Help for PowerShell Modules
 
PowerShell Technical Overview
PowerShell Technical OverviewPowerShell Technical Overview
PowerShell Technical Overview
 
Powershell Training
Powershell TrainingPowershell Training
Powershell Training
 
Covmug v sphere 4.1 what's new
Covmug v sphere 4.1 what's newCovmug v sphere 4.1 what's new
Covmug v sphere 4.1 what's new
 

Ähnlich wie Power Cli Workshop London Vmug

Ähnlich wie Power Cli Workshop London Vmug (20)

Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008Managing VMware with PowerShell - VMworld 2008
Managing VMware with PowerShell - VMworld 2008
 
VMworld 2011 - PowerCLI 101
VMworld 2011 - PowerCLI 101VMworld 2011 - PowerCLI 101
VMworld 2011 - PowerCLI 101
 
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld 2015: Automating Everything VMware with PowerCLI- Deep DiveVMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
VMworld 2015: Automating Everything VMware with PowerCLI- Deep Dive
 
Automating the VMware Virtual Datacenter
Automating the VMware Virtual DatacenterAutomating the VMware Virtual Datacenter
Automating the VMware Virtual Datacenter
 
VMworld 2013: PowerCLI What’s New? Administrating with the CLI Was Never Easier
VMworld 2013: PowerCLI What’s New? Administrating with the CLI Was Never Easier VMworld 2013: PowerCLI What’s New? Administrating with the CLI Was Never Easier
VMworld 2013: PowerCLI What’s New? Administrating with the CLI Was Never Easier
 
WordPress Acceptance Testing, Solved!
WordPress Acceptance Testing, Solved!WordPress Acceptance Testing, Solved!
WordPress Acceptance Testing, Solved!
 
Webpack Encore Symfony Live 2017 San Francisco
Webpack Encore Symfony Live 2017 San FranciscoWebpack Encore Symfony Live 2017 San Francisco
Webpack Encore Symfony Live 2017 San Francisco
 
VMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep DiveVMworld 2013: PowerCLI Best Practices - A Deep Dive
VMworld 2013: PowerCLI Best Practices - A Deep Dive
 
[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development[Bristol WordPress] Supercharging WordPress Development
[Bristol WordPress] Supercharging WordPress Development
 
CertsOut Linux Foundation-CKA Dumps.pdf
CertsOut Linux Foundation-CKA Dumps.pdfCertsOut Linux Foundation-CKA Dumps.pdf
CertsOut Linux Foundation-CKA Dumps.pdf
 
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
VMworld Europe 2014: Taking Reporting and Command Line Automation to the Next...
 
Nashville VMUG Keynote April 8 2015 - vSphere 6
Nashville VMUG Keynote April 8 2015 - vSphere 6Nashville VMUG Keynote April 8 2015 - vSphere 6
Nashville VMUG Keynote April 8 2015 - vSphere 6
 
PowerCLI Workshop
PowerCLI WorkshopPowerCLI Workshop
PowerCLI Workshop
 
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
(ARC402) Deployment Automation: From Developers' Keyboards to End Users' Scre...
 
PowerShell Workshop Series: Session 2
PowerShell Workshop Series: Session 2PowerShell Workshop Series: Session 2
PowerShell Workshop Series: Session 2
 
AWS EC2 tutorial
AWS EC2 tutorialAWS EC2 tutorial
AWS EC2 tutorial
 
PowerShell User Group Hamburg - PowerCLI
PowerShell User Group Hamburg - PowerCLIPowerShell User Group Hamburg - PowerCLI
PowerShell User Group Hamburg - PowerCLI
 
Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019Supercharging WordPress Development - Wordcamp Brighton 2019
Supercharging WordPress Development - Wordcamp Brighton 2019
 
San Diego VMUG Oct 2009
San Diego VMUG Oct 2009San Diego VMUG Oct 2009
San Diego VMUG Oct 2009
 
Managing V Sphere With The Vesi
Managing V Sphere With The VesiManaging V Sphere With The Vesi
Managing V Sphere With The Vesi
 

Mehr von jonathanmedd (6)

Using Ansible and PowerShell Together
Using Ansible and PowerShell TogetherUsing Ansible and PowerShell Together
Using Ansible and PowerShell Together
 
PowerCLI in the Enterprise Breaking the Magicians Code original
PowerCLI in the Enterprise Breaking the Magicians Code   originalPowerCLI in the Enterprise Breaking the Magicians Code   original
PowerCLI in the Enterprise Breaking the Magicians Code original
 
What's New in PowerCLI 5.0
What's New in PowerCLI 5.0What's New in PowerCLI 5.0
What's New in PowerCLI 5.0
 
Save Time With PowerCLI
Save Time With PowerCLISave Time With PowerCLI
Save Time With PowerCLI
 
An Introduction to PowerShell Modules
An Introduction to PowerShell ModulesAn Introduction to PowerShell Modules
An Introduction to PowerShell Modules
 
PowerShell 2 remoting
PowerShell 2 remotingPowerShell 2 remoting
PowerShell 2 remoting
 

Kürzlich hochgeladen

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 

Power Cli Workshop London Vmug

  • 1. PowerCLI Workshop London VMUG Jonathan Medd
  • 2. Je ne suis pas Alan Renouf Today’s theme is simple and practical examples to improve the management of your VMware Infrastructure What’s New? Reporting Useful One-Liners / Short Scripts Project Onyx VESI
  • 3. Buy this book Two ebook copies to give away to those who ask / answer questions
  • 4. You should also get this Practical PowerCLI examples side-by-side vSphere topics
  • 5. PowerCLI 4.0 U1 is out! More than 60 new cmdlets since the last release earlier this year Cmdlet reference is now online - http://bit.ly/6Cx1s7 vSpherePowerCLI Administration Guide http://bit.ly/08iWLQK Virtu-Al’s summary of the new cmdlets http://bit.ly/8KMGdg
  • 6. A few of the new cmdlets Set-PowerCLIConfiguration -DefaultServerMode multiple Stop-VMHost Server01 -Confirm (or –whatif) ;-) Set-HardDisk -HardDisk $hd -CapacityKB $extendedCapacity -HostCredential $ hostCred -GuestCredential $guestCred
  • 7. PowerShell 2.0 is out! More than 100 new cmdlets since v1.0 Installed by default in Windows 7 / Server 2008 R2 New features: Remoting, Advanced Functions, Background Jobs, ISE
  • 8. vCheck (Daily Report) Schedule this report to run every day in your environment Have a person dedicated to working through highlighted issues each day – if possible rotate between team members, say weekly http://bit.ly/24KTGe
  • 10. vCheck – New in V3
  • 11. vCheck Examples - Snapshots Do you know every old Snapshot you have? Hassle the Snapshot Creator Manage those which are required to be kept
  • 12. vCheck Examples – Too Many CPU’s Weren’t aware of these until they turned up in the daily report Could potentially cause some unnecessary high CPU %RDY times All now down to 2 x vCPU
  • 13. vCheck Examples – VM’s on Local Storage Often created ‘temporarily’ whilst waiting for SAN space. Still there months later. Could effect host maintenance since can’t be VMotioned
  • 14. Find Host Version and Build Get-VMHost | Get-View | Select-Object Name, @{N="Version";E={$_.config.product.version}}, @{N="Build";E={$_.config.product.build}} | Sort-Object Name | Export-CsvC:criptsosts.csv -NoTypeInformation Demo: Get-View Exploring
  • 15. Who’s seen one of these? Or three in one month? Three different servers, same model, same ESX version, same CPU error
  • 16. Find Vendor, Model and Bios Get-VMHost | Get-View | Select-Object Name, @{N="Vendor";E={$_.summary.hardware.vendor}}, @{N="Model";E={$_.summary.hardware.model}}, @{N="Bios Version";E={$_.hardware.biosinfo.biosversion}}, @{N="Release Date";E={$_.hardware.biosinfo.releasedate}} | Sort-Object Name | Export-Csv C:criptsios.csv -NoTypeInformation Note: Some vendors don’t seem to be populating this information for all models
  • 17. SVMotion Moved entire production infrastructure between SAN’s in different data centres with no downtime simply by scheduling these commands Get-VM Server01 | Move-VM –Datastore (Get-DataStore Datastore10) Combine with Import-CSV to make it even easier for large batches Watch out for VM’s with multiple disks in different datastores if you have multiple target datastores
  • 18. Slot Size What are ESX Slot Sizes? ‘Prevent VMs from being powered on if they violate availability constraints’ Cluster with seemingly plenty of capacity won’t power on VM’s. Watch out for ‘expensive’ VM’s with CPU or Memory reservations, and / or vSMP
  • 20. Project Onyx from PowerCLI team Currently in Alpha Think Macro Recorder for Excel Best for automating things that can’t be automated using native PowerCLI cmdlets Beats having to read the API documentation Project Onyx Demo
  • 21. The VESI Offshoot from Quest PowerGUI tool PowerShell scripts bundled up into a GUI interface Great for beginners to use PowerShell scripts before getting to grips with writing your own Great for more advanced scripters wishing to share code VESI Demo
  • 22. Resources http://blogs.vmware.com/vipowershell/ http://www.virtu-al.net/ http://lucd.info/ PowerCLI community forum http://bit.ly/6BwTUS