SlideShare a Scribd company logo
1 of 26
Download to read offline
vSphere Automation
Vladan Laxa
• Vladan	Laxa
• Systems	Engineer /	Consultant
• Latraxa.cz
• VMware VCP	2,3,4,5,6,6.5	(2006	– 2019)
• 14	years in	IT	
• vlaxa@latraxa.cz
• @latraxa
Who I	am?
latraxa.cz
• Single	host	=>	take a	coffe
• Few hosts =>	you are	welcome
• HA	Datacenter =>	you already know?
Infrastructure Complexity
latraxa.cz
• Transform your work from this:
Sysadmin nightmare
latraxa.cz
• To	this:
Sysadmin nightmare
latraxa.cz
Automation Expert
latraxa.cz
• 7	teams
• 2.5	Hours of coding
• 1	leader	(Luc Dekens)
• 5	Members
• Networking
• Development
• Presentation
• Lot	of fun
• Enough food	and	beer
VMware {code}	Hackathon 2016
latraxa.cz
• Slack Channel
https://code.vmware.com/web/code/join
• Twitter @vmwarecode
• https://code.vmware.com/samples
VMware {code}	Slack channel
latraxa.cz
• Opensourced PowerShell =>	multiplatform PowerCLI
• Support	for Linux
• Support	for macOS
• Modules instead of Snap-ins
• Integrations of VS	Code
• New	cmdlets
VMware PowerCLI Core
latraxa.cz
• Minimal Linux	OS	(25	MB)
• Optimalized for the containers
• Integration to	vSphere,	API
• Updates by	VMware
• Photon Controller for management
• Virtual Appliance ISO,	OVA,	AWS	EC2,	
Google,	Azure
• https://github.com/vmware/photon/wiki
Photon OS	2.0
latraxa.cz
• INF8092	The Power Hour:	Deep Dive	DevOps and	New	Feaures of PowerCLI
• INF8255	Evolving the vSphere API	for the Modern Era
• INF8430	vSphere 6.x	Host	Resource Deep Dive
• INF8038	Getting Started with PowerShell and	PowerCLI in	your VI
• INF9205	Troubleshooting vSphere 6	made	Easy Expert	Talk
Top	5	Sessions
latraxa.cz
• Proven configuration for the VMware vSphere ESXi 6.5	
• Intel	NUC	6i3SYH
• Corsair SO-DIMM	32GB	KIT	DDR4	2133MHz	CL15	ValueSelect
• Intel	600p	M.2	256GB	SSD	NVMe
• 14925,- (550€)
• Edimax EU-4306	USB3	1Gbit	LAN
• http://www.virtuallyghetto.com/2016/11/usb-3-0-ethernet-adapter-nic-
driver-for-esxi-6-5.html
• Update	BIOS!
HomeLab Environment
latraxa.cz
ESXCLI
latraxa.cz
• ESXCLI	features and	new commands
https://code.vmware.com/doc/preview?id=4164
• Esxcli software	vib command to	patch ESXi
https://kb.vmware.com/s/article/2008939
• PowerCLI 6.5	R1	Poster
https://blogs.vmware.com/PowerCLI/2017/02/powercli-65-poster.html
• Performing common virtual machine-releated tasks with command line	utilities
• https://kb.vmware.com/s/article/2012964
vSphere and	PowerCLI
latraxa.cz
• You can simply install PowerCLI from PS	Gallery
• PSVersion Value of 5.0	or above is required
• Find-Module	-Name VMware.PowerCLI
• Install-Module	-Name VMware.PowerCLI –Scope CurrentUser –AllowClobber
• Get-Module	VMware.PowerCLI -ListAvailable
• Upgrade:
• If you use Update-Module,	the existing version of the module	is not	removed.	To	update	a	
module,	you should first uninstall the existing version of the module	and	then install the
new version
• (Get-Module	VMware.PowerCLI -ListAvailable).RequiredModules |	Uninstall-Module	–
Force
• Get-Module	VMware.PowerCLI -ListAvailable |	Uninstall-Module	–Force
• And	install it again,	it will install current version
• Do	not	do	this on	the Mac,	only PowerShell core and	PowerCLI core is working now.
PowerCLI from PowerShell Gallery
latraxa.cz
• You can easily enable SSH	on	the ESXi host
• Connect-VIServer -Server	192.168.1.2	-User	root -Password Heslo123
• get-vmhostservice |	where {$_.Key -eq "TSM-SSH"}	|	Start-VMHostService
• All hosts in	the cluster:
• Connect-VIServer -Server	192.168.1.3	-User	<your account>	-Password
<your password>
• Get-VMHost |	foreach {	get-vmhostservice -VMHost $_.name |	where
{$_.Key -eq "TSM-SSH"}	|	Start-VMHostService}
• More	usefull examples:
• https://github.com/vmware/PowerCLI-Example-Scripts
• Copy	/	Paste	from community is good way to	learn,	then you can
contribute back
PowerCLI in	the field
latraxa.cz
• HOL-1721-SDC-6	– vSphere Automation with PowerCLI
http://labs.hol.vmware.com
VMware Hands On	Labs
latraxa.cz
• Datacenter Command-Line	interface	(DCLI)
• Works	exclusively with vSphere Automation
API
• Supported on	Windows	and	Linux
• As	part	of the vSphere Command-Line	
Interface	(vCLI)
• Interactive shell or via	scripting mode
• Offline example:
• dcli +server	vcsa.lab.local +skip-server-
verification +interactive
• https://blogs.vmware.com/vsphere/2016/12/
getting-started-datacenter-cli.html
DCLI	in	Action
latraxa.cz
• Python	SDK	for the VMware vSphere API	that
allows you to	manage ESXi and	vCenter
• https://pypi.python.org/pypi/pyvmomi/
• https://github.com/vmware/pyvmomi-
community-samples
pyVmomi 6.5
latraxa.cz
• Backup
• PS	C:PS>	Add-PSSnapin VeeamPSSnapin
• PS	C:PS>	Get-VBRCommand –Verb	„Start“
• PS	C:PS>	Get-Help Add-VBRViBackupJob
• Endpoint
• Free	VeeamZIP
• Quick Migration
• Veeam PowerShell Reference
https://helpcenter.veeam.com/docs/backup/powershell/
connect-vbrserver.html?ver=95
https://github.com/VeeamHub/powershell
Veeam and	PowerShell
latraxa.cz
https://go.veeam.com/learn-powershell-basics-free-tutorial-course-ty/
• Timothy Devin
https://github.com/tdewin/powershell
https://sourceforge.net/p/powershellrepository/code/HEAD/tree/general
/getting%20started/
Veeam PowerShell Resources
latraxa.cz
• Example of the VM	restore to	the different location:	
• Loading a	backup job into a	variable
• PS	C:PS>	$backup =	Get-VBRBackup -Name "Daily_Backup"	
• Selecting the most	recent restorepoint
• PS	C:PS>	$restorepoint =	Get-VBRRestorePoint -Backup $backup -Name “test_001"	
|	Select -Last	1	
• Selecting server	for the restore
• PS	C:PS>	$server	=	Get-VBRServer -Name "esx1.lab.local“
• Selecting the resource pool	
• PS	C:PS>	$resourcepool =	Find-VBRViResourcePool -Server	$server	-Name “Servery“
• Starting the restore process
• PS	C:PS>	Start-VBRRestoreVM -RestorePoint $restorepoint -Server	$server	-
ResourcePool $resourcepool
Veeam 9.5	PowerShell Automation
latraxa.cz
Recommended Learning Resources
latraxa.cz
• It saves you a	lot	of time
• They will love	you
• You will get a	lot	more	work,	because of you can do	that
Do	not	be afraid to	start	automate
latraxa.cz
Thank you
latraxa.cz
• Enjoy the rest	of the time
• Thank you
Vladan	Laxa
Systems	Engineer /	Consultant
Latraxa.cz
vlaxa@latraxa.cz
@latraxa
latraxa.cz

More Related Content

What's hot

Developing High Performance and Scalable ColdFusion Application Using Terraco...
Developing High Performance and Scalable ColdFusion Application Using Terraco...Developing High Performance and Scalable ColdFusion Application Using Terraco...
Developing High Performance and Scalable ColdFusion Application Using Terraco...ColdFusionConference
 
HotLink DR Express
HotLink DR ExpressHotLink DR Express
HotLink DR Expressdean1609
 
Solving Enterprise Integration with Apache Camel
Solving Enterprise Integration with Apache CamelSolving Enterprise Integration with Apache Camel
Solving Enterprise Integration with Apache CamelChristian Posta
 
CollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) Hackable
CollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) HackableCollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) Hackable
CollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) HackableDarren Duke
 
Debugging your Way through .NET with Visual Studio 2015
Debugging your Way through .NET with Visual Studio 2015Debugging your Way through .NET with Visual Studio 2015
Debugging your Way through .NET with Visual Studio 2015Ido Flatow
 
VMworld 2013: vCenter Deep Dive
VMworld 2013: vCenter Deep Dive VMworld 2013: vCenter Deep Dive
VMworld 2013: vCenter Deep Dive VMworld
 
Essential Camel Components
Essential Camel ComponentsEssential Camel Components
Essential Camel ComponentsChristian Posta
 
Virtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAP
Virtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAPVirtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAP
Virtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAPMichael Coates
 
Chicago Microservices Integration Talk
Chicago Microservices Integration TalkChicago Microservices Integration Talk
Chicago Microservices Integration TalkChristian Posta
 
Beyond Apache: Faster Web Servers
Beyond Apache: Faster Web ServersBeyond Apache: Faster Web Servers
Beyond Apache: Faster Web Serverswebhostingguy
 
Tuenti Release Workflow
Tuenti Release WorkflowTuenti Release Workflow
Tuenti Release WorkflowTuenti
 

What's hot (20)

Developing High Performance and Scalable ColdFusion Application Using Terraco...
Developing High Performance and Scalable ColdFusion Application Using Terraco...Developing High Performance and Scalable ColdFusion Application Using Terraco...
Developing High Performance and Scalable ColdFusion Application Using Terraco...
 
HotLink DR Express
HotLink DR ExpressHotLink DR Express
HotLink DR Express
 
Solving Enterprise Integration with Apache Camel
Solving Enterprise Integration with Apache CamelSolving Enterprise Integration with Apache Camel
Solving Enterprise Integration with Apache Camel
 
Locking Down CF Servers
Locking Down CF ServersLocking Down CF Servers
Locking Down CF Servers
 
CollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) Hackable
CollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) HackableCollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) Hackable
CollabSphere SC 103 : Domino on the Web : Yes, It's (Probably) Hackable
 
Debugging your Way through .NET with Visual Studio 2015
Debugging your Way through .NET with Visual Studio 2015Debugging your Way through .NET with Visual Studio 2015
Debugging your Way through .NET with Visual Studio 2015
 
VMworld 2013: vCenter Deep Dive
VMworld 2013: vCenter Deep Dive VMworld 2013: vCenter Deep Dive
VMworld 2013: vCenter Deep Dive
 
PowerCLI Workshop
PowerCLI WorkshopPowerCLI Workshop
PowerCLI Workshop
 
Essential Camel Components
Essential Camel ComponentsEssential Camel Components
Essential Camel Components
 
Meet the Selenium Grid
Meet the Selenium GridMeet the Selenium Grid
Meet the Selenium Grid
 
10 common cf server challenges
10 common cf server challenges10 common cf server challenges
10 common cf server challenges
 
Migrating to aws
Migrating to awsMigrating to aws
Migrating to aws
 
Virtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAP
Virtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAPVirtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAP
Virtual Security Lab Setup - OWASP Broken Web Apps, Webgoat, & ZAP
 
Chicago Microservices Integration Talk
Chicago Microservices Integration TalkChicago Microservices Integration Talk
Chicago Microservices Integration Talk
 
Instant ColdFusion with Vagrant
Instant ColdFusion with VagrantInstant ColdFusion with Vagrant
Instant ColdFusion with Vagrant
 
Beyond Apache: Faster Web Servers
Beyond Apache: Faster Web ServersBeyond Apache: Faster Web Servers
Beyond Apache: Faster Web Servers
 
Extending ansible
Extending ansibleExtending ansible
Extending ansible
 
Hidden gems in cf2016
Hidden gems in cf2016Hidden gems in cf2016
Hidden gems in cf2016
 
Tuenti Release Workflow
Tuenti Release WorkflowTuenti Release Workflow
Tuenti Release Workflow
 
Command box
Command boxCommand box
Command box
 

Similar to V sphere automation_vlaxa_2017

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 DiveVMworld
 
MariaDB Server & MySQL Security Essentials 2016
MariaDB Server & MySQL Security Essentials 2016MariaDB Server & MySQL Security Essentials 2016
MariaDB Server & MySQL Security Essentials 2016Colin Charles
 
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7Colin Charles
 
NC Wisconsin SuperVMUG 2019 Tools and Tips
NC Wisconsin SuperVMUG 2019 Tools and TipsNC Wisconsin SuperVMUG 2019 Tools and Tips
NC Wisconsin SuperVMUG 2019 Tools and TipsAnthony Hook
 
MySQL PHP native driver : Advanced Functions / PHP forum Paris 2013
 MySQL PHP native driver  : Advanced Functions / PHP forum Paris 2013   MySQL PHP native driver  : Advanced Functions / PHP forum Paris 2013
MySQL PHP native driver : Advanced Functions / PHP forum Paris 2013 Serge Frezefond
 
Kafka Security 101 and Real-World Tips
Kafka Security 101 and Real-World Tips Kafka Security 101 and Real-World Tips
Kafka Security 101 and Real-World Tips confluent
 
Paris FOD meetup - kafka security 101
Paris FOD meetup - kafka security 101Paris FOD meetup - kafka security 101
Paris FOD meetup - kafka security 101Abdelkrim Hadjidj
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp adminsRick Taylor
 
June OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification ManagerJune OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification ManagerHoward Greenberg
 
Giles Sirett: Introduction and CloudStack news
Giles Sirett: Introduction and CloudStack news   Giles Sirett: Introduction and CloudStack news
Giles Sirett: Introduction and CloudStack news ShapeBlue
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMathew Beane
 
Getting to know Laravel 5
Getting to know Laravel 5Getting to know Laravel 5
Getting to know Laravel 5Bukhori Aqid
 
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Real-Time Log Analysis with Apache Mesos, Kafka and CassandraReal-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Real-Time Log Analysis with Apache Mesos, Kafka and CassandraJoe Stein
 
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021StreamNative
 
2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQLScott Sutherland
 
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud EnvironmentsAutomation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud EnvironmentsMichael Rüefli
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementSharkrit JOBBO
 
Defcon - Veil-Pillage
Defcon - Veil-PillageDefcon - Veil-Pillage
Defcon - Veil-PillageVeilFramework
 
Lateral Movement: How attackers quietly traverse your Network
Lateral Movement: How attackers quietly traverse your NetworkLateral Movement: How attackers quietly traverse your Network
Lateral Movement: How attackers quietly traverse your NetworkEC-Council
 

Similar to V sphere automation_vlaxa_2017 (20)

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
 
MariaDB Server & MySQL Security Essentials 2016
MariaDB Server & MySQL Security Essentials 2016MariaDB Server & MySQL Security Essentials 2016
MariaDB Server & MySQL Security Essentials 2016
 
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7Better encryption & security with MariaDB 10.1 & MySQL 5.7
Better encryption & security with MariaDB 10.1 & MySQL 5.7
 
NC Wisconsin SuperVMUG 2019 Tools and Tips
NC Wisconsin SuperVMUG 2019 Tools and TipsNC Wisconsin SuperVMUG 2019 Tools and Tips
NC Wisconsin SuperVMUG 2019 Tools and Tips
 
MySQL PHP native driver : Advanced Functions / PHP forum Paris 2013
 MySQL PHP native driver  : Advanced Functions / PHP forum Paris 2013   MySQL PHP native driver  : Advanced Functions / PHP forum Paris 2013
MySQL PHP native driver : Advanced Functions / PHP forum Paris 2013
 
Kafka Security 101 and Real-World Tips
Kafka Security 101 and Real-World Tips Kafka Security 101 and Real-World Tips
Kafka Security 101 and Real-World Tips
 
Paris FOD meetup - kafka security 101
Paris FOD meetup - kafka security 101Paris FOD meetup - kafka security 101
Paris FOD meetup - kafka security 101
 
jclouds workshop
jclouds workshopjclouds workshop
jclouds workshop
 
Power shell for sp admins
Power shell for sp adminsPower shell for sp admins
Power shell for sp admins
 
June OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification ManagerJune OpenNTF Webinar - Domino V12 Certification Manager
June OpenNTF Webinar - Domino V12 Certification Manager
 
Giles Sirett: Introduction and CloudStack news
Giles Sirett: Introduction and CloudStack news   Giles Sirett: Introduction and CloudStack news
Giles Sirett: Introduction and CloudStack news
 
Midwest PHP - Scaling Magento
Midwest PHP - Scaling MagentoMidwest PHP - Scaling Magento
Midwest PHP - Scaling Magento
 
Getting to know Laravel 5
Getting to know Laravel 5Getting to know Laravel 5
Getting to know Laravel 5
 
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Real-Time Log Analysis with Apache Mesos, Kafka and CassandraReal-Time Log Analysis with Apache Mesos, Kafka and Cassandra
Real-Time Log Analysis with Apache Mesos, Kafka and Cassandra
 
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
Simplifying Migration from Kafka to Pulsar - Pulsar Summit NA 2021
 
2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL2019 Blackhat Booth Presentation - PowerUpSQL
2019 Blackhat Booth Presentation - PowerUpSQL
 
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud EnvironmentsAutomation 2.0 - Automation Tools for Hybrid Cloud Environments
Automation 2.0 - Automation Tools for Hybrid Cloud Environments
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
Defcon - Veil-Pillage
Defcon - Veil-PillageDefcon - Veil-Pillage
Defcon - Veil-Pillage
 
Lateral Movement: How attackers quietly traverse your Network
Lateral Movement: How attackers quietly traverse your NetworkLateral Movement: How attackers quietly traverse your Network
Lateral Movement: How attackers quietly traverse your Network
 

More from Vladan Laxa

Veeam v10 jak na to
Veeam v10 jak na toVeeam v10 jak na to
Veeam v10 jak na toVladan Laxa
 
Veeam Best Practices
Veeam Best PracticesVeeam Best Practices
Veeam Best PracticesVladan Laxa
 
vSphere automation workshop python
vSphere automation workshop pythonvSphere automation workshop python
vSphere automation workshop pythonVladan Laxa
 
MicroPython IoT vlaxa
MicroPython IoT vlaxaMicroPython IoT vlaxa
MicroPython IoT vlaxaVladan Laxa
 
Cheat sheet python_vlaxa
Cheat sheet python_vlaxaCheat sheet python_vlaxa
Cheat sheet python_vlaxaVladan Laxa
 
Backup ransomware prevention_2017
Backup ransomware prevention_2017Backup ransomware prevention_2017
Backup ransomware prevention_2017Vladan Laxa
 
Veeam availability suite_v9_2016
Veeam availability suite_v9_2016Veeam availability suite_v9_2016
Veeam availability suite_v9_2016Vladan Laxa
 
V sphere 55_2013
V sphere 55_2013V sphere 55_2013
V sphere 55_2013Vladan Laxa
 
View5 technicka 2011
View5 technicka 2011View5 technicka 2011
View5 technicka 2011Vladan Laxa
 
V mware v_sphere_5_2011
V mware v_sphere_5_2011V mware v_sphere_5_2011
V mware v_sphere_5_2011Vladan Laxa
 
V mware vi3_2006
V mware vi3_2006V mware vi3_2006
V mware vi3_2006Vladan Laxa
 

More from Vladan Laxa (14)

Veeam Agent v4
Veeam Agent v4Veeam Agent v4
Veeam Agent v4
 
Veeam v10 jak na to
Veeam v10 jak na toVeeam v10 jak na to
Veeam v10 jak na to
 
Veeam Best Practices
Veeam Best PracticesVeeam Best Practices
Veeam Best Practices
 
vSphere automation workshop python
vSphere automation workshop pythonvSphere automation workshop python
vSphere automation workshop python
 
MicroPython IoT vlaxa
MicroPython IoT vlaxaMicroPython IoT vlaxa
MicroPython IoT vlaxa
 
Cheat sheet python_vlaxa
Cheat sheet python_vlaxaCheat sheet python_vlaxa
Cheat sheet python_vlaxa
 
Backup ransomware prevention_2017
Backup ransomware prevention_2017Backup ransomware prevention_2017
Backup ransomware prevention_2017
 
Veeam availability suite_v9_2016
Veeam availability suite_v9_2016Veeam availability suite_v9_2016
Veeam availability suite_v9_2016
 
View 6 2015
View 6 2015View 6 2015
View 6 2015
 
V sphere 55_2013
V sphere 55_2013V sphere 55_2013
V sphere 55_2013
 
View5 technicka 2011
View5 technicka 2011View5 technicka 2011
View5 technicka 2011
 
V mworld 2011
V mworld 2011V mworld 2011
V mworld 2011
 
V mware v_sphere_5_2011
V mware v_sphere_5_2011V mware v_sphere_5_2011
V mware v_sphere_5_2011
 
V mware vi3_2006
V mware vi3_2006V mware vi3_2006
V mware vi3_2006
 

Recently uploaded

Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...
Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...
Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...aakahthapa70
 
Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝
Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝
Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝Lipikasharma29
 
Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...
Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...
Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...Ayesha Khan
 
Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7Ayesha Khan
 
Call Girls in Calangute Beach 8588052666 Goa Escorts ...
Call Girls in Calangute Beach 8588052666 Goa Escorts ...Call Girls in Calangute Beach 8588052666 Goa Escorts ...
Call Girls in Calangute Beach 8588052666 Goa Escorts ...nishakur201
 
Call Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls Service
Call Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls ServiceCall Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls Service
Call Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls ServiceAyesha Khan
 
Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...
Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...
Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...aakahthapa70
 
Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...
Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...
Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...Ayesha Khan
 
(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR
(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR
(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCREscort Service
 
Call Girls In Naraina (Delhi) +91-9667422720 Escorts Service
Call Girls In Naraina (Delhi) +91-9667422720 Escorts ServiceCall Girls In Naraina (Delhi) +91-9667422720 Escorts Service
Call Girls In Naraina (Delhi) +91-9667422720 Escorts ServiceLipikasharma29
 
Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝
Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝
Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝thapagita
 
(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCRsoniya singh
 
NASHIK CALL GIRL 92628*71154 NASHIK CALL
NASHIK CALL GIRL 92628*71154 NASHIK CALLNASHIK CALL GIRL 92628*71154 NASHIK CALL
NASHIK CALL GIRL 92628*71154 NASHIK CALLNiteshKumar82226
 
Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7Ayesha Khan
 
Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝
Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝
Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝thapagita
 
Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...
Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...
Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...aakahthapa70
 
BHOPAL CALL GIRL 92628*71154 BHOPAL CALL
BHOPAL CALL GIRL 92628*71154 BHOPAL CALLBHOPAL CALL GIRL 92628*71154 BHOPAL CALL
BHOPAL CALL GIRL 92628*71154 BHOPAL CALLNiteshKumar82226
 

Recently uploaded (20)

Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...
Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...
Call Girls In {Laxmi Nagar Delhi} 9667938988 Indian Russian High Profile Girl...
 
Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝
Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝
Call Girls in Chattarpur Delhi 💯 Call Us 🔝9667422720🔝
 
Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...
Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...
Book Call Girls in Lahore || 03070433345 || Young, Hot, Sexy, VIP Girls Avail...
 
Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7
Call Girls In Lahore || 03010449222 ||Lahore Call Girl Available 24/7
 
Call Girls In Saket Delhi 9953056974 (Low Price) Escort Service Saket Delhi
Call Girls In Saket Delhi 9953056974 (Low Price) Escort Service Saket DelhiCall Girls In Saket Delhi 9953056974 (Low Price) Escort Service Saket Delhi
Call Girls In Saket Delhi 9953056974 (Low Price) Escort Service Saket Delhi
 
Call Girls in Calangute Beach 8588052666 Goa Escorts ...
Call Girls in Calangute Beach 8588052666 Goa Escorts ...Call Girls in Calangute Beach 8588052666 Goa Escorts ...
Call Girls in Calangute Beach 8588052666 Goa Escorts ...
 
Call Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls Service
Call Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls ServiceCall Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls Service
Call Girls in Lahore || 03090999379 || Get 30% Off on Hot Call Girls Service
 
CALL GIRLS IN GOA & ESCORTS SERVICE +919540619990
CALL GIRLS IN GOA & ESCORTS SERVICE +919540619990CALL GIRLS IN GOA & ESCORTS SERVICE +919540619990
CALL GIRLS IN GOA & ESCORTS SERVICE +919540619990
 
9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.
9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.
9953056974 Call Girls In Ashok Nagar, Escorts (Delhi) NCR.
 
Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...
Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...
Call Girls In {Aerocity Delhi} 98733@20244 Indian Russian High Profile Girls ...
 
Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...
Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...
Call Girls In Islamabad ***03255523555*** Red Hot Call Girls In Islamabad Esc...
 
(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR
(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR
(9599264170) ↫ Call Girls In Rk Puram ↫ Delhi NCR
 
Call Girls In Naraina (Delhi) +91-9667422720 Escorts Service
Call Girls In Naraina (Delhi) +91-9667422720 Escorts ServiceCall Girls In Naraina (Delhi) +91-9667422720 Escorts Service
Call Girls In Naraina (Delhi) +91-9667422720 Escorts Service
 
Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝
Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝
Call Girls in Majnu ka Tilla Delhi 💯 Call Us 🔝9711014705🔝
 
(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR
(8264348440) 🔝 Call Girls In Noida Sector 62 🔝 Delhi NCR
 
NASHIK CALL GIRL 92628*71154 NASHIK CALL
NASHIK CALL GIRL 92628*71154 NASHIK CALLNASHIK CALL GIRL 92628*71154 NASHIK CALL
NASHIK CALL GIRL 92628*71154 NASHIK CALL
 
Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7
Call Girls in Karachi || 03081633338 || 50+ Hot Sexy Girls Available 24/7
 
Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝
Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝
Call Girls In Dwarka Delhi 💯Call Us 🔝9711014705🔝
 
Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...
Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...
Call Girls In {{Connaught Place Delhi}}96679@38988 Indian Russian High Profil...
 
BHOPAL CALL GIRL 92628*71154 BHOPAL CALL
BHOPAL CALL GIRL 92628*71154 BHOPAL CALLBHOPAL CALL GIRL 92628*71154 BHOPAL CALL
BHOPAL CALL GIRL 92628*71154 BHOPAL CALL
 

V sphere automation_vlaxa_2017

  • 2. • Vladan Laxa • Systems Engineer / Consultant • Latraxa.cz • VMware VCP 2,3,4,5,6,6.5 (2006 – 2019) • 14 years in IT • vlaxa@latraxa.cz • @latraxa Who I am? latraxa.cz
  • 3. • Single host => take a coffe • Few hosts => you are welcome • HA Datacenter => you already know? Infrastructure Complexity latraxa.cz
  • 4. • Transform your work from this: Sysadmin nightmare latraxa.cz
  • 7. • 7 teams • 2.5 Hours of coding • 1 leader (Luc Dekens) • 5 Members • Networking • Development • Presentation • Lot of fun • Enough food and beer VMware {code} Hackathon 2016 latraxa.cz
  • 8. • Slack Channel https://code.vmware.com/web/code/join • Twitter @vmwarecode • https://code.vmware.com/samples VMware {code} Slack channel latraxa.cz
  • 9. • Opensourced PowerShell => multiplatform PowerCLI • Support for Linux • Support for macOS • Modules instead of Snap-ins • Integrations of VS Code • New cmdlets VMware PowerCLI Core latraxa.cz
  • 10. • Minimal Linux OS (25 MB) • Optimalized for the containers • Integration to vSphere, API • Updates by VMware • Photon Controller for management • Virtual Appliance ISO, OVA, AWS EC2, Google, Azure • https://github.com/vmware/photon/wiki Photon OS 2.0 latraxa.cz
  • 11. • INF8092 The Power Hour: Deep Dive DevOps and New Feaures of PowerCLI • INF8255 Evolving the vSphere API for the Modern Era • INF8430 vSphere 6.x Host Resource Deep Dive • INF8038 Getting Started with PowerShell and PowerCLI in your VI • INF9205 Troubleshooting vSphere 6 made Easy Expert Talk Top 5 Sessions latraxa.cz
  • 12. • Proven configuration for the VMware vSphere ESXi 6.5 • Intel NUC 6i3SYH • Corsair SO-DIMM 32GB KIT DDR4 2133MHz CL15 ValueSelect • Intel 600p M.2 256GB SSD NVMe • 14925,- (550€) • Edimax EU-4306 USB3 1Gbit LAN • http://www.virtuallyghetto.com/2016/11/usb-3-0-ethernet-adapter-nic- driver-for-esxi-6-5.html • Update BIOS! HomeLab Environment latraxa.cz
  • 13. ESXCLI latraxa.cz • ESXCLI features and new commands https://code.vmware.com/doc/preview?id=4164 • Esxcli software vib command to patch ESXi https://kb.vmware.com/s/article/2008939
  • 14. • PowerCLI 6.5 R1 Poster https://blogs.vmware.com/PowerCLI/2017/02/powercli-65-poster.html • Performing common virtual machine-releated tasks with command line utilities • https://kb.vmware.com/s/article/2012964 vSphere and PowerCLI latraxa.cz
  • 15. • You can simply install PowerCLI from PS Gallery • PSVersion Value of 5.0 or above is required • Find-Module -Name VMware.PowerCLI • Install-Module -Name VMware.PowerCLI –Scope CurrentUser –AllowClobber • Get-Module VMware.PowerCLI -ListAvailable • Upgrade: • If you use Update-Module, the existing version of the module is not removed. To update a module, you should first uninstall the existing version of the module and then install the new version • (Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module – Force • Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module –Force • And install it again, it will install current version • Do not do this on the Mac, only PowerShell core and PowerCLI core is working now. PowerCLI from PowerShell Gallery latraxa.cz
  • 16. • You can easily enable SSH on the ESXi host • Connect-VIServer -Server 192.168.1.2 -User root -Password Heslo123 • get-vmhostservice | where {$_.Key -eq "TSM-SSH"} | Start-VMHostService • All hosts in the cluster: • Connect-VIServer -Server 192.168.1.3 -User <your account> -Password <your password> • Get-VMHost | foreach { get-vmhostservice -VMHost $_.name | where {$_.Key -eq "TSM-SSH"} | Start-VMHostService} • More usefull examples: • https://github.com/vmware/PowerCLI-Example-Scripts • Copy / Paste from community is good way to learn, then you can contribute back PowerCLI in the field latraxa.cz
  • 17. • HOL-1721-SDC-6 – vSphere Automation with PowerCLI http://labs.hol.vmware.com VMware Hands On Labs latraxa.cz
  • 18. • Datacenter Command-Line interface (DCLI) • Works exclusively with vSphere Automation API • Supported on Windows and Linux • As part of the vSphere Command-Line Interface (vCLI) • Interactive shell or via scripting mode • Offline example: • dcli +server vcsa.lab.local +skip-server- verification +interactive • https://blogs.vmware.com/vsphere/2016/12/ getting-started-datacenter-cli.html DCLI in Action latraxa.cz
  • 19. • Python SDK for the VMware vSphere API that allows you to manage ESXi and vCenter • https://pypi.python.org/pypi/pyvmomi/ • https://github.com/vmware/pyvmomi- community-samples pyVmomi 6.5 latraxa.cz
  • 20. • Backup • PS C:PS> Add-PSSnapin VeeamPSSnapin • PS C:PS> Get-VBRCommand –Verb „Start“ • PS C:PS> Get-Help Add-VBRViBackupJob • Endpoint • Free VeeamZIP • Quick Migration • Veeam PowerShell Reference https://helpcenter.veeam.com/docs/backup/powershell/ connect-vbrserver.html?ver=95 https://github.com/VeeamHub/powershell Veeam and PowerShell latraxa.cz
  • 22. • Example of the VM restore to the different location: • Loading a backup job into a variable • PS C:PS> $backup = Get-VBRBackup -Name "Daily_Backup" • Selecting the most recent restorepoint • PS C:PS> $restorepoint = Get-VBRRestorePoint -Backup $backup -Name “test_001" | Select -Last 1 • Selecting server for the restore • PS C:PS> $server = Get-VBRServer -Name "esx1.lab.local“ • Selecting the resource pool • PS C:PS> $resourcepool = Find-VBRViResourcePool -Server $server -Name “Servery“ • Starting the restore process • PS C:PS> Start-VBRRestoreVM -RestorePoint $restorepoint -Server $server - ResourcePool $resourcepool Veeam 9.5 PowerShell Automation latraxa.cz
  • 24. • It saves you a lot of time • They will love you • You will get a lot more work, because of you can do that Do not be afraid to start automate latraxa.cz
  • 25. Thank you latraxa.cz • Enjoy the rest of the time • Thank you