CHAPTER 1 Installing Adaptive Server
29
##
./etc/rc.common
if ["${SNMPSERVER:=-NO-}" = "-YES-" ]; then
ConsoleMessage "Starting SNMP server"
/usr/sbin/snmpd -x 705
fi
Sybase subagentTo install the Sybase SNMP subagent, first edit snmpagent.cfg in
/Applications/Sybase/System/SNMP-1_0 to include entries for each server that
is to be monitored. There is no limit to the number of servers that can be
monitored by the Sybase subagent.Typically , the subagen t resides on the s ame
machine as the monitored server. The snmpagent.cfg file contains
documentation for configuration settings.
To test the Sybase subagent, you can start it from the command line by
executing:
java -jar $SYBASE/SNMP-1_0/lib/SybaseAgent \
-c $SYBASE/SNMP-1_0/snmpagent.cfg
A log file is produced in the location specified in snmpagent.cfg, or in
./SybaseAgent.log if a log file location was not specified.
Once the Sybase subagent is configured, you can set it up to automatically run
at system start-up by moving the Sybase Agent folder to /Library/StartupItems,
as described in “Starting Sybase services automatically” on page 27.
MIB filesThe mibs directory contains the MIB definitions that are supported by the
Sybase subagent. Install these into your network management system. If you
are going to use the SNMP command line tools that come with the Net-SNMP
distribution, you must copy these mibs into /usr/share/snmp/mibs. Once this is
done, you can issue a test query:
setenv MIBS RDBMS-MIB
snmpwalk -nc public localhost