View Full Version : Citrix and who is running what
Steen J
11-18-2002, 03:23 AM
Hello users
Just to test the forum I want to ask a questions which is anoying me in the daily support to our customer.
In a large Citrix system (approximate 40 user) I dont know which program each user is running.
On the citrix server in taskmanager the programs are not shown, but in the processes I am able to see that a user is running the program (big surprise) WRUN32.
Is there anybody there have found a way to see which program a user is running in the task bar ??
We are running acuserver is there a way there ?
The versions is win2000, acucobol 5.1 and acuserver 5.2
best Regards
:)
Steen Jensen
datamann
Denmark
DennisLukefahr
11-18-2002, 07:30 AM
At least with AcuServer 4.3 you can ascertain which files are open using ‘pathname/acuserve –info –n 1 2>outputfilename. You an then use grep to return a particular file name. While this does not return the name of the program, more time that not I'm interested in who else is using a particular file because someone has a record locked.
DennisLukefahr
11-18-2002, 07:31 AM
At least with AcuServer 4.3 you can ascertain which files are open using ‘pathname/acuserve –info –n 1 2>outputfilename. You an then use grep to return a particular file name. While this does not return the name of the program, more time that not I'm interested in who else is using a particular file because someone has a record locked.
Steen J
11-18-2002, 07:38 AM
Originally posted by DennisLukefahr
At least with AcuServer 4.3 you can ascertain which files are open using ‘pathname/acuserve –info –n 1 2>outputfilename. You an then use grep to return a particular file name. While this does not return the name of the program, more time that not I'm interested in who else is using a particular file because someone has a record locked.
Thank you Dennis
thats right I can use the acuserver -info but I am not able to pipe ">" the data into a file. It would be very helpful if the pipe could work, but with 40 users and 10-20 files each it is a lot of files to look through on the screen
Regards
Steen
:)
DennisLukefahr
11-19-2002, 12:52 PM
Pipe command in LINUX or DOS works. The >> will append to files in DOS and LINUX. Then you can do a grep command against the stored results and look for the file that is locked.
grep $findstring 00find.txtfile |more
I'm not sure why the pipe command does not work.
mathlener
11-20-2002, 12:08 AM
Originally posted by Steen J
thats right I can use the acuserver -info but I am not able to pipe ">" the data into a file. It would be very helpful if the pipe could work, but with 40 users and 10-20 files each it is a lot of files to look through on the screen
:)
Hi Steen,
Maybe the 'ASSIGN -P' option is a solution. In AcuGT you can read from or write to a pipe command with this option. The following sample code is for Unix, but this wil work on Windows too.
Maybe you can parse the data and show only the information you want to see or put it in a listbox or something.
Regards,
André Mathlener
IDENTIFICATION DIVISION.
PROGRAM-ID. UNIX-CMD.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT UNIX-CMD-FILE
ASSIGN TO UNIX-COMMAND
FILE STATUS FILE-STATUS
LINE SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD UNIX-CMD-FILE.
01 UNIX-CMD-RECORD PIC X(79).
WORKING-STORAGE SECTION.
01 UNIX-COMMAND.
05 FILLER PIC X(3) VALUE '-P '.
05 FILLER PIC X(14) VALUE 'acuserve -info '.
01 FILE-STATUS PIC X(02).
88 SUCCESS VALUE "00".
PROCEDURE DIVISION.
MAIN.
OPEN INPUT UNIX-CMD-FILE.
INITIALIZE UNIX-CMD-RECORD
READ UNIX-CMD-FILE
AT END CONTINUE
END-READ
PERFORM UNTIL NOT SUCCESS
DISPLAY UNIX-CMD-RECORD
INITIALIZE UNIX-CMD-RECORD
READ UNIX-CMD-FILE
AT END CONTINUE
END-READ
END-PERFORM
DISPLAY "Press any key"
ACCEPT OMITTED
CLOSE UNIX-CMD-FILE
GOBACK.
Steen J
11-20-2002, 03:06 AM
Thank you all
I have found out that in windows I have to do this line to make acuserver pipe into a file (version 5.2)
acuserve -info -n 6523 > s:\temp\acuserve.txt 2>&1
afterwards I can do a grep to find a special file, and then I can see who has a a file open. Unfortunately it does not tell me anything of who is locking what or which program is he running.
But all together it helps me a lot.:)
Regards
Steen
Steen J
11-20-2002, 03:07 AM
Thank you all
I have found out that in windows I have to do this line to make acuserver pipe into a file (version 5.2)
acuserve -info -n 6523 > s:\temp\acuserve.txt 2>&1
afterwards I can do a grep to find a special file, and then I can see who has a a file open. Unfortunately it does not tell me anything of who is locking what or which program is he running.
But all together it helps me a lot.:)
Regards
Steen
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.