IBM Support

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

Question & Answer


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

[{"Product":{"code":"SSZJPZ","label":"IBM InfoSphere Information Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"9.1;8.7;8.5;8.1;8.0.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
16 June 2018

UID

swg21624888