Chapter 1. The Adaptive Server AnywhereSNMP Extension Agent
AdaptiveSer ver
AnywhereSNMP
ExtensionAgent traps
TheAdaptive Server Anywhere SNMP Extension Agent sends a trap
whenevera connection is dropped by the database server. The OID of this
trapis 1.3.6.1.2.1.39.2.1 .
Theonly other traps sent by the Adaptive Server Anywhere agent are
dynamictraps.
Formore information about dynamic traps, see “Creating dynamic
traps”on page 19.
Creating dynamic traps
Adynamictrap is a trap that is sent by the Adaptive Server Anywhere
ExtensionAgent when a simple expression involving the value of a
particularproperty, statistic, or option is true. Dynamic traps are created in
the
asasnmp.ini
file. The format of the trap information in the
asasnmp.ini
fileentry is as follows:
Trap<trapnum>=[1.3.6.1.4.1.897.2.]<oid>[.<dbnum>] <op> <value>
trapnum isthe dynamic trap number. It must start at 1 and be sequential.
oid isthe OID of the property, statistic, or option. OIDs in either the
AdaptiveServer Anywhere MIB or the RDBMS MIB are supported. If the
OIDgiven is an invalid Adaptive Server Anywhere or RDBMS OID, the
AdaptiveServer Anywhere MIB prefix (1.3.6.1.4.1.897.2.) is prepended.
Fora list of OIDs in the Adaptive Server Anywhere MIB, see “Adaptive
ServerAnywhere MIB Reference” on page 23.
Fora list of OIDs in the RDBMS MIB, see “RDBMS MIB Reference”
onpage 41.
dbnum isthe database number. This field is optional, but if specified, it
mustmatch the database number of the [DB
n
]section of the
asasnmp.ini
file.
op musthave one of the following values:
=or== (equality)
!=,<>,or >< (inequality)
<=or=<(less than or equal)
>=or=>(greater than or equal)
<(lessthan)
>(greaterthan)
19