My notes and ramblings, normally about automation.
Connect with me:
vSphere
PowerCLI - Quick Stats Not Up To Date ErrorRecently rebooted one of my vCenters and came across an error on my ESXi hosts stating “Quick stats on *vmhost* is not up-to-date”. A couple seconds worth of googling brought me to VMware KB2061008 which helped to resolve the issue.Nov 9, 2015
-
1 min read
PowerShell - Finally Testing PernixData!My home lab has been in need of some upgrades lately. One of the easiest, and cheapest, was the addition of PernixData and their FVP Freedom edition release. Couple of caveats I feel I should cover if you’ve never been exposed to PernixData’s FVP product:Oct 29, 2015
-
3 min read
PowerCLI - View - Pool Health Check ReportI’ve been given the chance to work with View a little more here recently and focus in on some of the gaps that are missing, specifically around reporting and alerting. vC Ops and the View adapter are in use, however the alerts leave much to be desired.Dec 29, 2014
-
2 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 - 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 - 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