6.7

Table Of Contents
n
Configure the ESXi SNMP agent by using the ESXCLI commands. See Getting Started with vSphere
Command-Line Interfaces for more information on how to use ESXCLI.
Procedure
1 If you are using authentication or privacy, get the authentication and privacy hash values for the user
by running the esxcli system snmp hash command with the --auth-hash and --priv-hash
flags.
For example, run the following command:
esxcli system snmp hash --auth-hash secret1 --priv-hash secret2
Here, secret1 is the path to the file containing the user's authentication password and secret2 is the
path to the file containing the user's privacy password.
Alternatively, you can pass the --raw-secret flag and specify the passwords directly on the
command line.
For example, you can run the following command:
esxcli system snmp hash --auth-hash authsecret --priv-hash privsecret --raw-secret
The produced output might be the following:
Authhash: 08248c6eb8b333e75a29ca0af06b224faa7d22d6
Privhash: 232ba5cbe8c55b8f979455d3c9ca8b48812adb97
The authentication and privacy hash values are displayed.
2 Configure the user by running the esxcli system snmp set command with the --users flag.
For example, you can run the following command:
esxcli system snmp set --users userid/authhash/privhash/security
The command accepts the following parameters:
Parameter Description
userid The user name.
authhash The authentication hash value.
vSphere Monitoring and Performance
VMware, Inc. 188