Configure SNMP for ESX/ESXi
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-SNMP-based 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.PrerequisitesSNMP 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.http://www.vmware.com/pdf/vsphere4/r40/vsp_40_vcli.pdf
Even the vSphere Basic System Administration guide refers to CLI http://www.vmware.com/pdf/vsphere4/r40/vsp_40_admin_guide.pdf , page 50-52.
SNMP SNMP on ESX 4 / vSphere
Syslog Tutorial: ESX 4.0 Syslog Configuration
(note) go to the end of file, make sure @ lines up with the above line.
*.debug @ipaddress
3. #service syslog restart
4. #esxcfg-firewall –openPort 514,udp,out,”Syslog”
5. #esxcfg-firewall -l
6. #esxcfg-firewall -q
<.snmpSettings.>
<.enable.>true<./enable.>
<.communities.>public<./communities.>
<.targets.>ipaddress@162/public<./targets.>
<./snmpSettings.>
<./config.>
3. #service snmpd restart
4. #esxcfg-firewall -e snmpd
Now, my question to you is, Should we use CLI? Am I behind the times? Or, Should VMware make these commands public in the Documenation, right next to the CLI method of Configuring SNMP?
Roger L.