Novell Home

Unloading / Reloading the eDirectory DirXML Driver

Novell Cool Solutions: Tip
By Chad Israel

Digg This - Slashdot This

Posted: 21 Jul 2005
 

Problem

At night we were running CRON jobs to take DIB sets with DSRepair, but often our eDirectory DirXML driver would fail to start the backup when the database was unlocked. So I wrote dirxmlrestart.ncf. It's a simple script to unload and reload DirXML with a time delay. You can put this script in your CRON job after your DSRepair commands.

Solution

Here's the sample dirxmlrestart.ncf script:

#dirxmlrestart.ncf
#set time out to 2 minutes
set command line prompt time out=120
unload dirxml
#wait 120 seconds
?y
#often dirxml does not unload on the first attempt
unload dirxml
#wait 120 seconds
?y
#its best to wait a few minutes before reloading
load dirxml
#set the time out back to default
set command line prompt time out=10


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

© 2014 Novell