beautypg.com

Elements of a trap message, The [generic] section, B-12 – SMC Networks EliteView 6.20 User Manual

Page 168

background image

C

USTOMIZING

E

LITE

V

IEW

B-12

Elements of a Trap Message

The [generic] Section

The first section of the TRAP.INI file is the [generic] section. It defines the number of generic traps available and
identifies the events each trap triggers. Entries for this section use the following format:

n=Active_Flag,Event_Name,Message

The following table describes each item:

Example: Sample entry for [generic] section

[generic]

0=1,Trap,Cold Start!!
1=1,Trap,Warm Start
2=1,Trap,Link Down

3=1,Trap,Link Up

Table B-11 Elements of a Trap Message

Element

Description

enterprise

In a generic trap, this is the object identifier of the device that generates the trap (sysObjectID). In a
specific trap, this field contains an identifier used to differentiate the definition domain of the trap.

agent-addr

The network address of the device that issues the trap. If IP protocol is used, the agent-addr is the IP
address of the device.

generic-trap

An integer value that identifies the type of trap. Allowable values:
0 to 5 Identifies common conditions that occur in IP network operations; i.e., indicates that the trap

is a device generic trap.

6

Indicates that the trap is a device-specific trap.

specific-trap

An integer that identifies different device conditions; defined by the device vendor.

time-stamp

The sysUpTime variable. This is the time period from the initialization of the device to the moment
the trap is issued. This time period is expressed in hundredths of a second.

variable-bindings

A list of MIB variables with values related to a particular event.

Table B-12 Parameters of the [generic] Section

Parameter

Description

n=

Number of generic traps. Value ranges from 0 to 5

Active_Flag

Select either 0 or 1, where 1=active; 0=disabled (not processed)

Event_Name

The name of the event you wish to trigger

Message

The message displayed on the message box