The Lowercase w

Post info:

PowerCLI Script to Check Host Over-commitment Percentage & Ratios

At my previous employer, we had a Dev/QA vSphere environment that was very over provisioned.  The environment had lots of CPUReady issues with VMs having to wait for CPU time, which caused things to be slow, etc.  We knew this but the application teams didn’t understand.  I ended up writing a PowerCLI script to check the CPU overcommitment and sent the results to my manager who was able to go to the application team’s management and get them to clean

Read the full post

Post info:

Script to backup your vCenter DRS Rules

I was thinking yesterday, I have a script that I run on a monthly basis to backup my vDS configs…  Shouldn’t I also have something that does the same for my DRS rules?  So, I wrote a script that I can schedule to run on a weekly/monthly basis to backup my DRS rules. I have multiple vCenter servers, so I used an array to connect to each one and then exported the rules for each cluster within those vCenters. The

Read the full post

Post info:

PowerCLI Script to create new vDS Portgroups

We deployed new hosts into one of our office locations.  Because these hosts would have different number of uplinks as well as use a LAG group instead of normal dvUplinks, we decided to create a new vDS Switch.  Then, we needed to re-create all the portgroups as well.  I figured, instead of manually adding 15-20 portgroups, I’ll automate it.  I used this blog post as reference to do some of the work, and added the LAG and uplink changes. When

Read the full post

Post info:

Disabling FCOE on vSphere 10gb NICs per VMware KB 2130092

So, we recently had an issue with some of our Dell blade vSphere hosts.  Seems they all crashed (PSOD) at the same time (6 nodes across 2 different clusters).  After submitting the log bundles and Dell TSRs, support recommended, along with upgrading drivers & firmware (the support go to!) that we remove FCoE from the NICs (as it’s not being used).  VMware said the FCoE messages in the logs was just “log spam” and not anything they felt would have

Read the full post

Post info:

Creating shortcuts for PowerCLI that automatically log you in.

So, I started a new job a couple of months ago and we have multiple vCenter environments.  My friend & temporary co-worker, Brian Spagna (@bspagna) and I both wanted to have shortcuts to launch PowerCLI windows and have a different background color for each to easily identify which environment we were in.  We thought it would be cool to have it automatically connect to it’s respective vCenter also! I recommend you upgrade to the latest version of PowerCLI (6.5.1) for

Read the full post

Post info:

Script to delete folder older than 30 days… by Name

I had a need, on one of my file servers, to delete some data that was older than 30 days, to clear space.  This would need to be a re-occurring task, so what better way to accomplish it than to script it! Here’s the rub…  The folders are each in a YYYYMMDD format (ex: 20170115), yet the content in the folders could be dated other than the folder name itself.  For instance, there could be a folder (say 20170626) that

Read the full post

Post info:

What do you do when a path to a NFS Datastore goes down?

My QA environment uses Isilon as it’s backend storage platform.  The Isilon share is one large storage volume that is setup with different paths (IPs) to the storage.  This environment has 6 datastores (6 paths).  The other day, we had one of those paths go down, taking down approx 75 VMs with it. I debated attempting to remove the down datastore and then add it back with the same name (with a different IP) but didn’t know what that would

Read the full post

Post info:

Adding a PowerShell Windows Update Script to my VMware Customizations

In my environments, we typically convert the templates to Virtual Machines once a quarter so we can install Windows Updates.  This means, there could be a number of patches to install if you’re 2+ months out from the last time they were updated.  So I decided to use a PowerShell script that my coworker wrote to do Windows Updates and run it during the Run Once phase of the vCenter Customizations. Typically, I have my customizations set to automatically login

Read the full post

Post info:

Patching VMware ESXi Hosts via PowerCLI!

*** Updated 5/17/2017 – See below *** This year, I’m trying something new…  Anything that I have to do more than 2-3 times, I’m going to attempt to automate it! In keeping with this mantra, I recently had a task come across my plate to patch the 20+ ESXi Hosts in one of my production environments.  Along with installing the latest Host Updates, I also wanted to upgrade Dell’s Open Manage Server Administrator to the latest version. In the past,

Read the full post

Post info:

Display list of Multiple vCenter Servers to connect to in your PowerCLI Scripts

If you’re company anything like mine, you probably have multiple vCenter servers in your environment.  They may be linked, they may not.  In my environment, we have 4 vCenter servers we consider Production, even though one is for QA, and we have a lab environment. Normally, I just connect to vCenter manually in PowerCLI before I run a command/script to make a change, run a report, etc.  But then I got to thinking, wouldn’t it be easier if I just

Read the full post

Posts navigation