Identify the project membership and Job name of a running Job detected by its PID on UNIX/Linux platforms

Technote (FAQ)


Question

How to identify the project membership of a running Job detected by its PID on UNIX/Linux platforms ?

Cause

UNIX/Linux system administrators of Information Server platforms may want to identify a Job by its name and project membership corresponding to a given PID in the system's process list.

This article helps identify a Job by just knowing its PID.


Answer

Information Server Jobs are generally executed as several processes running simultaneously or/and successively. But each Job have a "supervisor" process, used to initialize the other processes performing the Job's tasks. This "supervisor" process is always seen in the system's process list as containing the argument "DSD.RUN", when displayed by the UNIX/Linux command :
----

ps -ef | grep -v grep | grep DSD.RUN
----
Among others, that command provides the information about the PID associated with the Job, and its name is displayed as the argument just on the right after "DSD.RUN". But the process list output does not display the Project membership for that Job.
In fact, the Project the running Job belongs to is always the "current working directory" of the "DSD.RUN JobName" process.
Identifying the "current working directory" of a process uses different commands depending of the O.S.:


* Linux :
----
lsof -p PID |grep cwd
----
will show the process working directory among other information on the same line.

* AIX :
----
procwdx PID
----
directly displays the current working directory of the process.

* SUN Solaris
----
pwdx PID
----
directly displays the current working directory of the process.

* HP-UX :
There is no command provided with HP-UX system to display the current working directory of a process. Though, the "lsof" tool has been ported to HP-UX as an Open source tool for Integrity (Intel IA-64) and PA-RISC platforms and is available at :
----
http://hpux.connect.org.uk
----


Related information

How do you get a list of DataStage jobs at version 8.x

Rate this page:

(0 users)Average rating

Document information


More support for:

InfoSphere Information Server

Software version:

8.0.1, 8.1, 8.5, 8.7, 9.1

Operating system(s):

AIX, HP-UX, Linux, Solaris

Reference #:

1624888

Modified date:

2013-05-09

Translate my page

Machine Translation

Content navigation