ESX/ESXi includes an SNMP agent embedded in hostd that can both send traps and receive polling requests such as GET requests. This agent is referred to as the embedded SNMP agent. Versions of ESX prior to ESX 4.0 included a Net-SNMP-based agent. You can continue to use this Net-SNMPbased agent in ESX 4.0 with MIBs supplied by your hardware vendor and other third-party management applications. However, to use the VMware MIB files, you must use the embedded SNMP agent. By default, the embedded SNMP agent is disabled.
To enable it, you must configure it using the vSphere CLI command vicfg-snmp. For a complete reference to vicfg-snmp options, see vSphere Command-Line Interface Installation and Reference Guide. Prerequisites SNMP configuration for ESX/ESXi requires the vSphere CLI. Installing vSphere CLI and Running Commands on Windows The vSphere CLI installation package for Windows includes the ActivePerl runtime from ActiveState Software and required Perl modules and libraries. The vSphere CLI is supported on the following Windows platforms: - Windows XP SP2 32 bit - Windows XP SP2 64 bit - Windows Vista Enterprise SP1 32 bit - Windows Vista Enterprise SP1 64 bit
To install the vSphere CLI Package on Windows
To run a vSphere CLI command on Windows
From the vSphere CLI, type:
vicfg-snmp.pl --server --username --password -c
Replace 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
vicfg-snmp.pl --server --username --password --show
to display the current configuration of the embedded SNMP agent. You should now be able to monitor the device.