Sybase Adaptive Server Anywhere SNMP Extension Agent manual Trap examples

Page 32

Note

Only equality or inequality are supported for string values.

value is the value to use in the expression. String values may be enclosed in single or double quotes; these quotes will not be included in the value. If you want the beginning or closing quotation marks to be included in the string, you must double them. Note that single quotes occurring within the string should not be doubled.

You can specify as many trap fields as you wish in the asasnmp.ini file. The OID used for the trap will be 1.3.6.1.4.1.897.2.4.1, and the data sent with the trap will indicate the trap number of the trap that was sent.

You can specify as many Trap fields as you wish in the asasnmp.ini file. The OID used for the trap will be 1.3.6.1.4.1.897.2.4.1, and the data sent with the trap includes the following:

the trap number (starts at 1 for the first dynamic trap sent by the Adaptive Server Anywhere SNMP agent)

the database index

the database name trap index (from the asasnmp.ini file)

the variable name

the variable value (this is the current value of the variable, not necessarily the threshold value)

Dynamic trap behavior Once a dynamic trap is triggered, the trap is not be sent again until the condition that caused it to be triggered changes to FALSE and then back to TRUE again.

For example, if you have a dynamic trap set using 1.1.11.1 >= 5120, then the trap is triggered when the server’s cache size reaches 5 MB (= 5120 KB) and the dynamic trap is disabled, so no more traps are sent. The only way the trap is re-enabled is if the cache size later drops below 5 MB. You would then be notified if the cache size grew to 5 MB again.

Trap examples

Trap information

Description

 

 

Trap1=1.1.5 > 10000

Trap sent when the number of bytes sent from the

 

server is greater than 10 000

Trap2=1.3.6.1.2.1.39.1.4.1.4.14.1 >= 10485760

Trap sent if the size of the transaction log file is

 

larger than 10 MB

 

 

20

Image 32
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 Adaptive Server Anywhere sample database Asademo.dbFinding 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 Adaptive Server Anywhere MIB Files\Sybase\SQL Anywhere 9\snmp\iAnywhere.mibMIB Rdbms MIB Using the Adaptive Server Anywhere Snmp Extension Agent Installing SnmpTo 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’ Using traps To configure the Snmp serviceCreating dynamic traps Trap examples Adaptive Server Anywhere Snmp Extension Agent Reference Page Adaptive Server Anywhere MIB Reference AsaMetaData tables Adaptive Server Anywhere MIBAgent AsaSrvMetaData.asaSrvPropMetaDataTable AsaDbMetaData.asaDbPropMetaDataTable Server statistics AsaDbMetaData.asaDbOptMetaDataTableOID 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 RdbmsDbInfoTable Rdbms MIBRdbmsDbTable RdbmsDbParamTable Rdbms MIB ReferenceRdbmsDbLimitedResourceTable Write FileRdbmsSrvTable RdbmsSrvInfoTableRdbmsSrvParamTable RdbmsSrvLimitedResourceTableIf this is 0, then it returns prop Page Index Index Cooperativecommittimeout option Index Index Odbcdescribebinaryasvarbinary Pinnedcursorpercentofcache ReadOnly property Truncatetimestampvalues option Installing Snmp Windows XP