Simple Network Management Protocol (SNMP) allows management programs to monitor and control networked devices. You can manage vSphere 5.0 SNMP agents with vicfg-snmp commands discussed here.
Important Significant enhancements to SNMP, including support for SNMP v3, are included in ESXi 5.1.The new functionality is managed through ESXCLI commands. See the vSphere Monitoring and Performance documentation that is available in the vSphere 5.1 Documentation Center.
■ vCenter Server SNMP agent. The SNMP agent included with vCenter Server can send traps when the vCenter Server system is started or when an alarm is triggered on vCenter Server. The vCenter Server SNMP agent functions only as a trap emitter and does not support other SNMP operations (for example, GET).
■ Host-based embedded SNMP agent. ESXi 4.0 and later includes an SNMP agent embedded in the host daemon (hostd) that can send traps and receive polling requests such as GET requests.You can manage SNMP on ESXi hosts with the vicfg-snmp vCLI command, but not with the vSphere Client or with the ESXCLI command.
■ Net-SNMP-based agent. Versions of ESX released before ESX/ESXi 4.0 include a Net-SNMP-based agent. You can continue to use this Net-SNMP-based agent in ESX 4.x with MIBs supplied by your hardware vendor and other third-party management applications. However, to use the VMware MIB files, you must use the host-based embedded SNMP agent.To configure SNMP communities, run esxcli system snmp set or vicfg-snmp -c, specifying a comma-separated list of communities. For example:esxcli <conn_options> system snmp set -t target.example.com@163/publicYou can change the port that the SNMP agent sends data to on the target using the --targets option. That port is UDP 162 by default.The agent sends a warmStart trap to the configured target.
2 Run vicfg-snmp --target with the target address, port number, and community.You can change the port that the SNMP agent sends data to on the target using the --targets option. That port is UDP 162 by default.The agent sends a warmStart trap to the configured target.By default, the embedded SNMP agent listens on UDP port 161 for polling requests from management systems. You can use the vicfg-snmp command to configure an alternative port. To avoid conflicts with other services, use a UDP port that is not defined in /etc/services.
1 Run vicfg-snmp --target with the target address, port number, and community.You can change the port that the SNMP agent sends data to on the target by using the --targets option. That port is UDP 162 by default.
4 Run vicfg-snmp - -test to validate the configuration.
1 Run vicfg-snmp --target with the target address, port number, and community.You can change the port that the SNMP agent sends data to on the target by using the --targets option. That port is UDP 162 by default.
4 Run vicfg-snmp - -test to validate the configuration.