Revision as of 14:20, July 5, 2017 by Pmcknigh (talk | contribs) (Installing Net-SNMP)
Jump to: navigation, search

SNMP Prerequisites

Starting in release 8.5.1, you can use Net-SNMP, instead of the Genesys SNMP Master Agent component, to implement SNMP functionality. Net-SNMP supports everything that Genesys SNMP Master Agent does. Genesys strongly recommends that you use the newest version of Net-SNMP Master Agent to make your SNMP configuration as robust as possible.

Net-SNMP and Genesys SNMP Master Agent can run in parallel on the same system, if the following conditions are met:

  • Only one SNMP Master Agent can be configured on each Solution Control Server (SCS).
  • The ports used by each SNMP Master Agent must be unique, and not used by any other application.

Solution Control Server and Local Control Agent support both implementations.

Installing Net-SNMP

If you choose to use Net-SNMP in addition to, or instead of, Genesys SNMP Master Agent, you must install Net-SNMP on all hosts where you need an SNMP Master Agent to reside. Use the following instructions, according to the operating system running on that host.

To install and configure Net-SNMP on Windows 64-bit Platforms, use the following steps:

1. Download and run Net-SNMP as follows: [+] Show steps
2. Register (or unregister, if required) the Net-SNMP Services by running the appropriate .bat file, all of which are located in the Net-SNMP installation folder. [+] Show files
After registration, the files are located in the following locations: [+] Show file locations
3. Modify the Net-SNMP configuration file, snmpd.conf to define system-specific parameters, as follows: [+] Show steps If it shows the port, then the port is open.
  • To enable AgentX functionality and open the AgentX port, add the following lines to the configuration file:
    Master agentX
    agentxsocket tcp:<host_address>:<port_num>

    where:

    • <host_address> is the IP address of the host on which Net-SNMP is running.
    • <port_num> is any valid port number. This port must not be used by any other process.
  • Configure the SNMP version. Do one of the following:
    • For SNMP v1 or SNMP v2, add the following lines to the configuration file:
      rocommunity public
      rwcommunity private
      These parameters are similar to the read_community and write_community configuration options in an SNMP Master Agent.
    • For SNMP v3, add the following lines to the configuration file:
      # VACM configuration entries
      rwuser <username>
      # create and add a user
      createUser <username> MD5 <md5_password> <DES des_password>

      You can check if SNMP v3 has been configured successfully by running the following command:

      C:\>snmpget -v3 -u <username> -n "" -l authNoPriv -a MD5 -A <md5_password> <localhost> sysUpTime.0

      If any output is displayed, then SNMP v3 has been successfully configured.

      You can also create another user based on the initial user by running the following command:

      C:\>snmpusm -v3 <username> -u initial -n "" -l authNoPriv -a MD5 -A <md5_password> <localhost> create <newuser> initial
  • 4. Configure the MIB Browser for the version of SNMP you are using. Do one of the following: [+] Show settings
    5. Modify the Net-SNMP configuration file, snmpd.conf, to define where SNMP traps are to be sent, as follows: [+] Show changes
    6. Prepare start and stop scripts to start and stop Net-SNMP as a service, as shown below. The path and filename of these scripts are stored in the annex of the SNMP Master Agent Application objects.

    Start script, for example startsnmp.bat

    net start "<netsnmp_servicename>"
    net start "<netsnmptrap_servicename>"

    Stop script, for example stopsnmp.bat

    net stop "<netsnmp_servicename>"
    net stop "<netsnmptrap_servicename>"

    Prerequisites:

    • You must be logged in as root.
    • The Red Hat Package Manager (RPM) files (RPMs) must have execute permission. If you are unsure, give full permission by running the following command:
    $chmod –R 777 *

    To install and configure Net-SNMP on Linux 64-bit Platforms, use the following steps:

    1. Download and install the RPM files, as follows: [+] Show steps
    The installation places the Net-SNMP files in the following locations, unless otherwise specified during the installation: [+] Show files
    2. Modify the Net-SNMP configuration file, snmpd.conf to define system-specific parameters, as follows: [+] Show steps
    3. Configure the MIB Browser for the version of SNMP you are using. Do one of the following: [+] Show settings
    4. Modify the Net-SNMP configuration file, snmpd.conf, to define where SNMP traps are to be sent, as follows: [+] Show changes
    5. Prepare start and stop scripts, based on the commands provided in Starting and Stopping Net-SNMP. The path to these scripts are stored in the annex of the SNMP Master Agent Application objects.

    Prerequisites:

    • You must be logged in as root.
    • The RPM files must have execute permission. If you are unsure, give full permission by running the following command:
    $chmod –R 777 *

    To install and configure Net-SNMP on AIX 64-bit Platforms, use the following steps:

    1. Download and install the RPM files, as follows: [+] Show steps
    The installation places the Net-SNMP files in the following locations, unless otherwise specified during the installation: [+] Show files
    2. Add the path of the snmpd binary to the PATH environment variable, as follows: [+] Show steps
    3. Modify the Net-SNMP configuration file, snmpd.conf, to define system-specific parameters, as follows: [+] Show steps
    4. Configure the MIB Browser for the version of SNMP you are using. Do one of the following: [+] Show settings
    5. Modify the Net-SNMP configuration file, snmpd.conf, to define where SNMP traps are to be sent, as follows: [+] Show changes
    6. Prepare start and stop scripts, based on the commands in Starting and Stopping Net-SNMP. The path to these scripts are stored in the annex of the SNMP Master Agent Application objects.

    Prerequisites:

    • You must be logged in as root, with execute permission. If you are unsure, give full permission by running the following command:
    $chmod –R 777 *

    To install and configure Net-SNMP on Solaris 10 64-bit Platforms, do the following steps:

    1. Download and install the Net-SNMP package files, as follows: [+] Show steps
    The installation places the Net-SNMP files in the following locations, unless otherwise specified during the installation: [+] Show files
    2. Add the path of the Snmpd binary to the PATH environment variable, as follows: [+] Show steps
    3. Modify the Net-SNMP configuration file, snmpd.conf, to define system-specific parameters, as follows: [+] Show steps
    4. Configure the MIB Browser for the version of SNMP you are using. Do one of the following: [+] Show settings
    5. Modify the Net-SNMP configuration file, snmpd.conf, to define where SNMP traps are to be sent, as follows: [+] Show changes
    6. Prepare start and stop scripts, based on the commands provided in Starting and Stopping Net-SNMP. The path to these scripts are stored in the annex of the SNMP Master Agent Application objects.

    Starting and Stopping Net-SNMP

    If you have installed Net-SNMP on a Windows 64-bit platform, start and stop Net-SNMP as a service, using Windows Service Manager.

    Otherwise, use the following commands to start or stop Net-SNMP running on a UNIX host:

    Action Command
    Start Net-SNMP $service snmpd start
    Stop Net-SNMP $service snmpd stop
    Check Net-SNMP status $service snmpd status
    Restart Net-SNMP $service snmpd restart
    Comments or questions about this documentation? Contact us for support!