Configure SNMP for ESXi through SSH
esxcli system snmp set --communities public
esxcli system snmp set --targets **IP SNMP SERVER*****@Port No/public
esxcli system snmp set --enable true
esxcli system snmp test
esxcli system snmp get
esxcli system snmp set --targets **IP SNMP SERVER*****@Port No/public
esxcli system snmp set --enable true
esxcli system snmp test
esxcli system snmp get