Wednesday, June 09, 2010

SNMP CONFIGURATION

Me And My Friend Had worked on SNMP In VMware It's working .....
Enabling SNMP access and trap forwarding for VMware
IBM® Director 5.10.3 supports SNMP access and trap forwarding on VMware ESX Server, and will inter-operate with the ucd-snmp versions that ship with VMware ESX Server version 2.5.2 and 3.0.

These instructions apply only to using IBM Director SNMP support on VMware ESX Server.
Complete the following steps to enable SNMP access and trap forwarding for managed systems running VMware:
Download the net-snmp-5.2.1.tar.gz file from the Net-SNMP Web site at www.net-snmp.org/download.html.
Build and install the Net-SNMP libraries using the following steps.
Notes:
This procedure does not perform a full installation of Net-SNMP, but installs only the Net-SNMP libraries, which are required for IBM Director Core Services SNMP functions.
Refer to the INSTALL and README files included in the net-snmp-5.2.1.tar.gz package for additional installation information.
Untar the source files. Type the following command and press Enter.
tar -xvzf net-snmp-5.2.1.tar.gzChange to the source directory. Type the following command and press Enter.
cd net-snmp-5.2.1Build the Net-SNMP libraries with default options. Type the following commands (press Enter after each).
./configure --with-defaults
makeInstall the Net-SNMP libraries only to /usr/local/lib. Type the following command and press Enter.
make installlibsTo enable trap forwarding, edit the /etc/init.d/dacimlist file and uncomment the following two lines two lines in the SNMP End Consumer section.
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATHNote: The configuration changes will not take effect until you restart the cimlistener daemon in step 7.
To enable SNMP access, edit the /etc/init.d/dasnmp file and uncomment the following two lines in the section regarding the location of the net-snmp libraries.


LD_LIBRARY_PATH=/usr/local/lib


export LD_LIBRARY_PATHConfigure the SNMP daemon that ships with VMware to support AgentX agents. For details, see the VMware documentation at www.vmware.com/support/pubs/esx_pubs.html.


Create the file /usr/local/share/snmp/snmpd.conf to specify trapsink and trapcommunity settings. You might have to create the directory. This file should contain only settings for trapcommunity and trapsink.
 Specify a trap community value by adding a line containing the word trapcommunity followed by a space and the trapcommunity value, as in the following example.
trapcommunity publicSpecify a trapsink value for each destination to which IBM Director will send SNMP traps. Add a line containing the word trapsink followed by a space and the trapsink value, as in the following example.
trapsink 192.168.1.1Restart the cimlistener daemon by typing the following commands and pressing Enter after each:
/etc/init.d/dacimlist stop
/etc/init.d/dacimlist startRestart the IBM Director AgentX subagent by typing the following commands and pressing Enter after each:
/etc/init.d/dasnmp stop
/etc/init.d/dasnmp start

No comments:

Post a Comment

acm bottom ad