Previous Topic: Specify TrapReceiver Storm Window Setting

Next Topic: SystemEDGE Trap Forwarding

SNMP Trap Receiver Configuration File

The trapreceiver.conf configuration file is an XML-like file that contains all of the SNMP Trap Receiver settings. This file is provided so you can change these settings as needed. You can configure settings to enable trap blocking, format traps, send traps to CA Server Automation Event Manager, or convert traps into CIM_SNMPTrapIndications. These traps can be sent to the Product Management Modules (PMMs). You can configure the file dynamically without restarting Apache for all settings except for SNMPPort which requires you to restart Apache. All other changes take effect 30 seconds after you save them.

Locate the trapreceiver.conf file in the Install_Path\CA\productname\config directory and open with a text editor.

Configuration parameters include the following:

SNMPPort

Defines the UDP port to which Trap Receiver connects and listens for incoming SNMP traps. If another application is connected to the port specified by this parameter, Trap Receiver does not start. Instead, it logs a message to the Event Manager and attempts to reconnect to that port every 30 seconds. If this parameter is modified with a new port number, Trap Receiver attempts to connect to the new port.

Default: 162

Note: If you change the SNMPPort setting after Trap Receiver is connected to the SNMP port, restart Apache for the new port to take effect.

TrapStormTimer

Prevents duplicate trap handling. A configurable value prevents identical traps from coming in more often than the TrapStormTimer value setting. If the value is set to 0, then trap storm is disabled.

Default: 30

PreFilter

Filters all incoming SNMP traps before being evaluated by the Converter or Subscriber components in the configuration file.

Default: All Traps

FilterType

Applies only to the PreFilter. Options include the following:

positive

Determines which traps are permitted to pass for handling.

negative

Determines which traps are blocked.

Default: positive if <FilterType>negative</FilterType> or <FilterType>positive</FilterType> is not included.

Note: If you specify the asterisk * for all fields in negative prefilters, then all prefilters are disabled and traps are blocked.

ConvertToDCAEvent (Including Filter and Format)

Specifies a descriptive name for the converted trap and can be duplicated when specifying other trap names.

Example: <Converter Name="eHealthTrap25">

Format

Specifies a string containing %s to represent the values that are defined by the list of varbind values below the format string.

Varbind

Specifies the variables that are used to replace the %s in the format string.

Valid values include the following:

SourceIP

EnterpriseOID

GenericTrapID

SpecificTrapID

Note: The SpecificTrapID filter entry is only evaluated if generic type from the incoming trap is 6 (enterpriseSpecific). If GenericTrapID is * and the generic type from the incoming trap is 0-5, then both GenericTrapID and SpecificTrapID are matches.

Varbind1, Varbind2 - up to and including the number of expected varbinds in the trap. The number of variables below the Format must match the number of %s values in the Format.

EventSource

(Optional) Substitutes the SourceIP of the trap to another value, such as a specific varbind of the incoming trap. Some incoming traps originate from the manager and are not from the node were the trap originated.

Default: SourceIP

EventTarget

(Optional) Substitutes the localhost node name with a value from the incoming trap, such as a specific varbind.

Default: localhost

SubscribedIndicationHandlers (Including Filter and Topic)

Specifies a descriptive name for the subscriber and can be duplicated when specifying other trap names.

Example: <Subscriber Name="SUNZoneAim_PMM">

Topic

Specifies the ActiveMQ topic name where messages are sent for CA Server Automation.

Filter

These settings apply to Filter and PreFilter. They allow incoming traps to be evaluated to determine if each Converter or Subscriber uses them. If the PreFilter blocks traps, then the other Filters do not evaluate them.

SourceIP

Specifies any regular expression string variable that is a subset of the range of IP addresses.

Examples:

111.*.*.*

112.223.*.*

112.223.334.5

*

Limits: IPv4 addresses only.

EnterpriseOID

Specifies any regular expression string variable that is a subset of the range of enterprise OIDs. Use backslash (\) before any period (.) that appears in the regular expressions. The period (.) is a special character in regular expression syntax.

GenericTrapID

Specifies an integer-based regular expression that is used to compare the trap Protocol Data Unit (PDU) TrapType field. Valid values are *, a single integer 0 through 6, or a range (0-1) or (0-6).

Valid SNMP TrapType values include the following:

coldStart(0)

warmStart(1)

linkDown(2)

linkup(3)

authenticationFailure(4)

egpNeighborloss(5)

enterpriseSpecific(6)

SpecificTrapID

Specifies an integer-based regular expression that is used to compare the trap PDU’s TrapType field.

Valid values can be one of the following:

*

A single integer

A range from (1200-2225) or (165201-165299)

Comments

Specifies comments which can be on the same line or separate lines.

<!--

Defines the beginning of a comment.

-->

Defines the end of a comment.

Example:

<!-- If the port is already connected, it does not change dynamically. Restart Apache. -->