My notes and ramblings, normally about automation.
Connect with me:
PowerShell
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
PowerCLI - Configuring Multipathing iSCSI NetworksI’ve been playing in the development hosts quite a bit lately which occasionally leave me having to reset the system back to defaults and it’s no fun to go back through and setup Multipathing for 4 connections everytime.Aug 23, 2011
-
4 min read