Creating dynamic traps, Creating dynamic traps” on – Sybase Adaptive Server Anywhere SNMP Extension Agent User Manual
Page 31

Chapter 1. The Adaptive Server Anywhere SNMP Extension Agent
Adaptive Server
Anywhere SNMP
Extension Agent traps
The Adaptive Server Anywhere SNMP Extension Agent sends a trap
whenever a connection is dropped by the database server. The OID of this
trap is
1.3.6.1.2.1.39.2.1
.
The only other traps sent by the Adaptive Server Anywhere agent are
dynamic traps.
☞
For more information about dynamic traps, see
Creating dynamic traps
A dynamic trap is a trap that is sent by the Adaptive Server Anywhere
Extension Agent when a simple expression involving the value of a
particular property, statistic, or option is true. Dynamic traps are created in
the
asasnmp.ini
file. The format of the trap information in the
asasnmp.ini
file entry is as follows:
Trap<trapnum>=[1.3.6.1.4.1.897.2.]<oid>[.<dbnum>] <op> <value>
trapnum
is the dynamic trap number. It must start at 1 and be sequential.
oid
is the OID of the property, statistic, or option. OIDs in either the
Adaptive Server Anywhere MIB or the RDBMS MIB are supported. If the
OID given is an invalid Adaptive Server Anywhere or RDBMS OID, the
Adaptive Server Anywhere MIB prefix (1.3.6.1.4.1.897.2.) is prepended.
☞
For a list of OIDs in the Adaptive Server Anywhere MIB, see
Server Anywhere MIB Reference” on page 23
☞
For a list of OIDs in the RDBMS MIB, see
dbnum
is the database number. This field is optional, but if specified, it
must match the database number of the [DB
n
] section of the
asasnmp.ini
file.
op
must have one of the following values:
♦
= or == (equality)
♦
!=, <>, or >< (inequality)
♦
<= or =< (less than or equal)
♦
>= or => (greater than or equal)
♦
< (less than)
♦
> (greater than)
19