Sybase SNMP subagent
Configuring trap generation from Adaptive Server
30
This command should walk through and return values for several MIBs
including RDBMS-MIB. For more information on the SNMP command line
tool issue
man snmpwalk
The Sybase subagent allows a Sybase server to generate a trap through a
remote procedure call,
trap is generated containing the values in its parameters.
used from within any stored procedure. You may want, for example, to use this
mechanism in the implementation of your
To use this:
•
The Sybase SNMP agent contains an Open Server implementation. Add
an entry for the Sybase SNMP agent to your $SYBASE/interfaces file. Use
the rpcPort value you specified in snmpagent.cfg as its port address. The
name of the server can be any valid server name.
•
Add the Sybase subagent as a remote server to your Adaptive Server using
. Use the same name you specified in the interfaces file entry.
sp_addserver
You can let the server type default to Adaptive Server.
•
Enable
cis rpc handling
cis_rpc_handling
•
Issue the
sp_errornotify
<snmpsubagentname>...sp_errornotify
servername,errno,serverity,state,username,spid,
engine,msg
servername
errno
severity
state
username
spid
engine
msg
The values given are not validated by the SNMP agent, they are simply
converted to variables to the sybRaiseError trap defined in SYBASE-MIB.
and
.
man snmcmd
. When the remote procedure is called, a
sp_errornotify
sp_thresholdaction
by running
sp_configure
prior to the procedure call.
procedure using this syntax:
- The name of the server (@@servername)
- The error number (integer)
- The error severity (integer)
- The error state (integer)
- Adaptive Server user name
- Server process id (@@spid)
- The engine number (integer)
- The text of the error message
can be
sp_errornotify
actions.
, or issue the command
set
Need help?
Do you have a question about the Adaptive Server Enterprise 12.5.x and is the answer not in the manual?