My notes and ramblings, normally about automation.
Connect with me:
VMware
PowerCLI - Automate the vROps OVA DeploymentFor those that haven’t heard, vCenter Operations (known better as vC Ops) has been not only updated but renamed. It’s new name is vRealize Operations (or, probably, vR Ops) and it is officially version 6.Dec 19, 2014
-
2 min read
PowerCLI - Gathering VMHost NIC Driver & Firmware InfoThere’s nothing worse than having inconsistencies in a VMware cluster. This includes patch level, driver level and definitely firmware levels. In this particular case, the focus is on the physical network adapters.Nov 3, 2014
-
1 min read
PowerCLI - Process of Adding Notes to VMsDocumentation is a good thing. No matter how big or small. One of the easiest methods of documentation is to use the built in annotation section for “Notes”.
What I’ve come up with is a fairly basic script to go through all the VM objects that do not contain notes and allow the user to insert notes on a line by line basis.Sep 9, 2014
-
1 min read
PowerCLI - Removing and Re-creating Unknown and/or Orphaned VMsRan into an issue lately where I found a host had lost its storage. For whatever reason HA didn’t kick in to bring all the VMs back to life and there was a need to recreate ~75 VMs whom were in an unknown and/or orphaned state.Jul 14, 2014
-
1 min read
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
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