Before you enable the ESX/ESXi embedded SNMP agent, you must configure at least one community for the agent.

An SNMP community defines a group of devices and management systems. Only devices and management systems that are members of the same community can exchange SNMP messages. A device or management system can be a member of multiple communities.

SNMP configuration for ESX/ESXi requires the vSphere CLI. For information on installing and using the vSphere CLI, see vSphere Command-Line Interface Installation and Reference Guide.

From the vSphere CLI, type vicfg-snmp.pl --server <hostname> --username <username> --password <password> -c <com1>.

Replace <com1> with the community name you wish to set. Each time you specify a community with this command, the setings you specify overwrite the previous configuration. To specify multiple communities, separate the community names with a comma.

For example, to set the communities public and internal on the host host.example.com, you might type vicfg-snmp.pl --server host.example.com --username user --password password -c public, internal.