Skip to content

Instantly share code, notes, and snippets.

@gsmitheidw
Created June 12, 2019 15:32
Show Gist options
  • Select an option

  • Save gsmitheidw/dcdf1c899d8b523000af673d40141b36 to your computer and use it in GitHub Desktop.

Select an option

Save gsmitheidw/dcdf1c899d8b523000af673d40141b36 to your computer and use it in GitHub Desktop.
# Enable SNMP on ESXi 6.*
# Note: this is not secured SNMP3
#
esxcli system snmp set --communities Public
esxcli system snmp set --enable true
esxcli network firewall ruleset set --ruleset-id snmp --allowed-all false
esxcli network firewall ruleset allowedip add --ruleset-id snmp --ip-address 192.168.1.0/24
esxcli network firewall ruleset set --ruleset-id snmp --enabled true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment