Sybase Adaptive Server Anywhere SNMP Extension Agent manual SET Option PUBLIC.opt = ’value’

Page 29

Chapter 1. The Adaptive Server Anywhere SNMP Extension Agent

Setting values using the Adaptive Server Anywhere SNMP Extension Agent

The Adaptive Server Anywhere SNMP Extension Agent responds to SNMP get, get-next, and set queries.

You can set any database option, some server properties, and one database property using the Adaptive Server Anywhere SNMP agent.

When setting database options, the Adaptive Server Anywhere SNMP agent executes the statement:

SET OPTION PUBLIC.opt = ’value

When setting database and server properties, the sa_server_option system procedure is used.

The way you set these values depends on your SNMP management software.

For the OIDs and information about the options and properties that can be set with the Adaptive Server Anywhere SNMP Extension Agent, see “The Adaptive Server Anywhere MIB” on page 24 .

Executing stored procedures using the Adaptive Server Anywhere SNMP Extension Agent

The Adaptive Server Anywhere MIB includes an OID that allows you to execute a stored procedure using the Adaptive Server Anywhere SNMP Extension Agent. In order to execute the stored procedure, the user that the Adaptive Server Anywhere SNMP Extension Agent uses to connect must have one of the following:

execute permission on the procedure

be the owner of the procedure

have DBA authority

Any result sets or return values generated by the procedure are ignored.

To execute a stored procedure using the Adaptive Server Anywhere SNMP Extension Agent, set the value of asaAgent.asaProc (OID 1.3.6.1.4.1.897.2.3.5.db, where db is the database number in the asasnmp.ini file) to a string that is the name of a stored procedure. Optionally, you can supply arguments to the procedure; if no arguments are supplied, parentheses ( ) are appended to the procedure name.

17

Image 29
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 AsaMetaData tables Adaptive Server Anywhere MIBAgent 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 RdbmsDbInfoTable Rdbms MIBRdbmsDbTable 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