You are here:

ActiveXperts.com > Network Component > SNMP Trap Receiver Service
ActiveXperts Network Component

Quicklinks

Network Component - SNMP Trap Receiver Service

The SNMP Trap Receiver Service is a utility that ships with Network Component. The program runs as a Windows service (in the background), without a user infterface, and stores incoming traps in a database (MS Access database by default). Configuration settings are stored in a plain ASCII file.

The SNMP Trap Receiver Service features the following:

  • Support for SNMP v1 and SNMP v2c;
  • Support for aplphanumeric OID's (object identifier) and numeric OID's;
  • Support for the following data types: Interger, Interger32, Bits, Octetstring, OID (Object Identifier), Sequence, IP Address, Counter32, Counter64, Timeticks, Opaque, Unsigned32
  • Support for all OLE/DB compliant databases, including MS Access;
  • Support for other ports than the default port 162;
  • Advanced logging;
  • Multi-threaded architecture for maximum performance;
  • Software is running in the background.

Installation of the SNMP Trap Receiver Service

When Network Component is installed, the 'SNMP Trap Receiver Service' is not installed by default. Only the program file (ASTrpSvc.exe) is installed. You need to run the SNMP Trap Receive 'Installation and Configuration' program first to register and run the program as a service, like this:

  • Click 'Start', point to 'All Programs' and click 'ActiveXperts';
  • Click 'Network Component', click on 'SNMP Trap Receiver Service' and launch the 'Installation and Configuration' program;
  • The wizard will guide you through the process of installing and running the service.

Database

The 'SNMP Trap Receiver Service' stores all incoming traps in an MS Access database. This database file is called SNMPTRAPS.MDB and is located in the <INSTALL>\SERVICE directory. You can change the database location from the CONFIG.INI file (explained below).

Logging

The 'SNMP Trap Receiver Service' logs all SNMP- and database operations in a log file called SNMPTRAPS.LOG. It is located in the <INSTALL>\SERVICE directory. You can change the log file location from the CONFIG.INI file (explained later). Here, you can also set log operation levels and enable/disable logging.

Configuration of the SNMP Trap Receiver Service

All configuration items are stored in a plain text file. After installation of the service adds the following value to the registry:

HKLM\Software\ActiveXperts\Network Component\SnmpTrapReceiver\ConfigFile

This value points to the configuration file of the service. By default, this value points to the CONFIG.INI file located in the same directory as the service executable:

C:\Program Files\ActiveXperts\Network Component\Service\Config.ini

You can edit this configuration file manually, using your favorites text editor. The following items can be configured:

  • Port - Port used by the service to listen for incoming SNMP traps. Default: 162
  • Community - SNMP community name. Default: public
  • Database - OLE/DB database connection string
  • Log - Enabled Use this value to enable/disable logging. 0 means: disabled; 1 means: enabled
  • LogLevel - Indicates the logging level. 0 indicates: minimal logging; 1 indicates: average logging; 2 indicates: maximum logging
  • LogFile - Name of the log file

Uninstallation of the SNMP Trap Receiver Service

To uninstall the SNMP Trap Receiver Service, use the same program as used to install the service. The program has the option to uninstall the service.