Before configuring remote users on the ESXi SNMP agent, user must first configure these users in the SNMP client software that will receive the informs from the ESXi agent. See Configuring SNMPv3 inform users in SNMP client software.
Configuring remote users requires using the esxcli command-line interface. For more information, see Getting Started with vSphere Command-Line Interfaces.
To configure remote users in the ESXi SNMP agent:
/var/log/syslog.log file or by other means.esxcli system snmp set -r -e 1 -l debug.esxcli system snmp get. Authentication:Communities:Enable: trueEngineid: 00000063000000a10a70a977 # Generated EngineID of ESXi SNMP AgentHwsrc: indicationsLoglevel: debugNotraps:Port: 161Privacy:Remoteusers:Syscontact:Syslocation:Targets:Users:V3targets:esxcli system snmp set -E remote-engine-ID. remote-engine-ID is the engine ID for the SNMP client application that the user determined in step 1. For example, if the engine ID of the remote client is E80001f880430783031323334, user would type:esxcli system snmp set -E 80001f880430783031323334esxcli system snmp set -a auth-proto -x AES128. auth-proto is either MD5 or SHA1.esxcli system snmp hash -A auth-key -X priv-key -r. Authhash: 0283a199a828b5106caa0c439b78a4bePrivhash: 1e9ea5ce85d6dc49878c2597642009d5esxcli system snmp set -E local-engine-ID. esxcli system snmp set -E 00000063000000a10a70a977esxcli system snmp set –R username/auth-protocol/auth-hash/priv-protocol/priv-hash/remote-engine-ID. user1 with no authentication and no privacy, type:esxcli system snmp set -R user1/none/-/none/-/80001f880430783031323334user2 with authorization, but no privacy, type:esxcli system snmp set –R user2/MD5/0283a199a828b5106caa0c439b78a4be/none/-/80001f880430783031323334user3 with authorization and privacy, type:esxcli system snmp set –R user3/MD5/0283a199a828b5106caa0c439b78a4be/AES128/1e9ea5ce85d6dc49878c2597642009d5/80001f880430783031323334 esxcli system snmp set -i hostname@port/userid/secLevel/inform.user1 with no authentication or privacy on the host 10.112.170.205, type:esxcli system snmp set -i 10.112.170.205@2262/user1/none/inform user2 with authentication but no privacy, type:esxcli system snmp set –i 10.112.170.205@2263/user2/auth/informuser3 with authentication and privacy, type:esxcli system snmp set –i 10.112.170.205@2264/user3/priv/inform SNMP inform test
After user has configured the SNMP agent for informs, test the configuration by typing esxcli system snmp test.
The SNMP client software should receive a notification similar to the following:
2012-07-05 14:09:19 <UNKNOWN> [UDP: [10.112.169.119]:57878->[10.112.170.205]:2264]:DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (9100) 0:01:31.00 SNMPv2-MIB::snmpTrapOID.0 = OID: SNMPv2-SMI::enterprises.6876.4.90.0.401 SNMPv2-SMI::enterprises.6876.4.30.3.0 = Hex-STRING: 07 DC 07 05 09 02 21 00