> cool solutions home   > cool tools home
NDS Maintenance Automation
Stuffkey commands for automating NDS maintenance tasks.
Reader Rating    from ratings rate this article
View a Printer Friendly Version of this Page Send this page to a friend
vitals
Updated: 3 Sep 2002
Created: 16 Feb 2002
File Size: 27KB
License: Free
Download 1:  ndsauto.zip
Publisher: Christopher Lahiff
E-mail: cplahiffTAKETHISOUT@tampabay.rr.com
disclaimer
Please read the note from our friends in legal before using this file.
details

REMEMBER TO ALWAYS TEST IN LAB ENVIRONMENT BEFORE PUTTING ANY FILES INTO PRODUCTION ENVIRONMENT.

9-3-2002 Update: Changes to Readme.txt only.

ALL FILES with exceptions of Cron.msg and Crontab should be copied into sys:system

CRONTAB file {NO FILENAME EXTENSION) must reside in SYS:\ETC This is your schedule file.
Please edit file as necessary

CRON.MSG must be in SYS:\SYSTEM\NLS\4A sample crontab file is included

Note *Cron is used as scheduler for launching the ncf files / scripts and must be in loaded in autoexec.ncf.

Disclaimer: These should be tested before putting in a production environment. Provided as a courtesy, and therefore unsupported.

Tested on DS 85.14 SP2 and 8.6.1 SP2/SP3 and 8.6.2 SP3 and SP4
SP on above line refer to OS service pack and not DS service packs.

For more STUFFKEY information please see Novell TID 2948742
For more CRON information please see Novell TID 10024685

Stuffkey files:

NamePurpose
Clrconn.stkDsrepair runs once with -n1 switch to clear connections, followed by regular repair to clean database - Healthcheck
{logs Output to logfile SYS:SYSTEM\CLRCONN.LOG}
Chktime.stkChecks timesync of servers - Healthcheck
{logs Output to logfile SYS:SYSTEM\TIMESTAT.LOG}
Cleandb.stkDsrepair runs twice with database locked and rebuilds operational schema and local reference options selected - Healthcheck
{logs Output to logfile SYS:SYSTEM\CHKDB.LOG}
Comphlth.stkChecks timesync of servers - Automates repair of network addresses on server
Checks replica sync of replicas on servers - Healthcheck
{logs Output to logfile.SYS:SYSTEM\TIMESTAT.LOG;NETADDR.LOG;SYNCSTAT.LOG|
Fixaddr.stkAutomates repair of network addresses on server - Healthcheck
{logs Output to logfile SYS:SYSTEM\NETADDR.LOG}
Obtstamp.stkDsrepair runs twice with DSREPAIR -OT switch to timestamp obituaries - Healthcheck
{logs Output to logfile SYS:SYSTEM\OBTSTAMP.LOG}
Syncstat.stkChecks replica sync of replicas on servers - Healthcheck
{logs Output to logfile SYS:SYSTEM\SYNCSTAT.LOG}

At the end of each script a basic Healthcheck is kicked off on each server with the following switches:

SET DSTRACE =NODEBUG
SET DSTRACE =ON
SET DSTRACE =+S
SET DSTRACE =+PART
SET DSTRACE =*U
SET DSTRACE =*H

Following by a 30-second pause, the DSTRACE screen is turned off and the following switches are set:

SET TTF=OFF
SET DSTRACE=NODEBUG
SET DSTRACE=*H
SET DSTRACE=OFF

Each file contains a description of its purpose/use and has an associated ncf file that calls it.

NCF Files for viewing DSTRACE screen
ALLBCK.ncf     DSTRACE View Background processes
ALLBKOFF.ncf     DSTRACE Turns off Trace screen
HAMMER.ncf     DSTRACE View a lot of switches
LIMBER.ncf     DSTRACE View Limber process
PURGOBIT.ncf     DSTRACE Pushes Obits along
SCHEMA.ncf     DSTRACE Pushes schema update
SHLTHCHK.ncf     DSTRACE Healthcheck + schema
THLTHCHK.ncf     DSTRACE Healthcheck + schema + ttf=on
TRACEOFF.ncf     DSTRACE Shuts down trace screen sets to nodebug
VDSTRACE.ncf     DSTRACE TTF set to off. EDIT DStrace.dbg file