My notes and ramblings, normally about automation.
Connect with me:
kmruddy.com
PowerCLI – One Liner – Finding Duplicate VMkernel IPsEver had issues with a host randomly disconnecting? vMotions randomly failing? iSCSI paths dropping? If so, there’s a chance you’re having issues with a duplicate IP on one of your VMkernel ports.May 2, 2014
-
1 min read
PowerCLI - Get-View View TypesUnfortunately, I don’t make use of the Get-View .NET cmdlet as often as I should. It’s a little more complicated than the rest of the PowerCLI cmdlets and a little harder to memorize but the speed is well worth the time and effort.May 1, 2014
-
1 min read
PowerShell - HP Scripting Tools for Windows PowerShellHP has released their Scripting Tools for Windows PowerShell: http://www.hp.com/go/PowerShell
After taking a while to figure out where to download it (HP Download Link), the rest was easy. Once downloaded, just unzip the file wherever you like (note: it isn’t unzipping into an install directory) and then run the included executable.Nov 11, 2013
-
3 min read
PowerCLI - Reset NTP settings on VMHosts per ClusterAs daylight savings time is almost upon us, there are always questions revolving around what hosts use what NTP sources for time synchronization. To address this issue, I created a script to go through and remove the current NTP sources, add the desired NTP sources and then restart the NTP service on all of the hosts in the environment.Oct 29, 2013
-
2 min read
PowerCLI - One-Liner - Check All VMHosts TimeIt’s everyone’s favorite time of year, daylight savings time. If your NTP solution is solid, there’s no worries and you’ve never had to think twice about it. If you’re like everyone else, you at least want to run a couple scripts to verify and validate everything is looking good.Oct 28, 2013
-
2 min read
PowerCLI - Copying PortGroups from a Standard vSwitch to a Distributed vSwitchRan out of ports on a Standard vSwitch and could not reboot the host. Sounds like a good time to implement a Distributed vSwitch and copy the PortGroups over.
When you run the script, it will ask for the desired ESXi host name, desired Standard vSwitch name, and the desired Distributed vSwitch name so you don’t have to modify the code.May 24, 2013
-
1 min read
PowerCLI - Rescan HBAs for a Cluster on a Host by Host BasisAfter having some bad luck with rescanning HBAs for entire clusters or datacenters all at the same time (Cliff’s Notes: the LUNs ended up looking like array based snapshots and therefore unusable), it was decided that any rescans should be done on an individual host basis.May 23, 2013
-
1 min read
PowerCLI - Analyze a Cluster to Move VMs to a Resource PoolAfter someone deployed a bunch of VMs, we let them know about the Resource Pool they were supposed to be deployed to. Oops. To correct this, and to avoid a couple hours of dragging and dropping VMs into a resource pool, I was able to create a script that detects if a VM is outside of a Resource Pool and then move it to the specified Resource Pool.May 22, 2013
-
1 min read
Playing with ESXi and Synology in the home lab...So I finally bit the bullet and bought a NAS for my home lab. Ended up with a Synology DS411 due to some good timing from a NewEgg sale.
I went with Synology for two reasons:May 25, 2012
-
2 min read
Generating RSA Key & CSR for use with VMware Solutions...Ever received a Security Warning while logging into either you ESX/i host and/or vCenter?
That’s due to the SSL certificate being untrusted with your machine. You can always click the “Ignore” button or check the “Install this certificate…” box and then “Ignore” and move on, however you can improve the security by replacing the certificates with certificates signed by a commercial certificate authority (CA).Nov 29, 2011
-
2 min read