Difference between revisions of "Useful One-Liners (PowerCLI)"

Jump to navigation Jump to search
m
Updated to use Depreciated template, removed categories, and Meta robot override
(→‎Virtual Machine: Re-orged and added mass snapshot start-stops)
m (Updated to use Depreciated template, removed categories, and Meta robot override)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOINDEX__
{{Depreciated|category=PowerCLI}}
== Virtual Centre ==
== Virtual Centre ==
=== Get vCentre software version ===
=== Get vCentre software version ===
Line 61: Line 65:


==== Start Snapshot on Multiple VMs ====
==== Start Snapshot on Multiple VMs ====
Assumes you've already got an array object of VMs containing the VM's you want to snapshot (eg <code>$VMs = Get-VM -Location (Get-Folder -Name "MyFolder")</code> for VM's in a particular folder, see [[#Get_list_of_VM.27s|Get_list_of_VM.27s]] for further info)
Assumes you've already got an array object of VMs containing the VM's you want to snapshot (eg <code>$VMs = Get-VM -Location (Get-Folder -Name "MyFolder")</code> for VM's in a particular folder, see [[#Get_list_of_VM.27s|Get_list_of_VM's]] for further info)
<source lang="powershell">New-Snapshot -Name "Pre change XYZ snapshot" -Description "Requested by TJ Hooker" -Memory -Quiesce -VM $vms </source>
<source lang="powershell">New-Snapshot -Name "Pre change XYZ snapshot" -Description "Requested by TJ Hooker" -Memory -Quiesce -VM $vms </source>


Line 160: Line 164:
Note that you should also set the IOPS per path to 1 (default is 1000), there is some debate as to whether you should do this or not, HP recommend it for their SAN's, though some worry about the overhead on the ESX caused by switching paths for every IO.  The choice is yours, though for further reading and how to do it...
Note that you should also set the IOPS per path to 1 (default is 1000), there is some debate as to whether you should do this or not, HP recommend it for their SAN's, though some worry about the overhead on the ESX caused by switching paths for every IO.  The choice is yours, though for further reading and how to do it...
* http://h20195.www2.hp.com/V2/GetDocument.aspx?docname=4AA1-2185ENW&cc=us&lc=en - HP's best practice
* http://h20195.www2.hp.com/V2/GetDocument.aspx?docname=4AA1-2185ENW&cc=us&lc=en - HP's best practice
* http://www.yellow-bricks.com/2010/03/30/whats-the-point-of-setting-iops1/  
* http://www.yellow-bricks.com/2010/03/30/whats-the-point-of-setting-iops1/
 
[[Category:PowerCLI]]
[[Category:Virtual Centre]]
[[Category:Virtual Machine]]
[[Category:ESX]]

Navigation menu