Page 1 of 1
How to find the number of users logged into Data Stage?
Posted: Thu Apr 16, 2009 9:38 am
by LNarayan
Hi all,
I would like to find out how many users are currently logged into the datastage server and how many processes are currently in the running state.
Is there any datastage or unix command to find out this?
Thanks for your help in advance.
Regards
Lakshmi Narayan
Posted: Thu Apr 16, 2009 9:52 am
by chulett
Sure... a couple of ways off the top of my head. You could grep for "dsapi", the process that is created by a connected client:
That should show all current. You can also get information from netstat, something like:
May need to refine that some, but that would include orphaned connections as well.
Posted: Thu Apr 16, 2009 10:07 am
by kcbland
Jobs running should have either an osh process or a phantom process. Do a "ps -ef|grep phantom" to see what's out there running. As for connected Clients, look for dsapi as Craig has shown. You'll have to get the userid's from those processes.
Posted: Thu Apr 16, 2009 4:16 pm
by ray.wurlod
Open Director. Disable (in View menu) display of categories. Sort by Status and find all the running jobs by that means.
To find the connected clients, open a Command window in DataStage Administrator client and execute the following query.
Note that this technique will not work in version 8 and later. However, you can still execute
Code: Select all
${DSHOME}/bin/list_readu | grep '&!DS.ADMIN&!' | wc -l
Posted: Mon Apr 20, 2009 9:01 am
by PhilHibbs
When running a grep on ps I always put the first character in square brackets so that it does not match the grep command itself:
Posted: Mon Apr 20, 2009 9:06 am
by chulett
Or the more traditional and perhaps easier to grok: