SNMP Configuration for Vmware Esxi 5/6

Related Post

  • No related post.

How to enable SNMP on ESXi 5 / 5.5 / 6

There are a few steps involved in getting SNMP functional on ESXi. They go something like this.

  • Set the SNMP community string
  • Enable the SNMP service
  • Add necessary firewall rules
  • Enable the added firewall rule
  • Restart the SNMP daemon

esxcli system snmp set –communities PUBLIC
esxcli system snmp set –enable true

esxcli network firewall ruleset set –ruleset-id snmp –allowed-all true
esxcli network firewall ruleset set –ruleset-id snmp –enabled true

You can change the firewall rule to only allow a specific subnet or host if you would like to.
esxcli network firewall ruleset set –ruleset-id snmp –allowed-all false
esxcli network firewall ruleset allowedip add –ruleset-id snmp –ip-address <SNMP HOST >
esxcli network firewall ruleset set –ruleset-id snmp –enabled true

/etc/init.d/snmpd restart