SlideShare una empresa de Scribd logo
1 de 59
Descargar para leer sin conexión
PowerCLI Best Practices - A Deep Dive
Luc Dekens, Eurocontrol
Alan Renouf, VMware
VSVC4944
#VSVC4944
2
3
Who Are We?
 Alan Renouf –
Sr. Technical Marketing Architect, VMware
• Automation: PowerCLI
• vExpert
• VMware Blog: http://blogs.vmware.com/vipowershell/
• Personal Blog: http://virtu-al.net/
• Twitter: @alanrenouf
 Luc Dekens –
Systems Engineer, Eurocontrol Maastricht
• Personal Blog: http://lucd.info/
• vExpert & PowerShell MVP
• VMTN account: LucD
• Twitter: @Lucd22
4
Introduction
I hope the coffee has kicked in…
5
Background
 We’re back for the 3rd time in a row
• You just cant get enough of PowerCLI!
 No 1 unique solution for a task/problem.
 Some are better
• More performant
• More flexible
 This session shows a number of these, so you don’t have to find
them out yourselves
6
Common PowerCLI Questions
The PowerCLI Community is huge!
This session will make your life easier
(and also full of famous people)
7
Common PowerCLI Questions
The PowerCLI Community is huge!
This session will make you an expert
8
Community Question
I sense a new
force in the galaxy,
what is this PowerCLI ?
9
PowerCLI Overview
 Why PowerCLI?
• PowerShell is universal, easy to use and works with objects
 Why universal?
• The standard on Windows platforms
• Reuse your PowerShell knowledge in different applications
 Easy to use?
• The verb-noun construct in plain English
• Help is available
• Start with minimal set of cmdlets, and grow
 What’s with these objects?
• Think of it as unit that has data and functions
• Objects flow through the pipeline to the next cmdlet
10
PowerCLI Overview – Simple Examples
 Simple to read/write
New-VM –Name VM1 –VMHost MyEsx
 Easy to extend for big(ger) environments
1..10 | Foreach {New-VM –Name VM$_ –VMHost MyEsx}
 Clear, understandable minimal code
Get-Datastore | Select Name,Type,FileSystemVersion
 Access to API covers what is not (yet) there
Get-VMHost |
Select Name,
@{N=“Reboot”;E={$_.ExtensionData.Summary.RebootRequired}}
11
Community Question
I already know
most things…
So what's new in
PowerCLI 5.5 R1?
12
PowerCLI Snap-in’s
 Core
• Managing vSphere
 Image Builder
• Working with Image Profiles
 Auto Deploy
• Deploying ESXi via PXE
 License
• Working with vSphere Licensing
 VDS
• Working with vSphere Distributed Switch
 Cloud
• vCloud Director Providers
 Tenant
• vCloud Director Tenants
Core
Image
Builder
Auto
Deploy
License
Cloud
Tenant
VDS
13
PowerCLI 5.5 R1 - Overview
New Cmdlets to manage vSphere Tags
 Manage Tags in the vSphere environment
 Assign Tags to vSphere Objects
 Remove Tag assignments from vSphere Objects
VDS
 Easy VDS Migration
 Manage Private VLANs
 Manage VDS Policies
 Manage VDS Ports
VM Console
 Open a console for vSphere/vCloud VM
 Open multiple consoles at once
 Output the URL to open VM Consoles
vCloud Director 5.5 Support
 Support for vCD 5.5
Host Licensing
 Assign Host Licensing
14
Community Question
Quit your
jibber jabber, how can I apply
some PowerShell best practices
to PowerCLI, fool!
15
Best Practices
 Store results in variables
• Speed
• Re-use
• Filter on the variables
 Use Get-Help and the Examples –ShowWindow
 Break things down into functions – Don’t forget splatting
 Try/Catch/Throw
 Filter on the left
• Get-Event | Sort Date | Where { $_.Something –eq “5” }
• Get-Event | Where { $_.Something –eq “5” } | Sort Date
 Steal from the best (Lucd.info) and write the rest
 Do not use Write-Host as output, only for output to console
• Use Write-Verbose or Write-Warning
16
Community Question
How do I run these scripts?
17
What Is the Best Way to Run My Script?
 PS1 file / dot source / functions - what does this mean?
 Console (PowerCLI Prompt) / Editor
 Scheduled Task in Windows (add-pssnapin
VMware.vimautomation*)
 vCenter Alert action
• VM Creation – Secure a VM
• Host added to vCenter
 Robust PS Sessions (See demo later)
 WebCommander (Future VMware Fling)
18
Launching the Code
DEMO
19
Community Question
Why is PowerCLI so slow?
20
Why is PowerCLI so Slow?
 Why is PowerCLI slow to launch?
• Load environment
• PowerShell v1, v2, v3 – Caching
 How can I make it even faster?
• Remote session
• Run the Connect-VIServer
• Run a cmdlet
• Disconnect/Reconnect from the session (see demo later)
 Why is PowerCLI slower than a direct API call or other SDK?
• Abstracted Object
• Easier to read code
• Easier to work with / Pipeline Results
• Formulated objects
21
Why is PowerCLI so Slow?
 Making results faster
 Finding the properties you need
• ExtensionData
• New-VIProperty
• Use the Property parameter with Get-View
 Creating a new object
• What to read in the SDK
• How to create it
• Creating the bare frame and filling in what's needed
 Onyx
• How it is helpful
• How it is not helpful
22
Community Question
How do I export my
information?
23
Advanced Reporting
 CSV/TXT/XML
• Use whatever is relevant and saves time
• Think about how you can use the information later
 Export-XLS / Word
• Export-XLS is a function available on LucD.Info which exports straight to Excel
• Including multiple sheets and Graphs
 vCheck
• Community driven script to give you the information you need
• Plugins to add your own checks or remove others for speed
• Change the Style easily
• FREE
• Get Involved!
24
Performance: Advanced, and Fun, Reporting
 The performance data is there, use it!
 How to find the available counters?
 VMware Tools gives access to guest OS metrics
 Data where you don’t expect it, like for example through CIM
 And a picture still says more than 1K words
• Replace your CSV files with nice graphs
• Several options available (XLS, MS Chart…)
• Combining metrics in a graph will bring a point across
 Mapping of vDisks to OS Partitions (The holy grail)
25
Advanced Reporting
DEMO
26
Community Question
How do the newer
versions of PowerShell
make a difference?
27
Use the PowerShell v3 Features
 Use the new CIM cmdlets
• A wealth of information
• Find out what is there (CIM classes)
 Robust sessions
• See the SIW demo later on
 Calling SOAP/REST methods became a lot easier
 Ordered objects
28
CIM Demo
DEMO
29
CIM/SMASH
 See VMware CIM SMASH/Server Management API for ESXi
Documentation
 Result in PNG/PDF/…
30
Server In Waiting
 PowerCLI is great !
 …but do some of these sound familiar ?
• Slow Connect-VIServer
• Slow first cmdlet
• Aligning PowerCLI snapin versions
• Exceptions in big environments
 We did, and we were fed up with those 
31
PS Remoting I
 Use PS Remoting with robust sessions !
 A “work horse” box
 Lots of CPU power & memory (if needed)
 Start a remote session
• Load PowerCLI
• Connect-VIServer
• Execute any PowerCLI cmdlet (JIT)
• Disconnect the remote PSSession
32
PS Remoting II
 Discover with Get-PSSession
 Use Connect-PSSession !
• Connects to robust session
• PowerCLI environment is ready 
 Some drawbacks
• Reconnect  same account
• Sessions tend to get bloated (leaks)
• Some GUIs have a problem (PSP, PowerGUI)
33
PS Remoting III - Schematic
SIW
Session 3
Session 2
Session 1
Server 2012 Core
1
New-PSSession
Disconnect-PSSession
Invoke-Command # PowerCLI environment
2
Get-PSSession
Connect-PSSession
Enter-PSSession
Invoke-Command
34
PS Remoting IV - Gotchas
 Set up PowerCLI in the PSSession
 Pre W2K12 – mind the available memory
35
SIW Demo
DEMO
36
Comparison – Classic vs SIW
Classic SIW
Connect-VIServer 14.6 0
Get-
Datacenter(1st)
5.3 0.1
Get-Datacenter 0.1 0.1
37
Community Question
I'm all about Events,
but how can I use them?
38
Events - What
 Used to record significant state changes of managed entities
 Stored in the vCenter DB
 Retention!
39
Events – Objects - Inheritance
Event VmEvent
VmDeployed
Event
Template srcTemplateCreatedTime
…
vm
EventEx
ExtendedEvent
Arguments
eventTypeId
…
General
Event
message
data
eventTypeId
…
40
Events – Simple Retrieval
 Get-VIEvent
 Attention points
• MaxSamples: default is 100
• Entity: is not recursive
$esx = Get-VMHost -Name ESX1
$start = (Get-Date).AddDays((-1)
Get-VIEvent -MaxSamples ([int]::MaxValue) -Entity $esx -Start $start
41
Events – Filtering I
 Get-VIEvent has limited filters
 Use a Where-clause on all returned objects
• Filtering done on your machine !
$esx = Get-VMHost -Name ESX1
$start = (Get-Date).AddDays((-1)
Get-VIEvent -MaxSamples ([int]::MaxValue) -Entity $esx -Start $start |
Where {$_ -is [VMware.Vim.VmDeployed]}
42
Events Demo I
DEMO
43
Events – Filtering II
 Use EventHistoryCollector
• Filtering on vSphere Server
• More filtering options
$esx = Get-VMHost -Name ESX1
$start = (Get-Date).AddDays((-1)
Get-VIEventPlus -Entity $esx -Start $start -EventType “VmDeployed”
Up to 80 times faster !
44
Events Demo II
DEMO
45
Events – Which One ?
 The ‘regular’ events are in the SDK Reference
 Other, go via EventManager
 Or, use the Event-O-Matic !
46
Events Demo III
DEMO
47
Community Question
This stuff is MAGIC
How do I take it further?
48
Integration Next Steps
 PowerShell has many Snapins/Modules and doesn’t care what the
technology is
• Microsoft
• CIM Cmdlets / Active Directory Cmdlets / Windows Cmdlets
• 3rd Party
• NetApp / PernixData
 Rest API
• Invoke-RestMethod
• Invoke-Webrequest
 Read from files
• XML
• CSV
• TXT
49
Further Automation of your Day to Day Tasks
 Do you do the same thing every day?
• Snapshot a VM to make sure its ok
 Do you love documentation?
• PowerGUI Export / PowerGUI Reports / Export to Word / Export-XLS
• CIM Demo
 Module for vShield
• REST API
 Other VMware products with Automation (Automation Triangle)
 Built-in with policies  1st choice
 Orchestration/workflows  integration
 Scripts  quick solutions
 Andy Troup blog article: http://url.vmware.com/j2g5
50
Community Question
Where do I go now?
51
Where Do I Go Now
 Community
 Official PowerCLI Blog
 External PowerCLI Blogs
 New Developer Network
 Books
 Trainsignal Videos
52
Take Aways
1. PowerCLI, a quick and easy tool for automating your “vTasks”
2. Take PowerCLI and Automation to the next level
3. Automating the components you didn’t think were possible
4. Combine everything you have learned
53
PowerCLI Summary
Additional Resources and references
 PowerCLI Blog - http://blogs.vmware.com/vipowershell/
 PowerCLI Download - http://vmware.com/go/PowerCLI
 PowerCLI Documentation - http://vmware.com/support/developer/PowerCLI/
 PowerShell Performance - http://powershell.com/cs/blogs/donjones/archive/2012/05/07/powershell-
performance-it-s-the-dlr.aspx
 Detailed PowerCLI cmdlet reference with examples -
http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/index.html
 PowerCLI Community -
http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli?view=discussions
 vSphere Automation Blog - http://blogs.vmware.com/vsphere/automation/
 Luc Dekens Blog – http://Lucd.info
 Alan Renoufs Blog – http://virtu-al.net
 Google ”PowerCLI”
54
VMware vSphere™ PowerCLI
55
What Else Do You Want from PowerCLI ?
Before you ask,
no I don’t know who this is!
@alanrenouf and @LucD22
#VSVC4944
Q&A
Winners will be tweeted
back by me during VMworld
Tweet a comment about this session to win!
56
Other VMware Activities Related to This Session
 HOL:
HOL-SDC-1307
vCloud Automation Solutions
 Group Discussions:
VSVC1005-GD
PowerCLI and Automation with Alan Renouf
THANK YOU
PowerCLI Best Practices - A Deep Dive
Luc Dekens, Eurocontrol
Alan Renouf, VMware
VSVC4944
#VSVC4944

Más contenido relacionado

La actualidad más candente

VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...VMworld
 
VMware vSphere 5.1 - Upgrade Tips & Top New Features
VMware vSphere 5.1 - Upgrade Tips & Top New FeaturesVMware vSphere 5.1 - Upgrade Tips & Top New Features
VMware vSphere 5.1 - Upgrade Tips & Top New Featuresstcroixsolutions
 
VMworld 2015: Managing vSphere 6 Deployments and Upgrades
VMworld 2015: Managing vSphere 6 Deployments and Upgrades VMworld 2015: Managing vSphere 6 Deployments and Upgrades
VMworld 2015: Managing vSphere 6 Deployments and Upgrades VMworld
 
VMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf
 
VMware View Failover - SOLVED
VMware View Failover - SOLVEDVMware View Failover - SOLVED
VMware View Failover - SOLVEDAlar Kuuda
 
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 VMworld
 
V sphere automation_vlaxa_2017
V sphere automation_vlaxa_2017V sphere automation_vlaxa_2017
V sphere automation_vlaxa_2017Vladan Laxa
 
WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...
WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...
WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...WinOps Conf
 
07 automate windowsenvironmentswithansibleanddsc
07 automate windowsenvironmentswithansibleanddsc07 automate windowsenvironmentswithansibleanddsc
07 automate windowsenvironmentswithansibleanddscKhairul Zebua
 
four issues I encountered deploying vCenter and SRM 5.5 in a Windows environment
four issues I encountered deploying vCenter and SRM 5.5 in a Windows environmentfour issues I encountered deploying vCenter and SRM 5.5 in a Windows environment
four issues I encountered deploying vCenter and SRM 5.5 in a Windows environmentAngelo Luciani
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionColdFusionConference
 
Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19dvillaco
 
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...CodeMill digital skills
 
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?Eberhard Wolff
 
Whats new in ws2016 Hyper-V with Aidan Finn
Whats new in ws2016 Hyper-V with Aidan FinnWhats new in ws2016 Hyper-V with Aidan Finn
Whats new in ws2016 Hyper-V with Aidan FinnJohn Moran
 
In The Trenches With Tomster, Upgrading Ember.js & Ember Data
In The Trenches With Tomster, Upgrading Ember.js & Ember DataIn The Trenches With Tomster, Upgrading Ember.js & Ember Data
In The Trenches With Tomster, Upgrading Ember.js & Ember DataStacy London
 
OpenStack vs VMware vCloud
OpenStack vs VMware vCloudOpenStack vs VMware vCloud
OpenStack vs VMware vCloudRoozbeh Shafiee
 
Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...
Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...
Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...Blue Medora
 

La actualidad más candente (20)

VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
VMworld 2013: vSphere UI Platform Best Practices: Putting the Web Client SDK ...
 
VMware vSphere 5.1 - Upgrade Tips & Top New Features
VMware vSphere 5.1 - Upgrade Tips & Top New FeaturesVMware vSphere 5.1 - Upgrade Tips & Top New Features
VMware vSphere 5.1 - Upgrade Tips & Top New Features
 
VMworld 2015: Managing vSphere 6 Deployments and Upgrades
VMworld 2015: Managing vSphere 6 Deployments and Upgrades VMworld 2015: Managing vSphere 6 Deployments and Upgrades
VMworld 2015: Managing vSphere 6 Deployments and Upgrades
 
VMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical WalkthroughVMworld 2013: vSphere Web Client - Technical Walkthrough
VMworld 2013: vSphere Web Client - Technical Walkthrough
 
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSCWinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
WinOps Conf 2016 - Ed Wilson - Configuration Management with Azure DSC
 
VMware View Failover - SOLVED
VMware View Failover - SOLVEDVMware View Failover - SOLVED
VMware View Failover - SOLVED
 
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
 
V sphere automation_vlaxa_2017
V sphere automation_vlaxa_2017V sphere automation_vlaxa_2017
V sphere automation_vlaxa_2017
 
WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...
WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...
WinOps Conf 2016 - Richard Siddaway - DevOps With Nano Server and Windows Con...
 
07 automate windowsenvironmentswithansibleanddsc
07 automate windowsenvironmentswithansibleanddsc07 automate windowsenvironmentswithansibleanddsc
07 automate windowsenvironmentswithansibleanddsc
 
four issues I encountered deploying vCenter and SRM 5.5 in a Windows environment
four issues I encountered deploying vCenter and SRM 5.5 in a Windows environmentfour issues I encountered deploying vCenter and SRM 5.5 in a Windows environment
four issues I encountered deploying vCenter and SRM 5.5 in a Windows environment
 
Load Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusionLoad Balancing, Failover and Scalability with ColdFusion
Load Balancing, Failover and Scalability with ColdFusion
 
Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19Ansible automation sa technical deck q2 fy19
Ansible automation sa technical deck q2 fy19
 
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
Containerisation Hack of a Legacy Software Solution - Alex Carter - CodeMill ...
 
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
Infrastructure for Continuous Delivery & Microservices: PaaS or Docker?
 
Hidden gems in cf2016
Hidden gems in cf2016Hidden gems in cf2016
Hidden gems in cf2016
 
Whats new in ws2016 Hyper-V with Aidan Finn
Whats new in ws2016 Hyper-V with Aidan FinnWhats new in ws2016 Hyper-V with Aidan Finn
Whats new in ws2016 Hyper-V with Aidan Finn
 
In The Trenches With Tomster, Upgrading Ember.js & Ember Data
In The Trenches With Tomster, Upgrading Ember.js & Ember DataIn The Trenches With Tomster, Upgrading Ember.js & Ember Data
In The Trenches With Tomster, Upgrading Ember.js & Ember Data
 
OpenStack vs VMware vCloud
OpenStack vs VMware vCloudOpenStack vs VMware vCloud
OpenStack vs VMware vCloud
 
Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...
Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...
Enabling Oracle EM12c-based MWaaS on VMware with the Blue Medora Plugin for V...
 

Similar a VMworld 2013: PowerCLI Best Practices - A Deep Dive

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 DiveVMworld
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementSharkrit JOBBO
 
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...VMworld
 
2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQLScott Sutherland
 
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...VMworld
 
VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager
VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery ManagerVMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager
VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery ManagerVMworld
 
Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"Ajeet Singh Raina
 
Automating the VMware Virtual Datacenter
Automating the VMware Virtual DatacenterAutomating the VMware Virtual Datacenter
Automating the VMware Virtual DatacenterJosh Atwell
 
Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OSJulian Dunn
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitsolarisyougood
 
Introducing PowerShell 3.0
Introducing PowerShell 3.0Introducing PowerShell 3.0
Introducing PowerShell 3.0Jan Egil Ring
 
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...VMworld
 
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopersBryan Cafferky
 
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld
 
MT46 Virtualization Integration with Unity
MT46 Virtualization Integration with UnityMT46 Virtualization Integration with Unity
MT46 Virtualization Integration with UnityDell EMC World
 
Primend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilve
Primend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilvePrimend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilve
Primend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilvePrimend
 
VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started
VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started
VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started VMworld
 
Presentation cloupia product overview and demo
Presentation   cloupia product overview and demoPresentation   cloupia product overview and demo
Presentation cloupia product overview and demoxKinAnx
 

Similar a VMworld 2013: PowerCLI Best Practices - A Deep Dive (20)

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
 
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
VMworld 2016: Getting Started with PowerShell and PowerCLI for Your VMware En...
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
VMworld 2015: Day to Day Automation of VMware Products to Increase Productivi...
 
2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL
 
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
VMworld 2013: Troubleshooting at Cox Communications with VMware vCenter Log I...
 
VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager
VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery ManagerVMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager
VMworld 2013: Three Quirky Ways to Simplify DR with VMware Site Recovery Manager
 
Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"Say Bye to VMware PowerCLI ! Time to "GOVC"
Say Bye to VMware PowerCLI ! Time to "GOVC"
 
Automating the VMware Virtual Datacenter
Automating the VMware Virtual DatacenterAutomating the VMware Virtual Datacenter
Automating the VMware Virtual Datacenter
 
Automating That "Other" OS
Automating That "Other" OSAutomating That "Other" OS
Automating That "Other" OS
 
V mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kitV mware v center orchestrator 5.5 knowledge transfer kit
V mware v center orchestrator 5.5 knowledge transfer kit
 
Introducing PowerShell 3.0
Introducing PowerShell 3.0Introducing PowerShell 3.0
Introducing PowerShell 3.0
 
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...
 
VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6VMworld 2015: Troubleshooting for vSphere 6
VMworld 2015: Troubleshooting for vSphere 6
 
PowerShellForDBDevelopers
PowerShellForDBDevelopersPowerShellForDBDevelopers
PowerShellForDBDevelopers
 
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
VMworld 2013: Keep it Simple and Integrated - Out-of the Box Cross-System Aut...
 
MT46 Virtualization Integration with Unity
MT46 Virtualization Integration with UnityMT46 Virtualization Integration with Unity
MT46 Virtualization Integration with Unity
 
Primend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilve
Primend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilvePrimend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilve
Primend praktiline pilveseminar 2014 - Simplivity Omnicube, esimene samm pilve
 
VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started
VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started
VMworld 2013: Automating the Software Defined Data Center: How Do I Get Started
 
Presentation cloupia product overview and demo
Presentation   cloupia product overview and demoPresentation   cloupia product overview and demo
Presentation cloupia product overview and demo
 

Más de VMworld

VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld
 
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld
 
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld
 
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld
 
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld
 
VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld
 
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld
 
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld
 
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld
 
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld
 
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld
 
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld
 
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld
 
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld
 
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld
 
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld
 
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld
 
VMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2015: Virtual Volumes Technical Deep DiveVMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2015: Virtual Volumes Technical Deep DiveVMworld
 
VMworld 2015: Networking Virtual SAN's Backbone
VMworld 2015: Networking Virtual SAN's BackboneVMworld 2015: Networking Virtual SAN's Backbone
VMworld 2015: Networking Virtual SAN's BackboneVMworld
 

Más de VMworld (20)

VMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep DiveVMworld 2016: vSphere 6.x Host Resource Deep Dive
VMworld 2016: vSphere 6.x Host Resource Deep Dive
 
VMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for HorizonVMworld 2016: Troubleshooting 101 for Horizon
VMworld 2016: Troubleshooting 101 for Horizon
 
VMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSXVMworld 2016: Advanced Network Services with NSX
VMworld 2016: Advanced Network Services with NSX
 
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco InfrastructureVMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
VMworld 2016: How to Deploy VMware NSX with Cisco Infrastructure
 
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI AutomationVMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
VMworld 2016: Enforcing a vSphere Cluster Design with PowerCLI Automation
 
VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7VMworld 2016: What's New with Horizon 7
VMworld 2016: What's New with Horizon 7
 
VMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep DiveVMworld 2016: Virtual Volumes Technical Deep Dive
VMworld 2016: Virtual Volumes Technical Deep Dive
 
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
VMworld 2016: Advances in Remote Display Protocol Technology with VMware Blas...
 
VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations! VMworld 2016: The KISS of vRealize Operations!
VMworld 2016: The KISS of vRealize Operations!
 
VMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts PanelVMworld 2016: Ask the vCenter Server Exerts Panel
VMworld 2016: Ask the vCenter Server Exerts Panel
 
VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way! VMworld 2016: Virtualize Active Directory, the Right Way!
VMworld 2016: Virtualize Active Directory, the Right Way!
 
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
VMworld 2016: Migrating from a hardware based firewall to NSX to improve perf...
 
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
VMworld 2015: Monitoring and Managing Applications with vRealize Operations 6...
 
VMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphereVMworld 2015: Advanced SQL Server on vSphere
VMworld 2015: Advanced SQL Server on vSphere
 
VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!VMworld 2015: Virtualize Active Directory, the Right Way!
VMworld 2015: Virtualize Active Directory, the Right Way!
 
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
VMworld 2015: Site Recovery Manager and Policy Based DR Deep Dive with Engine...
 
VMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SANVMworld 2015: Building a Business Case for Virtual SAN
VMworld 2015: Building a Business Case for Virtual SAN
 
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes ConfigurationsVMworld 2015: Explaining Advanced Virtual Volumes Configurations
VMworld 2015: Explaining Advanced Virtual Volumes Configurations
 
VMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2015: Virtual Volumes Technical Deep DiveVMworld 2015: Virtual Volumes Technical Deep Dive
VMworld 2015: Virtual Volumes Technical Deep Dive
 
VMworld 2015: Networking Virtual SAN's Backbone
VMworld 2015: Networking Virtual SAN's BackboneVMworld 2015: Networking Virtual SAN's Backbone
VMworld 2015: Networking Virtual SAN's Backbone
 

Último

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 

Último (20)

TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptxThe Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
The Fit for Passkeys for Employee and Consumer Sign-ins: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 

VMworld 2013: PowerCLI Best Practices - A Deep Dive

  • 1. PowerCLI Best Practices - A Deep Dive Luc Dekens, Eurocontrol Alan Renouf, VMware VSVC4944 #VSVC4944
  • 2. 2
  • 3. 3 Who Are We?  Alan Renouf – Sr. Technical Marketing Architect, VMware • Automation: PowerCLI • vExpert • VMware Blog: http://blogs.vmware.com/vipowershell/ • Personal Blog: http://virtu-al.net/ • Twitter: @alanrenouf  Luc Dekens – Systems Engineer, Eurocontrol Maastricht • Personal Blog: http://lucd.info/ • vExpert & PowerShell MVP • VMTN account: LucD • Twitter: @Lucd22
  • 4. 4 Introduction I hope the coffee has kicked in…
  • 5. 5 Background  We’re back for the 3rd time in a row • You just cant get enough of PowerCLI!  No 1 unique solution for a task/problem.  Some are better • More performant • More flexible  This session shows a number of these, so you don’t have to find them out yourselves
  • 6. 6 Common PowerCLI Questions The PowerCLI Community is huge! This session will make your life easier (and also full of famous people)
  • 7. 7 Common PowerCLI Questions The PowerCLI Community is huge! This session will make you an expert
  • 8. 8 Community Question I sense a new force in the galaxy, what is this PowerCLI ?
  • 9. 9 PowerCLI Overview  Why PowerCLI? • PowerShell is universal, easy to use and works with objects  Why universal? • The standard on Windows platforms • Reuse your PowerShell knowledge in different applications  Easy to use? • The verb-noun construct in plain English • Help is available • Start with minimal set of cmdlets, and grow  What’s with these objects? • Think of it as unit that has data and functions • Objects flow through the pipeline to the next cmdlet
  • 10. 10 PowerCLI Overview – Simple Examples  Simple to read/write New-VM –Name VM1 –VMHost MyEsx  Easy to extend for big(ger) environments 1..10 | Foreach {New-VM –Name VM$_ –VMHost MyEsx}  Clear, understandable minimal code Get-Datastore | Select Name,Type,FileSystemVersion  Access to API covers what is not (yet) there Get-VMHost | Select Name, @{N=“Reboot”;E={$_.ExtensionData.Summary.RebootRequired}}
  • 11. 11 Community Question I already know most things… So what's new in PowerCLI 5.5 R1?
  • 12. 12 PowerCLI Snap-in’s  Core • Managing vSphere  Image Builder • Working with Image Profiles  Auto Deploy • Deploying ESXi via PXE  License • Working with vSphere Licensing  VDS • Working with vSphere Distributed Switch  Cloud • vCloud Director Providers  Tenant • vCloud Director Tenants Core Image Builder Auto Deploy License Cloud Tenant VDS
  • 13. 13 PowerCLI 5.5 R1 - Overview New Cmdlets to manage vSphere Tags  Manage Tags in the vSphere environment  Assign Tags to vSphere Objects  Remove Tag assignments from vSphere Objects VDS  Easy VDS Migration  Manage Private VLANs  Manage VDS Policies  Manage VDS Ports VM Console  Open a console for vSphere/vCloud VM  Open multiple consoles at once  Output the URL to open VM Consoles vCloud Director 5.5 Support  Support for vCD 5.5 Host Licensing  Assign Host Licensing
  • 14. 14 Community Question Quit your jibber jabber, how can I apply some PowerShell best practices to PowerCLI, fool!
  • 15. 15 Best Practices  Store results in variables • Speed • Re-use • Filter on the variables  Use Get-Help and the Examples –ShowWindow  Break things down into functions – Don’t forget splatting  Try/Catch/Throw  Filter on the left • Get-Event | Sort Date | Where { $_.Something –eq “5” } • Get-Event | Where { $_.Something –eq “5” } | Sort Date  Steal from the best (Lucd.info) and write the rest  Do not use Write-Host as output, only for output to console • Use Write-Verbose or Write-Warning
  • 16. 16 Community Question How do I run these scripts?
  • 17. 17 What Is the Best Way to Run My Script?  PS1 file / dot source / functions - what does this mean?  Console (PowerCLI Prompt) / Editor  Scheduled Task in Windows (add-pssnapin VMware.vimautomation*)  vCenter Alert action • VM Creation – Secure a VM • Host added to vCenter  Robust PS Sessions (See demo later)  WebCommander (Future VMware Fling)
  • 19. 19 Community Question Why is PowerCLI so slow?
  • 20. 20 Why is PowerCLI so Slow?  Why is PowerCLI slow to launch? • Load environment • PowerShell v1, v2, v3 – Caching  How can I make it even faster? • Remote session • Run the Connect-VIServer • Run a cmdlet • Disconnect/Reconnect from the session (see demo later)  Why is PowerCLI slower than a direct API call or other SDK? • Abstracted Object • Easier to read code • Easier to work with / Pipeline Results • Formulated objects
  • 21. 21 Why is PowerCLI so Slow?  Making results faster  Finding the properties you need • ExtensionData • New-VIProperty • Use the Property parameter with Get-View  Creating a new object • What to read in the SDK • How to create it • Creating the bare frame and filling in what's needed  Onyx • How it is helpful • How it is not helpful
  • 22. 22 Community Question How do I export my information?
  • 23. 23 Advanced Reporting  CSV/TXT/XML • Use whatever is relevant and saves time • Think about how you can use the information later  Export-XLS / Word • Export-XLS is a function available on LucD.Info which exports straight to Excel • Including multiple sheets and Graphs  vCheck • Community driven script to give you the information you need • Plugins to add your own checks or remove others for speed • Change the Style easily • FREE • Get Involved!
  • 24. 24 Performance: Advanced, and Fun, Reporting  The performance data is there, use it!  How to find the available counters?  VMware Tools gives access to guest OS metrics  Data where you don’t expect it, like for example through CIM  And a picture still says more than 1K words • Replace your CSV files with nice graphs • Several options available (XLS, MS Chart…) • Combining metrics in a graph will bring a point across  Mapping of vDisks to OS Partitions (The holy grail)
  • 26. 26 Community Question How do the newer versions of PowerShell make a difference?
  • 27. 27 Use the PowerShell v3 Features  Use the new CIM cmdlets • A wealth of information • Find out what is there (CIM classes)  Robust sessions • See the SIW demo later on  Calling SOAP/REST methods became a lot easier  Ordered objects
  • 29. 29 CIM/SMASH  See VMware CIM SMASH/Server Management API for ESXi Documentation  Result in PNG/PDF/…
  • 30. 30 Server In Waiting  PowerCLI is great !  …but do some of these sound familiar ? • Slow Connect-VIServer • Slow first cmdlet • Aligning PowerCLI snapin versions • Exceptions in big environments  We did, and we were fed up with those 
  • 31. 31 PS Remoting I  Use PS Remoting with robust sessions !  A “work horse” box  Lots of CPU power & memory (if needed)  Start a remote session • Load PowerCLI • Connect-VIServer • Execute any PowerCLI cmdlet (JIT) • Disconnect the remote PSSession
  • 32. 32 PS Remoting II  Discover with Get-PSSession  Use Connect-PSSession ! • Connects to robust session • PowerCLI environment is ready   Some drawbacks • Reconnect  same account • Sessions tend to get bloated (leaks) • Some GUIs have a problem (PSP, PowerGUI)
  • 33. 33 PS Remoting III - Schematic SIW Session 3 Session 2 Session 1 Server 2012 Core 1 New-PSSession Disconnect-PSSession Invoke-Command # PowerCLI environment 2 Get-PSSession Connect-PSSession Enter-PSSession Invoke-Command
  • 34. 34 PS Remoting IV - Gotchas  Set up PowerCLI in the PSSession  Pre W2K12 – mind the available memory
  • 36. 36 Comparison – Classic vs SIW Classic SIW Connect-VIServer 14.6 0 Get- Datacenter(1st) 5.3 0.1 Get-Datacenter 0.1 0.1
  • 37. 37 Community Question I'm all about Events, but how can I use them?
  • 38. 38 Events - What  Used to record significant state changes of managed entities  Stored in the vCenter DB  Retention!
  • 39. 39 Events – Objects - Inheritance Event VmEvent VmDeployed Event Template srcTemplateCreatedTime … vm EventEx ExtendedEvent Arguments eventTypeId … General Event message data eventTypeId …
  • 40. 40 Events – Simple Retrieval  Get-VIEvent  Attention points • MaxSamples: default is 100 • Entity: is not recursive $esx = Get-VMHost -Name ESX1 $start = (Get-Date).AddDays((-1) Get-VIEvent -MaxSamples ([int]::MaxValue) -Entity $esx -Start $start
  • 41. 41 Events – Filtering I  Get-VIEvent has limited filters  Use a Where-clause on all returned objects • Filtering done on your machine ! $esx = Get-VMHost -Name ESX1 $start = (Get-Date).AddDays((-1) Get-VIEvent -MaxSamples ([int]::MaxValue) -Entity $esx -Start $start | Where {$_ -is [VMware.Vim.VmDeployed]}
  • 43. 43 Events – Filtering II  Use EventHistoryCollector • Filtering on vSphere Server • More filtering options $esx = Get-VMHost -Name ESX1 $start = (Get-Date).AddDays((-1) Get-VIEventPlus -Entity $esx -Start $start -EventType “VmDeployed” Up to 80 times faster !
  • 45. 45 Events – Which One ?  The ‘regular’ events are in the SDK Reference  Other, go via EventManager  Or, use the Event-O-Matic !
  • 47. 47 Community Question This stuff is MAGIC How do I take it further?
  • 48. 48 Integration Next Steps  PowerShell has many Snapins/Modules and doesn’t care what the technology is • Microsoft • CIM Cmdlets / Active Directory Cmdlets / Windows Cmdlets • 3rd Party • NetApp / PernixData  Rest API • Invoke-RestMethod • Invoke-Webrequest  Read from files • XML • CSV • TXT
  • 49. 49 Further Automation of your Day to Day Tasks  Do you do the same thing every day? • Snapshot a VM to make sure its ok  Do you love documentation? • PowerGUI Export / PowerGUI Reports / Export to Word / Export-XLS • CIM Demo  Module for vShield • REST API  Other VMware products with Automation (Automation Triangle)  Built-in with policies  1st choice  Orchestration/workflows  integration  Scripts  quick solutions  Andy Troup blog article: http://url.vmware.com/j2g5
  • 51. 51 Where Do I Go Now  Community  Official PowerCLI Blog  External PowerCLI Blogs  New Developer Network  Books  Trainsignal Videos
  • 52. 52 Take Aways 1. PowerCLI, a quick and easy tool for automating your “vTasks” 2. Take PowerCLI and Automation to the next level 3. Automating the components you didn’t think were possible 4. Combine everything you have learned
  • 53. 53 PowerCLI Summary Additional Resources and references  PowerCLI Blog - http://blogs.vmware.com/vipowershell/  PowerCLI Download - http://vmware.com/go/PowerCLI  PowerCLI Documentation - http://vmware.com/support/developer/PowerCLI/  PowerShell Performance - http://powershell.com/cs/blogs/donjones/archive/2012/05/07/powershell- performance-it-s-the-dlr.aspx  Detailed PowerCLI cmdlet reference with examples - http://www.vmware.com/support/developer/PowerCLI/PowerCLI501/html/index.html  PowerCLI Community - http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/powercli?view=discussions  vSphere Automation Blog - http://blogs.vmware.com/vsphere/automation/  Luc Dekens Blog – http://Lucd.info  Alan Renoufs Blog – http://virtu-al.net  Google ”PowerCLI”
  • 55. 55 What Else Do You Want from PowerCLI ? Before you ask, no I don’t know who this is! @alanrenouf and @LucD22 #VSVC4944 Q&A Winners will be tweeted back by me during VMworld Tweet a comment about this session to win!
  • 56. 56 Other VMware Activities Related to This Session  HOL: HOL-SDC-1307 vCloud Automation Solutions  Group Discussions: VSVC1005-GD PowerCLI and Automation with Alan Renouf
  • 58.
  • 59. PowerCLI Best Practices - A Deep Dive Luc Dekens, Eurocontrol Alan Renouf, VMware VSVC4944 #VSVC4944