Page 1 of 1 1
Topic Options
#100160 - 2003-04-03 04:52 PM Kixtart hangs when mapping nonexistent resource
ScriptinSteve Offline
Lurker

Registered: 2003-04-03
Posts: 2
Hello all. I have a flaky server on my domain that contains some net shares used by a few departments. Lately the server has been crashing in the morning and when users try to map the nonexistent resource during login, Kix hangs and the users have a hard time getting anything else mapped.

Does anyone have suggestions for a "map resource timeout value" or other way to make the Kixtart script more bulletproof to nonexistent resources?

CASE INGROUP("ATLKIXDTS")
? " DTS (Subset of NetEng)"
use k: /DEL
use k: "\\atlneteng\mdb"
use l: /DEL
use l: "\\atlneteng\apps"
use m: /DEL
use m: "\\atlneteng\allshare"
use p: /DEL
use p: @HOMESHR
etc etc...

Thanks for your help!

Steve

Top
#100161 - 2003-04-03 05:01 PM Re: Kixtart hangs when mapping nonexistent resource
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
The mappings will time out (eventually), but of course each one will got through the time out.

What you can do depends on how the server has crashed. In some circumstances you will get responses to ping connectivity checks, so that may not determine if the server is up.

A simple solution for you to mimimise the time that it takes is to check @ERROR after your first mapping to the dodgy server. If the first mapping fails skip the other mappings to the same server, and send an alert via mail, mesg or event log to let you know there is a problem.

Top
#100162 - 2003-04-03 05:38 PM Re: Kixtart hangs when mapping nonexistent resource
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
quote:
Does anyone have suggestions for a "map resource timeout value" or other way to make the Kixtart script more bulletproof to nonexistent resources?
Instead of trying to make your Kixtart script more bulletproof, make your server more bulletproof.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#100163 - 2003-04-03 05:43 PM Re: Kixtart hangs when mapping nonexistent resource
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
And secondly set your server to reboot automatically after the crash. However, I have to agree that you should cure the disease and not the symptoms.

[ 03. April 2003, 17:45: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#100164 - 2003-04-03 05:49 PM Re: Kixtart hangs when mapping nonexistent resource
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Steve,

What you could do is an exist..

code:
IF EXIST("\\atlneteng\mdb")
use k: /DEL
use k: "\\atlneteng\mdb"
ENDIF

This is discussed in the KiXtart FAQ & How to's Forum.

If we look at the topic: File Operations

And..
4. Test for Drive existence with notification

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#100165 - 2003-04-03 06:54 PM Re: Kixtart hangs when mapping nonexistent resource
ScriptinSteve Offline
Lurker

Registered: 2003-04-03
Posts: 2
Kdyer hit the nail on the head with the IF EXIST suggestion. Testing for the presence of shares before mapping them is a great idea. We'll consider rolling this out at work.

Thanks to everyone for their input. This is an excellent forum!

Thanks,

Steve

[ 03. April 2003, 19:04: Message edited by: ScriptinSteve ]

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.054 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org