How to install and configure SNMP Adapter Config Manager?

Version 2
    Share:|

    This document contains official content from the BMC Software Knowledge Base. It is automatically updated when the knowledge article is modified.


    PRODUCT:

    BMC Event Manager - Enterprise Base


    APPLIES TO:

    BMC Event Manager - Enterprise Base



    QUESTION:

    How to install and configure SNMP Adapter Config Manager?


    ANSWER:

     

    01 - Make sure you have installed PERL in Impact Solutions Machine.

      

    Perl requirements
    The installation script for the BMC ProactiveNet Agent installs and starts the BMC Impact Event Adapters. However, the installation script does not install Perl, which is required by the Event Adapters. You must separately install Perl 5.12 or later before you install the Event Adapters.

      

    You need to download and install PERL; I've used ActivePerl (http://www.activestate.com/activeperl)

    02 - If a Linux installation, ensure that the 'bc' binary has been installed.  For example:
    # which bc
    /usr/bin/bc

    Your SysAdmin can get this installed for you.

      


    03 - Need to download and install SNMPAdapter; 'BEIM_7400_SNMPAdapterConfigManager'; this package can be downloaded from EPD.

      

    04 - Follow the steps below in order to install and configure the 'BEIM_7400_SNMPAdapterConfigManager_Windows.zip'.

      

     Download and install JDK 1.6.xx; JRE environment (like the one included with Impact Solutions) is not enough.

      

     Install Perl 5.8.12

      

     Unzip 'BEIM_7400_SNMPAdapterConfigManager_Windows.zip'; and install using 'EAConf_win'

      

     During the install use choose the 'C:\SNMPAdapter'; instead of default 'C:\Program Files\'; point it at the newly installed JDK and perl installation; and confirm installation of 'net-snmp' libraries; when it asks if it should use the existing Tomcat installation choose NO.

      

     Assign port numbers for the new tomcat installation; at the end of the install, when it asks if it should start tomcat, Choose NO.

      

     Find SNMPAdapterConfigManager's catalina.bat file 'C:\SNMPAdapter\jakarta-tomcat-5.0.25\bin\catalina.bat'
     
     Add a line that sets the CATALINA_BASE environment variable to the location of SACM's jakarta directory.

      

     
     ex.
     set CATALINA_HOME=C:\SNMPAdapter\jakarta-tomcat-5.0.25
     
     Inside same file Search for MCELL_HOME; you will find two entries in block below :
     
     echo %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -Djava.util.logging.config.file=%LOG_PROPERTIES% -DMCELL_HOME="D:\\PROGRA~1\\BMCSOF~1\\Impact\\server\\" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
     %_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -Djava.util.logging.config.file=%LOG_PROPERTIES% -Djava.security.policy="%SECURITY_POLICY_FILE%"  -DMCELL_HOME="D:\\PROGRA~1\\BMCSOF~1\\Impact\\server\\" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%
     goto end

      

     Update the values :
     
     ex.
     
     -DMCELL_HOME="D:\\PROGRA~1\\BMCSOF~1\\Impact\\server\\"
     
      
     
     Find SNMPAdapterConfigManager's startup.bat file 'C:\SNMPAdapter\jakarta-tomcat-5.0.25\bin\startup.bat'
     
     Add a line that sets the CATALINA_BASE environment variable to the location of SACM's jakarta directory.

      

     ex.
     set CATALINA_HOME=C:\SNMPAdapter\jakarta-tomcat-5.0.25

      

     Open up a web browser pointed at the new tomcat location.
     
     
    05 - Configure the BMC Event Adapter.

      

     Edit %MCELL_HOME%\etc\mcxa.conf
     
     Search for block below; and remove disable; make sure default port (162) is available

      

     # ------------------------------------------------------------------------------
     # EXAMPLE OF ESnmpTrap ADAPTER --Remove 'DISABLE' to enable adapter--
     # ------------------------------------------------------------------------------
     [Snmp]
     Engine  = MA::ESnmpTrap
     # --Modify the following value(s) according to your environment--
     # Replace by the actual destination cell (if different from the global)
     ServerName = <Cellname you planning to get the events>

      

     
     Search for block below; and remove disable.

      

     
     # ------------------------------------------------------------------------------
     # EXAMPLE OF CtrlPort ADAPTER --Remove 'DISABLE' to enable adapter--
     # ------------------------------------------------------------------------------
     
     # Note: Security of the CtrlPort is based upon the assumption that the
     # only personnel who can login to the machine where mcxa is running are
     # those who are authorized to control mcxa, including shut it down.
     # IF THIS ASSUMPTION IS INCORRECT, THEN DO NOT ENABLE THE CTRLPORT,
     # and do not plan on using the mcxactrl.pl program to control mcxa.
     # The mcxactrl.pl program uses the CtrlPort to send commands to mcxa.
     [CtrlPort]
     Engine               = MA::Adapter::CtrlPort
     MaxClients           = 10
     RestartInterval      = 30
     LocalPort            = 1998

      

     Save the file.
     
     

      

    07 - Add 'http://hostname:port/snmpAdapter or http://ipaddress:port/snmpAdapter' to trusted sites.
     
    08 - Through Windows Services start 'BMC Event Adapters 7.4.00'
     
    09 - Start the SNMP Adapter Configuration Manager; this should open a command prompt window.

      

     ex.
     C:\SNMPAdapter\jakarta-tomcat-5.0.25\bin\startup.bat
     
    10 - Point out your browser to 'http://hostname:port/snmpAdapter or http://ipaddress:port/snmpAdapter'

      

     Import/Publish MIBs

      

     Copy the new baroc files to the BPPM cell.
     
     From :
      
     %MCELL_HOME%\bin\mcsnmptrapdmib.baroc
     %MCELL_HOME%\bin\mcsnmptrapdmibe.baroc

      

     To :
     
     %MCELL_HOME%\etc\<Cellname>\kb\classes

      

     Edit '%MCELL_HOME%\etc\<Cellname>\kb\classes\.load'; and add the mcsnmptrapdmibe and mcsnmptrapdmib in this order (mcsnmptrapdmibe loaded before mcsnmptrapdmib).

      

     Recompile; restart the cell.
     
     %MCELL_HOME%\server\etc\<cellname>\kb\mccomp -t manifest.kb
     mcontrol -n <cellname> reload kb

    If all goes well you should now be receiving snmp traps through the cell.

     


    Article Number:

    000015736


    Article Type:

    FAQ/Procedural



      Looking for additional information?    Search BMC Support  or  Browse Knowledge Articles