My notes and ramblings, normally about automation.
Connect with me:
PowerShell
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
PowerShell - Add File Share Permissions to Existing ShareFound myself in the position of having to add some permissions to an existing file share… Unfortunately none of these systems were 2012R2, whom can take advantage of the SMBShare cmdlets, so this ended up being a bigger task than I would’ve thought.Aug 15, 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
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