VMware 4817V62 Administration Guide - Page 53
Con the SNMP Agent for Polling, Con SNMP Management Client Software - 6 5 documentation
View all VMware 4817V62 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 53 highlights
Chapter 5 Configuring Hosts and vCenter Server Procedure 1 From the vSphere CLI, type vicfg-snmp.pl --server --username --password -t @/. Replace , , and with the address of the target system, the port number to send the traps to, and the community name, respectively. Each time you specify a target with this command, the settings you specify overwrite all previously specified settings. To specify multiple targets, separate them with a comma. For example, to send SNMP traps from the host host.example.com to port 162 on target.example.com using the public community, type vicfg-snmp.pl --server host.example.com --username user --password password -t target.example.com@162/public. 2 (Optional) Enable the SNMP agent by typing vicfg-snmp.pl --server --username --password --enable. 3 (Optional) Send a test trap to verify that the agent is configured correctly by typing vicfg-snmp.pl --server --username --password --test. The agent sends a warmStart trap to the configured target. Configure the SNMP Agent for Polling If you configure the ESX/ESXi embedded SNMP agent for polling, it can listen for and respond to requests from SNMP management client systems, such as GET requests. 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 conflicting with other services, use a UDP port that is not defined in /etc/services. IMPORTANT Both the embedded SNMP agent and the Net-SNMP-based agent available in the ESX service console listen on UDP port 161 by default. If you enable both of these agents for polling on an ESX host, you must change the port used by at least one of them. Prerequisites 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. Procedure 1 From the vSphere CLI, type vicfg-snmp.pl --server --username --password -p . Replace with the port for the embedded SNMP agent to use for listening for polling requests. 2 (Optional) If the SNMP agent is not enabled, enable it by typing vicfg-snmp.pl --server --username --password --enable. Configure SNMP Management Client Software After you have configured a vCenter Server system or an ESX/ESXi host to send traps, you must configure your management client software to receive and interpret those traps. To configure your management client software, you must specify the communities for the managed device, configure the port settings, and load the VMware MIB files. Refer to the documentation for your management system for specific instructions for these steps. VMware, Inc. 53