View VMWare VSwitch configuration


To view VMWare vswitch configuration.

Run the below.

esxcfg-vswitch -l

Advertisements

Esxi – Add historical stats to go over the 1 hour limit


The free version of esxi only allows you to view 1 hour of data through the vsphere tool.

To enable further historical stats simply amend the configuration file located within /etc/vmware/hostd directory. Amend the historical stats figure from false to true.

vi /etc/vmware/hostd/config.xml
<!-- Enable historical stats collection -->
<historicalStatsEnabled> true </historicalStatsEnabled>

Esxi – Add SNMP


To add SNMP to free esxi 5.0 do the below.

Log onto esxi CLI

vi /etc/vmware/snmp.xml

Make the following amendments detailed below

<config>
<snmpSettings>
<communities>public</communities>
<enable>true</enable>
<port>161</port>
<targets>YOURSERVERIPHERE@161 public</targets>
</snmpSettings>
services.sh restart

The server should now be available to be polled via snmp.