PowerCLI: Difference between revisions
Jump to navigation
Jump to search
(24 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
* [[Virtu-Al: Lesson 4 Portgroups]] | * [[Virtu-Al: Lesson 4 Portgroups]] | ||
* [https://www.vmware.com/support/developer/PowerCLI/PowerCLI55R2/html/index.html VMware's PowerCLI 5.5 R2 online cmdlet reference] | |||
* [ | |||
* [http://communities.vmware.com/docs/DOC-4210 Managing VMware with PowerShell -- Frequently Asked Questions] | * [http://communities.vmware.com/docs/DOC-4210 Managing VMware with PowerShell -- Frequently Asked Questions] | ||
* [http://communities.vmware.com/message/1381785 PowerCLI Poster with all the available cmdlets] | * [http://communities.vmware.com/message/1381785 PowerCLI Poster with all the available cmdlets] | ||
* [http://blogs.vmware.com/vipowershell/2012/09/powercli-5-1-poster.html PowerCLI 5.1 Poster] | |||
* [http://communities.vmware.com/docs/DOC-12014 Workshop and demo scripts by Carter Shanklin] | * [http://communities.vmware.com/docs/DOC-12014 Workshop and demo scripts by Carter Shanklin] | ||
Line 24: | Line 24: | ||
* [http://read.virtualizeplanet.com/?p=138 VirtualizePlanet PowerCLI lessons by Ricky El-Qasem] | * [http://read.virtualizeplanet.com/?p=138 VirtualizePlanet PowerCLI lessons by Ricky El-Qasem] | ||
* [http://www.petri.co.il/vmware-vsphere-powercli-getting-started.htm Getting Started with vSphere PowerCLI (Petri.co.il)] | |||
===== PowerCLI videos ===== | ===== PowerCLI videos ===== | ||
Line 39: | Line 41: | ||
* [[PowerCLI Oneliners: Storage]] | * [[PowerCLI Oneliners: Storage]] | ||
* [http://vwiki.co.uk/ESX_PowerCLI_One-Liners ESX PowerCLI One-Liners (vWiki)] | * [http://vwiki.co.uk/ESX_PowerCLI_One-Liners ESX PowerCLI One-Liners (vWiki)] | ||
* [[PowerCLI: Oneliners]] | |||
==== PowerCLI scripts ==== | ==== PowerCLI scripts ==== | ||
* [http:// | ===== integration ===== | ||
* [[Introduction to scripting vi using perl or powershell]] | |||
* [[Manage VMware Server with PowerShell]] | |||
* [[Introduction to the vSphere SDK in Java and C#]] | |||
* [http://blogs.vmware.com/vipowershell/2009/09/how-to-run-powercli-scripts-from-vcenter-alarms.html How to run PowerCLI scripts from vCenter alarms] | |||
* [[PowerCLI: WebPowerCLI, run scripts from your browser]] | |||
===== not categorized ===== | |||
* [http://communities.vmware.com/docs/DOC-6972 Deploy and Redeploy vm's (from templates) from a .csv] | * [http://communities.vmware.com/docs/DOC-6972 Deploy and Redeploy vm's (from templates) from a .csv] | ||
Line 57: | Line 70: | ||
* [[Out-Dataset Cmdlet]] | * [[Out-Dataset Cmdlet]] | ||
==== VM Configuration ==== | |||
* [http://virtualfuture.info/2008/07/powershell-remove-connected-iso/ Remove connected iso's] | |||
* [http:// | |||
* [[Restart VMware Tools on all Windows VM's]] | * [[Restart VMware Tools on all Windows VM's]] | ||
Line 100: | Line 107: | ||
* [[PowerCLI: Change Virtual Machines Guest OS Names]] | * [[PowerCLI: Change Virtual Machines Guest OS Names]] | ||
* [[PowerCLI: Create multiple VMs]] | |||
==== Host Management ==== | |||
* [[PowerCLI: Report every VM added to vCenter in the last 30 days]] | * [[PowerCLI: Report every VM added to vCenter in the last 30 days]] | ||
Line 114: | Line 123: | ||
* [[PowerCLI: Daily Report]] | * [[PowerCLI: Daily Report]] | ||
* [[PowerCLI: Get number of vCPU | * [[PowerCLI: Get number of vCPU%27s used in cluster]] | ||
* [[PowerCLI: Factory reset of ESXi]] | * [[PowerCLI: Factory reset of ESXi]] | ||
Line 121: | Line 130: | ||
* [[PowerCLI: Get VMHost Support Bundles]] | * [[PowerCLI: Get VMHost Support Bundles]] | ||
* [[PowerCLI: Update host from ESXi 5.1 to 5.1 update 1]] | |||
* [[PowerCLI: VM stats and Google Charts]] | |||
* [[PowerCLI: ESXi 5.0 / ESXi 5.1 Host Backup & Restore GUI Utility]] | |||
===== Integration with ESXi shell ===== | |||
* [[PowerCLI: Using plink to modify ESXi host configuration files via SSH]] | * [[PowerCLI: Using plink to modify ESXi host configuration files via SSH]] | ||
* [[PowerCLI: enable SSH and configure ESXi Firewall]] | * [[PowerCLI: enable SSH and configure ESXi Firewall]] | ||
* [[PowerCLI: Update ESXi Root Password with Password Generator]] | |||
* [[PowerCLI: enable SSH GUI for vSphere clusters]] | |||
==== Storage ==== | ==== Storage ==== | ||
*[[PowerCLI: HBA Load Balancer]] | |||
* [[PowerCLI: Upgrading your VMFS datastores]] | * [[PowerCLI: Upgrading your VMFS datastores]] | ||
Line 133: | Line 156: | ||
* [[PowerCLI: Checking VMFS Version and Block Sizes]] | * [[PowerCLI: Checking VMFS Version and Block Sizes]] | ||
* [[PowerCLI: Set the Path Selection Policy for every device path of every host in your vSphere 5.0/5.1 cluster]] | |||
* [https://labs.vmware.com/flings/powercli-cmdlet-for-nfs PowerCLI cmdlet for NFS] | |||
==== Networking ==== | ==== Networking ==== | ||
* [[PowerCLI: Verify and change the existing Bridge Protocol Data Unit (BPDU) Filter configuration]] | |||
===== dvSwitch ===== | ===== dvSwitch ===== | ||
* [[PowerCLI: dvPortgroup ports report]] | * [[PowerCLI: dvPortgroup ports report]] | ||
Line 142: | Line 171: | ||
* [[PowerCLI: Show-vCloudStatsHtml.ps1]] | * [[PowerCLI: Show-vCloudStatsHtml.ps1]] | ||
* [[PowerCLI: Install Software in Isolated Virtual Machines]] | |||
==== libraries ==== | |||
* [[PowerCLI: Scriptkit]] | |||
[[Category: Powershell]][[Category: VI-Toolkit]] | [[Category: Powershell]][[Category: VI-Toolkit]][[Category: PowerCLI]] |
Latest revision as of 21:10, 29 November 2015
PowerCLI is the "new' name for what used to be called the Virtual Infrastructure Toolkit, or VI Toolkit in short. In order to manage your virtual infrastructure on windows using scripts you will most likely want to use the VI Toolkit for windows and PowerShell
Learning VI-Toolkit Powershell
PowerCLI videos
- Patching ESX with PowerCLI 4.0 U1
- Invoke-VM with PowerCLI 4.0 U1
- #vBrownBag Follow-Up – PowerCLI 201 w/ Jake Robinson
PowerCLI Oneliners
Hugo Peeters started with posting so called oneliners to indicate how powerful the VI-Toolkit on Powershell is. After a while this got picked up by others as sort of a sport to see if you can do it in one line. Below is a collection of links with oneliners from great powershell scripters. These pages now contains links to oneliners from Hugo Peeters, Alan Renouf, get-admin.com and Arne Fokkema
- PowerCLI Oneliners: Statistics
- PowerCLI Oneliners: Events
- PowerCLI Oneliners: Host Configuration
- PowerCLI Oneliners: VM Configuration
- PowerCLI Oneliners: Storage
- ESX PowerCLI One-Liners (vWiki)
PowerCLI scripts
integration
not categorized
- Add/Remove active directory user accounts who belong to a particular security group on all ESX hosts
VM Configuration
Host Management
Integration with ESXi shell
Storage
Networking
dvSwitch
- PowerCLI: dvPortgroup ports report
- PowerCLI: Disable Netflow for a VDPortgroup or a number of VDPortGroups