This is really basics stuff, but here is a quick how to.
- Connect to your host through SSH or open the DCUI.
- Setup the target SNMP server, port and community string: # esxcli system snmp set –t <ip_or_fqdn>@/<community_string>
- Enable SNMP: # esxcli system snmp set –e yes
Verify the snmpd service is running and check if the ports are open on the host though vSphere Client or vSphere Web Client.
Please note that the esxcli system snmp namespace is available from vSphere CLI version 5.1.