Posts
PyOhio 2010 is coming up 7/31-8/1
I enjoyed this event quite a bit last year and I am looking forward to attending this time around.
Homepage
Registration
Posts
Understanding VMware VMkernel Traffic Routing
As a basis for an upcoming post on splitting vmkernel traffic across over layer 3 boundaries I wanted to describe how vmkernel traffic is routed on an ESX host. There seems to be a lot of confusion in this area and hopefully this will help to clear it up.
If you need a refresher on IP addresses, network masks, or subnets check out this Cisco article.
Directly Connected Networks
If a host is directly connected to a subnet it will use that interface to talk to devices in that subnet.
Posts
Export and Import Customization Specs Using PowerCLI
Here are a couple of functions to help you export and import OS customization specs in vCenter. Be aware that if you do this between vCenters or the certificate changes then you will have to set any encrypted passwords to their correct value after the import.
These functions and the standard *-OSCustomizationSpec cmdlets should allow you to replicate your customization specs between multiple vCenters fairly easily.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 Function Export-OSCustomizationSpec { param ( [string]$specName, [string]$exportFile = "$specname.
Posts
Notify All Active vSphere Users (PowerCLI version)
Steve Jin recently posted How to Notify All the Active vSphere Users on his DoubleCloud blog. Below are some functions to make this easy to do via PowerCLI.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Function Get-VIServiceMessage { $sessionManager = Get-View SessionManager $sessionManager.Message } Function Set-VIServiceMessage { param ( [String]$message = $(throw "Must specify a message.") ) $sessionManager = Get-View SessionManager $sessionManager.
Posts
Summarize PowerCLI Cmdlets by Noun
Here is some simple code to generate a reference list of the PowerCLI cmdlet objects(nouns) and what actions(verbs) you can perform on them.
This can come in handy for people new to PowerCLI to show them what the cmdlets will handle for them.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 $commandTable = @{} $commandList = Get-Command -Module VMware.VimAutomation.Core -CommandType Cmdlet foreach ($command in $commandList) { if (!
Posts
Bulk password change on ESX hosts
Here is an script to make life a little easier when doing bulk updates to a password for an account as long as the account has a common password on the different hosts.
The script has some documentation in it so make sure to use Get-Help to find more detail.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 Get-Help .
Posts
PowerShell advanced parameter behavior unexpected
I have been experimenting with parameter values from the pipeline and the processing behavior is slightly different when using piplines vs. parameterized values. It is easy enough to work around, but I wanted to make sure and explain the issue and one workaround.
The standard way of using a pipeline parameter is to do something like this:
param ( [parameter(Mandatory=$true, ValueFromPipeLine=$true)] [String[]]$item ) In cases where you accept input from the pipeline or a single item as an input parameter this works fine.
Posts
Unable to install ESX400-201002401 or ESX400-200912401
Update Manager 4.0 Update 1 was refusing to install either of these two patches. At first I was confused because I did not have Nexus deployed, but this was looking similar to the problem that Update 1 was supposed to fix.
I downloaded the bundle from VMware’s web site and tried to install the patch manually and got this error:
The following problems were encountered trying to resolve dependencies: cross_emulex-cim-provider_400.2.0.27.1-164009 provides 'emulex-cim-provider >= 400.
Posts
List VMs with Non Thick Disks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 foreach ($vm in Get-VM) { $badFormat = $false foreach ($hardDisk in (Get-HardDisk -VM $vm)) { if ($hardDisk.StorageFormat -ne "Thick") { $badFormat = $true } } if ($badFormat) { $vm.Name } }
Posts
Determine VMs in a SRM recovery plan using PowerShell
Here is some PowerShell code to determine the VMs that are in a VMware Site Recovery Manager recovery plan.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 #requires -version 2 # Description: List the VMs in a SRM recovery plan.
Posts
Google Book Advanced Search Query Parameters
A reference for those working on Google book searches other than full text queries. Let me know if something is incorrect or missing.
<th> Values </th> <td> All of the words. </td> <td> Exact phrase. </td> <td> At least one of the words. </td> <td> Without the words. </td> <td> 0=AllBooks, 1=FullView, 3=Limited preview and full view, 4=Public domain only </td> <td> One of "ALLTYPES", "BOOKS", "MAGAZINES" </td> <td> Empty for all languages otherwise a language code.
Posts
Set-VMHostService Policy Parameter
Here are the possible values for the policy parameter on Set-VMHostService and their corresponding value in the VI client.
<th> VI Client Value</ht></tr> <tr> <td> automatic </td> <td> Start automatically if any ports are open… </td> <tr> <td> on </td> <td> Start and stop with host </td> <tr> <td> off </td> <td> Start and stop manually </td></table>