Configuring SNMP on an ESX/ESXi 4.0 or later

Ensure that the SNMP configuration exists at /etc/vmware/snmp.xml and looks similar to:

<config>
<snmpSettings>
<communities>public</communities>
<enable>true</enable>
</snmpSettings>
</config>

Ensure that there are no white spaces or extra line breaks in the /etc/vmware/snmp.xml file.

If you do not see the file, or you get an “Load persistent store failed” error, you can delete the file and recreate it: 
  1. To create the file manually:
    1. Run this command to rename the /etc/vmware/snmp.xml file as snmp.xml.old:mv snmp.xml snmp.xml.old
    2. Create a new snmp.xml file using a text editor. For example, to create the file using the vi editor, run this command:vi /etc/vmware/snmp.xml
    3. Copy and paste these lines to the file:<config>
      <snmpSettings>
      <communities>public</communities>
      <enable>true</enable>
      </snmpSettings>
      </config>Note: Ensure that you do not have any extra line breaks or white spaces before or after the text.
    4. Save the file.
    5. Run this command to restart the VMware Management service for ESX4.x: service mgmt-vmware restart  OR for ESX 5.x: /etc/init.d/hostd restart

You may also like