How to find the number of users logged into Data Stage?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
LNarayan
Premium Member
Premium Member
Posts: 23
Joined: Mon Aug 04, 2008 1:58 am

How to find the number of users logged into Data Stage?

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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:

Code: Select all

ps -ef |grep dsapi
That should show all current. You can also get information from netstat, something like:

Code: Select all

netstat -a |grep dsr
May need to refine that some, but that would include orphaned connections as well.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post 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.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.

Code: Select all

SELECT COUNT(*) FROM DS_LICENSE;
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
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
PhilHibbs
Premium Member
Premium Member
Posts: 1044
Joined: Wed Sep 29, 2004 3:30 am
Location: Nottingham, UK
Contact:

Post by PhilHibbs »

chulett wrote:

Code: Select all

ps -ef |grep dsapi
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:

Code: Select all

ps -ef |grep [d]sapi
Phil Hibbs | Capgemini
Technical Consultant
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or the more traditional and perhaps easier to grok:

Code: Select all

ps -ef |grep dsapi |grep -v grep
:wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply