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] sectio n. It defines the number of generic traps available and

identifies the events each trap triggers. Entries for this section use the following for mat:

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. Allo wable values:
0 to 5 Identifies common conditions that occur in IP network op e r at i o n s ; i. e . , i n d ic a t e s t h at t h e t r ap
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 initializa tion 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 generi c traps. Value ranges from 0 to 5
Active_Flag Select either 0 or 1, where 1=activ e; 0=disabled (not processed)
Event_Name The name of the event you wish to trigger
Message The message displayed on the message box