Tag: vSphere 5.5

7th June 2016 · Luca Sturlese

Recently I needed to configure all of our 50 or so ESXi hosts to forward SNMP traps to our corporate monitoring solution. This meant enabling and configuring SNMP on each of the hosts. Naturally, I wrote a script for this as 50 hosts is way too many to do manually.

This article shows you how configure SNMP on an ESXi host manually, via PowerCLI and via host profiles.

Read More “How To – Configure SNMP on an ESXi Host”

14th November 2015 · Luca Sturlese

If you have ever managed a VMware environment that contains virtual machines with RDM (Raw Device Mapping) disks then you will know it is a pain to track and manage RDMs, especially when trying to distinguish which VM has a specific RDM disk attached or if the RDM is still attached to a VM. You will also know that it is nearly impossible to find an RDM (and the corresponding VM) based on RDM’s LUN ID.

To ease the management burden of RDMs, I have written a script to search for a specific RDM by LUN ID or alternatively to get a list of all RDMs, their LUN ID, Capacity, Disk Identifier and the VM they are attached to. Below is the script and all of the details you need to get it up and running in your environment…

Read More “Searching for RDM Disks using PowerCLI”

6th September 2015 · Luca Sturlese

To coincide with my new PowerShell Logging Module, I have also updated my PowerCLI Script Template to now use the PSLogging module as opposed to my original PowerShell_Logging function library.

This template is based on my PowerShell Script Template Version 2, but has been modified for use with PowerCLI so that you can easily create scripts and solutions to automate your VMware world!

Below is everything you need to know on the PowerCLI template, as well as the template itself…

Read More “PowerCLI Script Template v2”

12th August 2015 · Luca Sturlese

I recently ran into a problem were virtual machines running Windows 8 and Server 2012 don’t ever come back from a reboot, but rather get stuck on the Windows boot splash screen. The only work around to get the machine to boot is to manually power it off and then power it on again.

Good news is, there is a solution to this crazy weirdness; and it is documented below…

Read More “Fix – Windows 8 and Server 2012 virtual machines don’t ever reboot”

5th August 2015 · Luca Sturlese

Recently I needed to find if any virtual machines had been deployed or cloned on a particular day (in order to troubleshoot a storage issue).

The Tasks & Events view in the VI client only shows the last few days of events, so if you need to get events from an older date the only way is through PowerCLI.

Here is how to do get a list of events from vCenter Server using PowerCLI…

Read More “Get vCenter Events using PowerCLI”