You will need to create an interface file entry called 'SCmaster', or change the scripts to point to whatever server you're going to install the SYBCONTROL database on. The SYBCONTROL tables should be created using the schema in sql/sybcontrol.sql. From there, you insert records into the tables in SYBCONTROL indicating which hosts should be monitored. Inserting records into the tables is not yet well documented, but may be apparent upon inspecting the Perl scripts.
monitor/reccheck.pl
monitor/repthreads.pl
monitor/sybprocess.pl
monitor/sybreppulse.pl
local/sybbackup.pl
local/syblogwatch.pl
lib/MonWrap.pm
lib/SybInfo.pm
bin/genif.pl
bin/genschema.pl
bin/synclogins.pl
bin/showmap.pl
bin/spaceused.pl
bin/tables.pl
sql/bouncerepagent.sql
sql/fast_count.sql
sql/sc_production.sql
sql/sc_reorg.sql
sql/sybcontrol.sql
sql/sybstats.sql
sql/sc_dumpprocs.sql
Script which checks table usage amongst all the servers under sybcontrol's
eye. Stores space utilization statistics in SYBCONTROL.
Script which connects to each replication server in the system and watches for
suspended connections, downed rep agents, etc. It sends alerts if it finds
that anything has gone awry.
Script which connects to each ASE server in the system and checks for locked
transactions, space usage nearing maximum, and isql connections.
Script which connects to every master database in the system and updates its
repl_timestamp table. This provides an easy-to-read view of how far behind a
replica is.
Script which is meant to be run on the physical server which an ASE is using.
It can automatically back up every replicated database on the machine, or it
can be instructed as to which to back up. Errors are sent to stdout, which
cron then mails to the appropriate person.
Script which watches for activity in Sybase's error logs and sends emails if
the logs grow. It's like a 'tail -f' process.
Wrapper module around Mon::Client which greatly reduces the code needed by the
various monitoring scripts. By changing this file, one could use NetSaint or
any other monitoring system, or just have pages sent via email.
Perl module which simplifies the process of determining which databases are
replicated by a given repserver, what the sysusages table is saying about the
server in question, etc.
Perl script which dumps the sybservers tables from SYBCONTROL into an interface
file. This can be used to validate that everything is being monitored.
Perl script which dumps schemas from Sybase databases. It is not reliable with
certain forms of named defaults, however its main value is writing replication
definitions and shell BCP dump/load scripts automatically, to populate
subscription replicas with.
Perl script used by SA's to set up the 'expected' list of logins on each
server, as defined by SYBCONTROL.
Perl script used by SA's to determine the space utilization of a database.
Used for when sybprocess.pl indicates that space is running low.
Perl script used to determine approximate row counts and exact space allocation
for each table in a database. Can be used to estimate fragmentation.
Useful perl script for listing the tables in a database, or automatically
generating DDL to run against them. Often used in conjunction with the other
scripts.
Stored procedure invoked by repthreads.pl when it detects a rep agent which
has gone down. If present, this proc is invoked to restart the rep agent.
Stored procedure which returns a table's row count based on Sybase's stats.
Those do get out of date, but this is unobtrusive and is a good choice for using
with spaceused.pl.
Stored procedure used to mark whether or not a server is considered
'production' or not. If the db is production, dev logins active on it will set
off an alarm.
Two stored procedures which perform non-intrusive reorgs on indices and on
tables. Using a stored procedure means being able to disable perfmaint.pl's
attempts to reorg a certain server by disabling its access to the stored procs.
Schema for all the control tables in the SYBCONTROL database.
Schema for the tables in the SYBSTATS database, which are used to store usage
information. This can be used for per-db or per-table trending analysis using
tools of your own preference (custom CGIs, Access, etc).
Two stored procedures for use with sybbackup.pl, one for dumping databases, the
other for dumping transactions.
Acknowledgements (in alphabetical order by last name)