Steps to configure SNMP v3 for ESXi
VMware vSphere ESXi
esxcli system snmp set -a SHA1 -x AES128
(-a = --authentication protocol and -x = --privacy protocol)
esxcli system snmp hash --auth-hash password1 --priv-hash password2 --raw-secret
esxcli system snmp set --users userid/auth-hash/priv-hash/priv
(userid = username, auth-hash = authentication hash value and priv-hash = privacy hash value)
esxcli system snmp set --users user2/-/-/none
esxcli system snmp set --enable true
esxcli system snmp test -u=USER -A=password1 -X=password2 -r
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