Novell Home

Automate Your Directory Maintenance

Novell Cool Solutions: Trench

Digg This - Slashdot This

Posted: 22 Mar 2002
 

Christopher Lahiff has put together a slick collection of Stuffkey files that make it easy to run (and remember) those not-top-of-mind but should be top-of-list directory maintenance tasks.

To get the download, go here:
http://www.novell.com/coolsolutions/tools/#ndsauto.

To get the lowdown, read here:
Note *Cron is used as scheduler for launching the ncf files / scripts

Disclaimer: These should be tested before their use in a production environment. They are provided as a courtesy, and therefore unsupported.

Tested on DS 85.14 SP2 and 8.6.1 SP2/SP3 and 8.6.2 SP3.

For more information about NDS health check automation please read the readme.txt which describes additional DSTrace commands.

Stuffkey files:

Name Purpose
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}
Clrconn.stkDsrepair runs once with -n1 switch to clear connections, followed by a regular repair to clean database - Healthcheck
{logs Output to logfile SYS:SYSTEM\CLRCONN.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.


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell