Previous Topic: Configure Windows for SNMP

Next Topic: Configure CA Server Automation to Forward Events


Configure SNMPv1 Traps by Editing the sysedge.cf File

The sysedge.cf file located in the SystemEDGE\data\port<n> directory contains definitions for SNMPv1 trap communities, which tell SystemEDGE where to send SNMPv1 trap messages. You can configure trap destinations and SNMPv1 communities during SystemEDGE installation or by editing the sysedge.cf file. You can configure the agent to send traps to any number of management systems.

Important! Before you edit the sysedge.cf file on the monitored server, verify that SystemEDGE runs in unmanaged mode, that is, the server is not registered in Policy Configuration. If SystemEDGE runs in managed mode, Policy Configuration in CA Server Automation can overwrite your changes.

To configure SNMPv1 traps by editing sysedge.cf

  1. Navigate to the SE_Install_Dir\data\port<num> directory (Windows) or to the SE_Install_Dir/config/port<num> directory (UNIX, Linux) and create a backup copy of the sysedge.cf file.
  2. Open sysedge.cf in a text editor and locate the trap destination section in the upper part of the file.

    The trap destination section contains a brief description of trap destinations and communities.

  3. Add a line at the end of the trap destination section for each management system to which you want to send SNMPv1 traps. Use the following syntax:
    trap_community community-name [IP-address | hostname] [port-number] 
    
    community-name

    Specifies the SNMP community; for example, public or admin.

    IP-address

    (Optional) Specifies the IP address of the target system.

    Default: 127.0.0.1

    hostname

    (Optional) Specifies the name of the target system.

    Default: localhost

    port-number

    (Optional) Specifies a port to send the trap to.

    Default: 162

  4. Save and close the file.
  5. Do one of the following options:

Example

Add the following lines to sysedge.cf to send traps with a community-name of mycommunity to two systems. The first system has the IP address 192.168.5.26. The second system is the host atlanta-noc and listens on port number 1692.

trap_community mycommunity 192.168.5.26
trap_community mycommunity atlanta-noc 1692

Note: sysedge.cf only defines SNMPv1 trap communities. For information about configuring SNMPv2c or SNMPv3 traps, see the SystemEDGE User Guide installed in the SE_Install_Dir\doc directory (Windows) or in the /opt/EMPsysedge/doc directory (UNIX, Linux).