Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using cron.nlm to reboot server

Status
Not open for further replies.

jlfiller

Technical User
May 22, 2001
80
US
I want to reboot one of my Netware 4.11 servers once a week. I thought I'd use CRON to do it.

Here's my crontab file
#perform DSREPAIR every night at 4:00 am
0 3 * * * LOAD DSREPAIR -u
# reboot the server every Saturday night at 11 pm
# 0 23 * * 6 REBOOT

The DSREPAIR performs fine, the cronlog shows the REBOOT command, but the server has been up for 13 days, so it didn't really happen.

Any suggestions? TIA JL Filler,Wilton Public Schools, Wilton CT
 
Do you have a reboot.ncf file? If so what is in it & where is it located on the volume.

Cheeers,

Mark ;-)
 
REBOOT is not a NetWare command to reboot or restart a server. I agree with yvfwc that a REBOOT.NCF would work, however this would have to be in SYS:SYSTEM and would have to contain someithing like:

REMOVE DOS
DOWN
EXIT -----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
Yes, I do have a REBOOT.NCF on the SYS: volume in the SYSTEM directory

REMOVE DOS
DOWN
EXIT

I forgot that I wrote that one -- I have it on all my servers. JL Filler,Wilton Public Schools, Wilton CT
 
turns out it is waiting for a response to "do you really, really, really want to shut down this server" (well, something like that) and so it was just sitting there. I'll have to figure out how to push in a Y response. JL Filler,Wilton Public Schools, Wilton CT
 
there is an nlm called stuffkey that may be of use to you. You should be able to find it on support.novell.com

If its a reboot you want rather than a down try changing "down" to "restart server"

Lee Smith
Associated Network Services
Snr Systems Engineer
Lee.Smith@ANSPLC.Com
 
'restart server' only works in Novell 5, doesn't it? This is a 4.11 server. I'll have to check that out.

I thought I remembered a utility for putting responses into an NLM question -- thanks for the name, now I think I can get it going! JL Filler,Wilton Public Schools, Wilton CT
 
If memory serves, RESET SERVER only works in NetWare 5, using RESTART SERVER on NetWare 4 should be ok? -----------------------------------------------------
"It's true, its damn true!"
-----------------------------------------------------
 
stuffkey is working beautifully! I can even use it to sign on to backup exec a half hour later so I don't have to remember to do it. JL Filler,Wilton Public Schools, Wilton CT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top