Sybase Adaptive Server Anywhere SNMP Extension Agent manual Creating dynamic traps

Page 31

 

Chapter 1. The Adaptive Server Anywhere SNMP Extension Agent

 

 

Adaptive Server

The Adaptive Server Anywhere SNMP Extension Agent sends a trap

Anywhere SNMP

whenever a connection is dropped by the database server. The OID of this

Extension Agent traps

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” on page 19 .

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 “Adaptive Server Anywhere MIB Reference” on page 23 .

For a list of OIDs in the RDBMS MIB, see “RDBMS MIB Reference” on page 41.

dbnum is the database number. This field is optional, but if specified, it must match the database number of the [DBn] 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

Image 31
Contents Adaptive Server Anywhere Snmp Extension Agent User’s Guide Page Contents Page About This Manual SQL Anywhere Studio documentation Page Page Documentation conventions Following icons are used in this documentation Asademo.db Adaptive Server Anywhere sample databaseFinding out more and providing feedback Using the Adaptive Server Anywhere Snmp Extension Agent Page Adaptive Server Anywhere Snmp Extension Agent Agent are included in your SQL Anywhere Studio installation Adaptive Server Anywhere Snmp Extension Agent Understanding Snmp Files\Sybase\SQL Anywhere 9\snmp\iAnywhere.mib Adaptive Server Anywhere MIBMIB Rdbms MIB Installing Snmp Using the Adaptive Server Anywhere Snmp Extension AgentTo restart the Snmp service Control Panel Configuring the Adaptive Server Anywhere Snmp Extension Agent To restart the Adaptive Server Anywhere Snmp Extension Agent Page ASAAgent DB1 Software SET Option PUBLIC.opt = ’value’ To configure the Snmp service Using trapsCreating dynamic traps Trap examples Adaptive Server Anywhere Snmp Extension Agent Reference Page Adaptive Server Anywhere MIB Reference Agent Adaptive Server Anywhere MIBAsaMetaData tables AsaSrvMetaData.asaSrvPropMetaDataTable AsaDbMetaData.asaDbPropMetaDataTable AsaDbMetaData.asaDbOptMetaDataTable Server statisticsOID Server properties OID Database statistics OID Database properties OID Adaptive Server Anywhere MIB Reference Database options Adaptive Server Anywhere MIB Reference OID Adaptive Server Anywhere MIB Reference OID Rdbms MIB Reference RdbmsDbTable Rdbms MIBRdbmsDbInfoTable Rdbms MIB Reference RdbmsDbParamTableWrite File RdbmsDbLimitedResourceTableRdbmsSrvInfoTable RdbmsSrvTableRdbmsSrvLimitedResourceTable RdbmsSrvParamTableIf this is 0, then it returns prop Page Index Index Cooperativecommittimeout option Index Index Odbcdescribebinaryasvarbinary Pinnedcursorpercentofcache ReadOnly property Truncatetimestampvalues option Installing Snmp Windows XP