View processor tree with proctree command
AnthonyEnglish 270000RKFN Visits (12433)
If you want to get a view of the process tree, you could try it using the ps command, but there's a better way: the proctree command. You can see all of its parent processes and its child processes. Here's how it looks.
This is an installation of IBM Systems Director Management Server version 6.3.
# ./dirinstall.server -B /database --DB=1
Variables will be used during the installation:
PRE_INSTALL_CHECKS : 1
Attempting to install
To see what commands are being run at this stage, you can first find the Process ID (PID) of the Director installation command, dirinstall.server
ps -ef | grep dirinstall.server
root 8847562 9764866 0 17:07:37 pts/1 0:00 /usr/bin/ksh ./dirinstall.server -B /database --DB=1
Now you have the PID (in this case 8847562), you can run proctree.
# proctree 8847562
Going down the tree shows that the dirinstall.server command is calling installp, which is installing some filesets for use by Systems Director.
Heading up the tree to parent processes, you can see that the dirinstall.server command is being run from the Korn shell (-ksh). This, in turn, is run out of an ssh (secure shell) session. The ssh daemon (sshd) was invoked by the System Resource Controller srcmstr.
The proctree command is well worth remembering. It can give you a quick view of the processes going up and down the tree.