Need iplanet process health runtime details

Hi,

I have iPlanet 7.0 process running on Solaris system

SunOS mymac15.10 Generic_150400-59 sun4v sparc sun4v

.

The link here suggests to use the below command to get process runtime details / health inorder to understand if the iPlanet process is hung or good.

/usr/bin/ps -o "pid ppid cmd args" | grep webservd | grep -v admin-server

However, i do not have this ps version tool and my command fails with the below error:

ps: unknown output format: -o cmd

usage: ps [ -aAdeflcjLPyZ ] [ -o format ] [ -t termlist ]

        [ -u userlist ] [ -U userlist ] [ -G grouplist ]

        [ -p proclist ] [ -g pgrplist ] [ -s sidlist ] [ -z zonelist ]

  'format' is one or more of:

        user ruser group rgroup uid ruid gid rgid pid ppid pgid sid taskid ctid

        pri opri pcpu pmem vsz rss osz nice class time etime stime zone zoneid

        f s c lwp nlwp psr tty addr wchan fname comm args projid project pset

Can you please suggest what would be a good command which will help me collect all the process related etails so i know if the iPlanet process was hung or good ?

instead of cmd try comm (per man ps for SunOS 5)

Try /usr/xpg4/bin/ps instead of /usr/bin/ps .

It does not seem to return the correct output or does it?

bash-3.2$ ps -o "pid ppid comm args" | grep webservd
 7291 23776 grep                                                            grep webservd

There are atleast 15 iplanet instances running. Why do I see one one entry in the output. Does not look right. Please let me know if it is.

---------- Post updated at 04:03 PM ---------- Previous update was at 04:02 PM ----------

No Luck :frowning:

bash-3.2$ ls -ltr /usr/xpg4/bin/ps
/usr/xpg4/bin/ps: No such file or directory

I think the Oracle page has some flaws.
Try

ps -eo "pid ppid comm" | grep webservd

This includes -e (search in all processes) and does not list the grep process itself (because it matches its own arguments in args).