- SSH or Telnet to your ESXi node using root-level credentials.
- Execute the following commands. Replace YOUR_STRING with your desired community string.
esxcli system snmp set --communities YOUR_COMMUNITY_STRING
esxcli system snmp set --enable true
esxcli system snmp set --communities YOUR_COMMUNITY_STRING
esxcli system snmp set --enable true