Operating System - HP-UX
1829347 Members
5023 Online
109991 Solutions
New Discussion

Problem on XPG4 extensions to ps command

 
SOLVED
Go to solution
Chris Wilshaw
Honored Contributor

Problem on XPG4 extensions to ps command

I have encountered the following problem with the ps -C options on a system running HP-UX 11, and Ingres II. PHCO_18446 is installed and configured.

As you can see below, ps -C doesn't report anything for the process iidbms, but does for iigcn. Using other options show that the iidbms process is definitely running.

Has anyone encountered this before, and if so, can it be resolved? All other processes (system and application) that I've tried to check for are reported with no problems.

-->ps -eo comm | grep iidbms
iidbms
iidbms
-->ps -eo args | grep iidbms
/universe/ingres/bin/iidbms recovery (dmfrcp) II
/universe/ingres/bin/iidbms dbms (default) II
grep iidbms
-->ps -C iidbms
PID TTY TIME CMD
-->ps -C iigcn
PID TTY TIME CMD
8736 ? 00:09 iigcn
2 REPLIES 2
Wodisch
Honored Contributor
Solution

Re: Problem on XPG4 extensions to ps command

Hi,

you are using different options:

UNIX95= ps -C

is kind of equivalent to using the "-f" option for the process names - without "-f" you are getting the real codefilename, with "-f" you are getting "agrc[0]", which it what the running process *thinks* its name is.
As an example, let look onto Oracle RDBMS:
- the codefile is only one and its name is "oracle" (who would have guessed?)
- the processes think their names are:
-- ora_????_SID and oracleSID, like ora_lgwr_openview/ora_dbw0_openview/oracleopenview

If you look with "ps -ef" you'll see the "speaking" names, using "ps -e" you'll only see "oracle".

And "UNIX95= ps -C procname" searches for the processname, not the codefilename...

HTH,
Wodisch
Chris Wilshaw
Honored Contributor

Re: Problem on XPG4 extensions to ps command

excellent!

I checked on the system, and when I looked at the executable for iidbms, it's a symbolic link to another executable iimerge.

et voila.

ps -Ciimerge

PID TTY TIME CMD
11460 ? 05:46 dmfacp
11444 ? 01:17 iidbms
11469 ? 08:32 iidbms

Thanks.