Enable SNMP on ESXi 5.5

000174_2015-07-30 11_27

This is a quick guide on how to configure ESXi 5.5 hosts for SNMP monitoring. I use Observium to monitor and collect information about devices on my home network that support SNMP. This allows me to have an in-depth look at devices on my network as well as see metrics that go far into the past.

First we need to SSH to the ESXi host you would like to enable SNMP on. To do that we first need to make sure that SSH is enabled on the host.

Ensure that SSH is enabled on the ESXi Host:

  1. Go to the configuration tab, then select Security Profile
  2. Select Properties with Services, then select SSH Server
  3. Click the Start button once to start the service for now

000175_2015-07-30 11_33

Using an SSH client, such as Putty, connect to your ESXi host. Then run the following commands:

esxcli system snmp set -c public
esxcli system snmp set -l warning
esxcli system snmp set -e yes

That’s it! You can change the “public” string to whatever your preferred community name is. Now you can disable SSH on the host if you prefer. Then add the host into your SNMP monitoring tool. Wait 5-10 minutes for discovery and your finished.

000173_2015-07-30 11_26

SSD Emulated Virtual Disks for Nested ESXi

I came across a gotcha scenario when trying to deploy vSAN in my home lab. When adding disks to the nested ESXi server all of the disks are detected as regular ol’ spindle disks regardless of the actual underlying storage. So I was in need of a method to emulate an SSD device. Truth be told there are actually many other reasons why you might want to emulate a SSD disk.

The solution is easy! It’s just one simple edit to the virtual machine’s configuration file (VMX). As long as you’re running virtual machine hardware version 8 or later you can configure a specific virtual disk to appear as an SSD.

scsiX:Y.virtualSSD = 1

X represents the controller ID and Y is the disk ID of the virtual disk.