How to setup SNMP on ESXi 6.5

How to setup SNMP on ESXi 6.5

1: Select Host you want to turn SNMP on. 2: Configure and Security profile. 3: Services and edit

1: Highlight SSH. 2: Click Start and OK

Launch Putty and log onto host you enabled SSH on

Type the following or copy and paste.

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

When using ESXi Firewall you will need to allow SNMP.

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

NOTE: This opens up to Everyone.

You can configure it to specific IP addresses:

esxcli network firewall ruleset set –ruleset-id snmp –allowed-all false
esxcli network firewall ruleset allowedip add –ruleset-id snmp –ip-address 172.16.1.21/24
esxcli network firewall ruleset set –ruleset-id snmp –enabled true

The CMD to restart SNMP service

/etc/init.d/snmpd restart 

Leave a Reply

Your email address will not be published. Required fields are marked *