Page 1 of 1 1
Topic Options
#31411 - 2002-10-25 05:03 PM Citrix Server error
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
KiXtart 4.02
NT 4 Terminal Server - Service Pack 6
Citrix (Metaframe 1.8) - Service Pack 2

Just checked our W2k Citrix Servers and they are fine.

We are seeing in the Application Event Log:
quote:

The description for Event ID ( 5 ) in Source ( KIXTART ) could not be found. It contains the following insertion string(s): WkstaGetInfo failed Error : Access is denied. (0x5/5).

Here is the Kixtart code used in our Citrix Environment:
code:
 BREAK ON
;-- Added in on 10/22/2002 - Kent Dyer
IF @wksta = "Server01" OR @wksta = "Server02" ; >> These are W2k Citrix Servers
; -- Added in on 10/22/2002 - Kent Dyer
CALL @ldrive+"outlook.kix"
IF (READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","StartMenuLogoff") <> "1")
$rc = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","StartMenuLogoff","1","REG_DWORD")
ENDIF
IF (READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\tips","tips") <> "0")
$rc = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer","tips","0","REG_DWORD")
ENDIF
IF (EXISTKEY("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security")<> 1)
$rc = ADDKEY("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security")
IF (READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security","Level")<> "1")
$rc = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security","Level","1","REG_DWORD")
ENDIF
ELSE
IF (READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security","Level")<> "1")
$rc = WRITEVALUE("HKEY_CURRENT_USER\Software\Microsoft\Office\9.0\Word\Security","Level","1","REG_DWORD")
ENDIF
ENDIF
RETURN
ENDIF

;Check for the %TEMP% and %TMP% variables
$envirolocation = "HKEY_CURRENT_USER\Environment"
$temp = READVALUE($envirolocation, "TEMP")
$tmp = READVALUE($envirolocation, "TMP")
IF $temp = "" OR $temp = "N:\TEMP"
$rc = WRITEVALUE($envirolocation,"TEMP", Chr(37)+Chr(83)+Chr(121)+Chr(115)+Chr(116)+Chr(101)+Chr(109)+Chr(68)+Chr(114)+Chr(105)+Chr(118)+Chr(101)+Chr(37)+"\Temp","REG_EXPAND_SZ")

ENDIF
IF $tmp = "" OR $tmp = "N:\TEMP"
$rc = WRITEVALUE($envirolocation,"TMP", Chr(37)+Chr(83)+Chr(121)+Chr(115)+Chr(116)+Chr(101)+Chr(109)+Chr(68)+Chr(114)+Chr(105)+Chr(118)+Chr(101)+Chr(37)+"\Temp","REG_EXPAND_SZ")
ENDIF

$newtmpval = READVALUE($envirolocation, "TEMP")

;If we don't have these set, we need to set them
IF %temp% = ""
SET "TEMP="+$newtmpval
ENDIF

IF %tmp% = ""
SET "TMP="+$newtmpval
ENDIF

; -- Write a Citrix Diagnostic File..
SHELL "%COMSPEC% /C DATE /T > \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"
SHELL "%COMSPEC% /C ECHO -- >> \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"
SHELL "%COMSPEC% /C TIME /T >> \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"
SHELL "%COMSPEC% /C ECHO -- >> \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"
SHELL "%COMSPEC% /C SET >> \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"
SHELL "%COMSPEC% /C ECHO -- >> \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"
SHELL "%COMSPEC% /C NET USE >> \\SHARESERVER\CITRIX_HOMEDIR\@userid\trouble.txt"

;ODBC check
;;$odbcfile="%windir%\ODBC.INI"
$odbcfile="\\SHARESERVER\CITRIX_HOMEDIR\@userid\windows\ODBC.INI"
$odbcchk = EXIST($odbcfile)
IF $odbcchk <> 1
RETURN
ENDIF
$driver=READPROFILESTRING($odbcfile,"CBCWinAccess2","Driver")
$description=READPROFILESTRING($odbcfile,"CBCWinAccess2","Description")
$defaultdir=READPROFILESTRING($odbcfile,"CBCWinAccess2","DefaultDir")
$dbq=READPROFILESTRING($odbcfile,"CBCWinAccess2","DBQ")
$driverid=READPROFILESTRING($odbcfile,"CBCWinAccess2","DriverId")
$fil=READPROFILESTRING($odbcfile,"CBCWinAccess2","FIL")
$jetinipath=READPROFILESTRING($odbcfile,"CBCWinAccess2","JetIniPath")
$databasename=READPROFILESTRING($odbcfile,"CBCWinAccess2","DatabaseName")
$autostop=READPROFILESTRING($odbcfile,"CBCWinAccess2","AutoStop")

IF $driver <> "M:\WTSRV\System32\odbcjt16.dll"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","Driver","M:\WTSRV\System32\odbcjt16.dll")
ENDIF
IF $description <> "CBCWin data base"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","Description","CBCWin data base")
ENDIF
IF $defaultdir <> "R:\CBCWIN\program"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","DefaultDir","R:\CBCWIN\program")
ENDIF
IF $dbq <> "R:\CBCWIN\program\cbcwin2.mdb"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","DBQ","R:\CBCWIN\program\cbcwin2.mdb")
ENDIF
IF $driverid <> "25"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","DriverId","25")
ENDIF
IF $fil <> "MS Access"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","FIL","MS Access")
ENDIF
IF $jetinipath <> "odbcddp.ini"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","JetIniPath","odbcddp.ini")
ENDIF
IF $databasename <> "CBCWinDataBase"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","DatabaseName","CBCWinDataBase")
ENDIF
IF $autostop <> "yes"
$rc = WRITEPROFILESTRING($odbcfile,"CBCWinAccess2","AutoStop","yes")
ENDIF
RETURN

Thanks,

Kent

[ 25. October 2002, 17:07: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#31412 - 2002-10-25 05:19 PM Re: Citrix Server error
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Did some more digging and found the following:

quote:

Event Type: Error
Event Source: KIXTART
Event Category: None
Event ID: 5
Date: 10/24/2002
Time: 5:51:31 AM
User: N/A
Computer: SERVERnn
Description:
The description for Event ID ( 5 ) in Source ( KIXTART ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: WkstaGetInfo failed Error : Access is denied. (0x5/5).

Thanks,

Kent

[ 25. October 2002, 17:21: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#31413 - 2002-10-25 05:37 PM Re: Citrix Server error
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Did a Search and tried the suggestion from MCA as myself (Domain Admin) and a "locked down" user and did not generate anything in the Event Log..

Here is the link that I tried -

Event Log (Application)


{Edit - Search Results from http://vivisimo.com }
Eric Augustus- Re- Rpcclient doesn't use '-I' option

http://www.stanford.edu/~glamb/lanman/restrict.txt
{Edit - end}

Did not find anything on http://www.northernlight.com

From what I can find Get domain of current logged user -, it may be related to W9x.. Just checked the logs and there has been no one logging in on W9x system for quite a while now.

Thanks,

Kent

[ 25. October 2002, 17:48: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#31414 - 2002-10-27 01:26 AM Re: Citrix Server error
Kdyer Offline
KiX Supporter
*****

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

Can you move this topic to the Beta Forum?

Thank you,

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

Top
#31415 - 2002-10-27 01:28 AM Re: Citrix Server error
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
4.02 has been out of beta for some time now. Current beta is 4.12b2.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31416 - 2002-10-28 02:15 PM Re: Citrix Server error
Kdyer Offline
KiX Supporter
*****

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

You are right..

However, I am intersted in -
(1) Why this is happening?
(2) What is the resolution?

From what little I can put together on this it could be one or all of the following:

  • Installing ADSNT4.EXE on the NT 4 Citrix boxes.
  • Installing WMINT4.EXE on the NT 4 Citrix boxes.
  • Updating to version 4.12 Beta of KiXtart.
Thanks,
Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#31417 - 2002-10-28 02:41 PM Re: Citrix Server error
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Your post is kinda cryptic as to the problem. Yes, you did provide the eventlog error and the script. You however did not provide details as to what KiX command/function/macro precipitates the error.

So now are you saying that KiX was fine in the beginning and that at some point the problem manifested? Are you also saying that a newer version of KiX does not error?

Somewhere on this board, the dll dependencies were discussed but have not been able to find it. As far as I know, KiX behaviour can be affected by:
A change in the kernel
A change in a dependent dll
A change in the registry
Permissions, local and network

The beta forum is meant to discuss issues related to the current beta. If everyone posted every problem the have (or think they have) with older releases then it wouldn't really be a beta forum.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#31418 - 2002-10-29 10:29 AM Re: Citrix Server error
Ruud van Velsen Moderator Offline
Developer
*****

Registered: 1999-05-06
Posts: 391
Loc: Amsterdam, The Netherlands
Hi Kent,

did this problem start with a specific version of KiXtart? And does it happen for all clients, or just specific OS's?

Kind regards,

Ruud

Top
#31419 - 2002-10-29 02:15 PM Re: Citrix Server error
Kdyer Offline
KiX Supporter
*****

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

Thanks for the response.

This appears to be centered around the deployment of Kix 4.02 to the Terminal Servers. Checking the Event Logs, we have not seen any issue since 23 October. It only has appeared on our NT 4 Terminal Servers and not 2000. It just appears weird that we'd be getting errors with regard to WkstaGetInfo.. Maybe when we get ready to deploy the new version of Kix on these servers again, myself or another Admin will have to do so (it is only 9 servers).

In my script sample I provided, we do look for the name direct accordingly. I have tried simple scripts like:
code:
  ? "workstation: "+@wksta
? "user: "+@userid

With no new events being generated. Now, the only thing is is that if I was to try that with a locked down user... Hmmm.. I will try that when I get into the office this morning.

Thanks again,

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

Top
#31420 - 2002-11-30 02:04 PM Re: Citrix Server error
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Current status?
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#31421 - 2002-11-30 02:31 PM Re: Citrix Server error
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Move to Beta forum per request (a little late).
_________________________
Home page: http://www.kixhelp.com/hb/

Top
Page 1 of 1 1


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

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

Generated in 0.13 seconds in which 0.065 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