Configuring Snmptrapd on Solaris

To setup Snmptrapd on Solaris, do the following:

  1. In Solaris, the Snmptrapd package comes bundled along with the eG agent package. Therefore, first, install the eG agent.
  2. Upon agent installation, the /opt/egurkha/agent/snmptrapd directory will be automatically created. This directory will contain the files check_trapd, start_trapd, and cron_trapd, and a sub-directoy named log.
  3. To start the Snmptrapd process, execute the command crontab cron_trapd from the /opt/egurkha/agent/snmptrapd directory.
  4. The start_trapd file will contain the port at which the Snmptrapd process listens for SNMP traps from SNMP agents. The default SNMP trap port is 162. However, in Solaris environments, a default Snmptrapd process already runs at this port. Therefore, for Unix environments, the port has been set to 6667. This default port setting can be modified by editing the port parameter of the start_trapd file.


    Ensure that the port number and community string (default: public) specified in the start_trapd file is the same as the SNMP port of the application or network device from which the SNMP traps originate.