Configuring Snmptrapd on Windows

In Windows environments too, the Snmptrapd package comes bundled with the eG agent package. To setup Snmptrapd on Windows, do the following:

  1. Install the eG agent. This will create the snmptrapd directory under the <EG_INSTALL_DIR>\agent directory.
  2. From the command prompt, switch to the <EG_INSTALL_DIR>\agent \snmptrapd directory, and execute the runTrapd.bat batch file to register the Snmptrapd as a service in Windows. 
  3. By default, snmptrapd will run on port 162 and will use the community string public. To have the SNMP daemon use a different port, edit the runTrapd.bat file and change the default port number 162 in the -p 162 specification of the file (indicated by Figure 1) to reflect a port of your choice. Similarly, you can change the default –c public specification in the file to reflect the community string that snmptrapd should use in your environment.

    Figure 1 : Default port number and community string

  4. Finally, start the Snmptrapd process by right-clicking on the eG Trap Receiver in the Services window (Start -> Programs -> Administrative Tools -> Services), and selecting the Start option from its shortcut menu.

Note:

  • Ensure that the port number and community string (default: public) specified in the runTrapd.bat file is the same as the SNMP port of the application or network device from which the SNMP traps originate.
  • To unregister the Snmptrapd service, run the unregistertrapd.bat file from the <EG_INSTALL_DIR>\agent \snmptrapd directory.
  • To change the configuration for the Snmptrapd log file size, modify the traploglength parameter in the eg_counter.ini file in the <EG_INSTALL_DIR>\agent\config directory.
  • To configure the SNMP Trap Receiver with SNMP v3 support, follow the steps discussed below:

    • Edit the runtrapd.bat file in the <EG_INSTALL_DIR>\agent \snmptrapd directory.
    • Ensure that -v parameter is set to 3 to support SNMP version 3. Also, since SNMP v3 does not support a community string, make sure that the -c parameter is set to none.
    • Then, ensure that valid values are provided for the following parameters in the runtrapd.bat file:

      • To configure the SNMP Trap Receiver with SNMP v3 support, follow the steps discussed below:

        • Edit the runtrapd.bat file in the <EG_INSTALL_DIR>\agent \snmptrapd directory.
        • Ensure that -v parameter is set to 3 to support SNMP version 3. Also, since SNMP v3 does not support a community string, make sure that the -c parameter is set to none.
        • Then, ensure that valid values are provided for the following parameters in the runtrapd.bat file:

        Parameter

        Value

        -e

        Engine ID

        -l

        Security level; this can be noAuthNoPriv, authNoPriv, or authPriv

        -u

        Security name or user name

        -a

        Authentication protocol; this can be MD5 (for Message Digest Algorithm) or SHA (for Secure Hash Algorithm)

        -A

        Authentication protocol pass phrase

        -x

        Privacy protocol; this can be des (for Data Encryption Standard)

        -X

        Privacy protocol pass phrase

        A sample entry has been provided below:

        -p 162 -v 3 -c none -e 80.00.08.1c.04.46.64 -l authNoPriv -u Kevin -a MD5 -A kvn1234 -x DES -X kvn12345

      • Finally, save the file.