Steps to configure SNMP v3 for ESXi
search cancel

Steps to configure SNMP v3 for ESXi

book

Article ID: 392294

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Steps to configure SNMP v3 for ESXi

Environment

VMware vSphere ESXi

Resolution

  • Run the esxcli system snmp set command to configure authentication:

esxcli system snmp set -a SHA1 -x AES128 

        (-a = --authentication protocol and -x = --privacy protocol)

  • Get the authentication and privacy hash values for the user by running the esxcli system snmp hash command:

esxcli system snmp hash --auth-hash password1 --priv-hash password2 --raw-secret

  • Configure the user by running the esxcli system snmp set command:

esxcli system snmp set --users userid/auth-hash/priv-hash/priv

(userid = username, auth-hash = authentication hash value and priv-hash = privacy hash value)

  • Configure second user with no authentication or privacy:

esxcli system snmp set --users user2/-/-/none

  • Enable SNMP on ESXi:

esxcli system snmp set --enable true

  • Test the user configuration by running the following command:

esxcli system snmp test -u=USER -A=password1 -X=password2 -r

Additional Information

https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere/8-0/vsphere-monitoring-and-performance-8-0/snmp-and-vsphere/configure-snmp-for-esx-esxi/configure-esxi-for-snmp-v3.html#GUID-2E4B0F2A-11D8-4649-AC6C-99F89CE93026-en