During these days I had necessity to enable SNMP community on Cluster ESXi Server 6.7 U2.
Here they are steps that I did for each host:
- Enable SSH on each server.
- Through command line giving these commands:
esxcli system snmp set --communities ruffinoro
esxcli system snmp set --enable true - Verify Firewall rules and enable traffic:
esxcli network firewall ruleset set --ruleset-id snmp --allowed-all true
esxcli network firewall ruleset set --ruleset-id snmp --enabled true - To restrict IP access to SNMP community to a specific range you might use below commands:
esxcli network firewall ruleset set --ruleset-id snmp --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id snmp --ip-address 10.155.0.0/16
esxcli network firewall ruleset set --ruleset-id snmp --enabled true - Start SNMP Service via GUI or command line:
/etc/init.d/snmpd (re)start - Be aware that snmp is case sensitive
- Disnable SSH on each server.