Morning vHealth Email From vSphere Health Check Report Script

December 30, 2011 in vHersey, VMware

The VMware vSphere Health Check Report is a free script written by @lamw (Check out his site virtuallyGhetto for some other handy scripts) that generates an HTML report on the health of a vSphere 4.x or 5.x environment. The report script is well documented, easily installed and configured, and can be downloaded from here: http://communities.vmware.com/docs/DOC-9842

I run the VMware vSphere Health Check Report script from my vSphere Management Assistant 5.0 (vMA). Each day at 6:00 AM the script is run to generate a nice HTML report of my vSphere environment and then email it to me.

Read the rest of this entry →

Enable SNMP Polling on an ESXi host

July 27, 2011 in vHersey, VMware

When using a third party network monitoring program (like Solarwinds Orion) you need to enable SNMP on your ESXi hosts. Setting up SNMP is pretty simple to do using vicfg-snmp on the VMware Management Assistant (vMA).

If the host is set up in FastPass, set the target ESXi.
$ vifptarget -s <Name/IP of ESXi host>

If the host is not set up in FastPass then –server, –username, and –password options can be used with vicfg-snmp.

To view the current SNMP configuration run.
$ vicfg-snmp -s

Current SNMP agent settings:
Enabled : 0
UDP port : 161

Communities :

Notification targets :

SNMP is not enabled and no community is set.

To set the community string:
$ vicfg-snmp -c <Community String>

Then enable SNMP
$ vicfg-snmp -E

The ESXi server will now respond to SNMP polling.
$ vicfg-snmp -s

Current SNMP agent settings:
Enabled : 1
UDP port : 161

Communities :
MyReadOnlyCommunity

Notification targets :

Saving a custom resxtop configuration

July 18, 2011 in DCA, VMware

The resxtop utility can be run from the vSphere Management Assistant (vMA). The resxtop utility is used to monitor CPU, memory, network, and disk utilization of vSphere ESX/i hosts.

There are a many different fields that can be displayed for each resource. When monitoring or troubleshooting a resource it is often helpful to only display necessary fields or to display fields other than the defaults. This is easily done by toggling available fields for a resource on or off and reordering the displayed fields. Once fields for a resource are set up as needed the configuration can then be saved to a file and recalled later when running resxtop.

In this example I want to monitor the I/O stats of the ESXi host’s disk adapters.

To run resxtop: resxtop –server <ESX/i Server Name or IP> –username <ESX/i Username>

I am prompted for the ESX/i password.

By default resxtop starts showing CPU resource utilization for the specified host.

Typing a question mark “?” while running resxtop will display help for the current resource and keys used to switch resources.


Hit any key to exit the help.

Read the rest of this entry →