Need iplanet process health runtime details


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Need iplanet process health runtime details
# 1  
Old 02-12-2018
Hammer & Screwdriver 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.

Code:
/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:

Code:
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 ?
# 2  
Old 02-12-2018
instead of cmd try comm(per man ps for SunOS 5)
# 3  
Old 02-13-2018
Try /usr/xpg4/bin/ps instead of /usr/bin/ps.
# 4  
Old 02-13-2018
Quote:
Originally Posted by vgersh99
instead of cmd try comm(per man ps for SunOS 5)
It does not seem to return the correct output or does it?
Code:
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 ----------

Quote:
Originally Posted by Don Cragun
Try /usr/xpg4/bin/ps instead of /usr/bin/ps.
No Luck Smilie

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

# 5  
Old 02-13-2018
I think the Oracle page has some flaws.
Try
Code:
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).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Top 5 cpu and Mem consuming process and files and suggestion for health check

I am middle of writing health check scripts, can you pls share commands on how I can get cpu and Mem of top consuming process info at the moment? Also can u suggest ideas on what all I can look for as a part do health check on red hat Linux server? I searched on site before posting, but... (2 Replies)
Discussion started by: Varja
2 Replies

2. Shell Programming and Scripting

Need generic command to get complete running process details

I am on SunOS and Linux I need generic command to get complete process details from which i will eventually extract socket details (listen address and port) ps -ef | ggrep -i server | ggrep -i mydomaindoes not yield a process that should have both the grep entries along with the listen... (8 Replies)
Discussion started by: mohtashims
8 Replies

3. AIX

Need to get process details

Hello, Below are the list of files ls -lrt total 16 lr-x------ 43 oracle dba 0 Dec 5 14:27 root -> / lr-x------ 2 oracle dba 0 Dec 16 00:14 cwd -> /prodoragridcn_01/app/oracle/product/11203/dbs/ -r--r--r-- 1 oracle dba 0 Dec 16... (4 Replies)
Discussion started by: Vishal_dba
4 Replies

4. Solaris

Process holding /tmp space, need to know the process details

Hi , In a server /tmp has almost reached 75% and i can see the File system utilization is 48Mb only , so i believe some process is using the /tmp space. I would like to know which process is using /tmp space. # df -h /tmp Filesystem size used avail capacity Mounted on swap ... (9 Replies)
Discussion started by: chidori
9 Replies

5. UNIX for Advanced & Expert Users

iplanet DS problem..

Hey Guys, Does anyone have experience with iplanet directory server? I am trying to do a ds_db2ldif (ldap dump) so I can import it into DSEE however it is failing, and giving NMC_Status: 7.. problem is iplanet is deprecated and has very little online support. Suggestions? Is there a better way to... (2 Replies)
Discussion started by: s ladd
2 Replies

6. UNIX for Dummies Questions & Answers

at -l doesnt give details of the scheduled job. How to get the details?

I have scheduled couple of shell scripts to run using 'at' command. The o/p of at -l is: $ at -l 1320904800.a Thu Nov 10 01:00:00 2011 1320894000.a Wed Nov 9 22:00:00 2011 1320876000.a Wed Nov 9 17:00:00 2011 $ uname -a SunOS dc2prcrptetl2 5.9 Generic_122300-54 sun4u sparc... (2 Replies)
Discussion started by: superparticle
2 Replies

7. Solaris

Information about iplanet

Can anyone explains me the usage of iplanet daemon. Also , pls let me know the difference between a process and a daemon (1 Reply)
Discussion started by: rogerben
1 Replies

8. UNIX for Dummies Questions & Answers

How to find the details of the previously running process with PID

OS: Unix or Linux I (only) know the pid of the process which was running earlier (say 5 hrs back) but it is not running now. Is there a way I could find the details of that process? (atleast the name of the process). Please let me know. (2 Replies)
Discussion started by: vijay.d
2 Replies

9. Shell Programming and Scripting

need help to write script to check the process health and automatically restart it

I am working on a project, which need to constantly watch the process, and check its status, if it was dead, it should be restart automatically. Please kindly refer me to URL which teach how to write this kind of script, or service. Thanks. (1 Reply)
Discussion started by: dragondad
1 Replies

10. UNIX for Advanced & Expert Users

Iplanet Error

I have iplanet6.0 sp1 installed on a Sunfire 280r which is running Solaris 8. On boot up I get the following message 'Failed to create psetHandle for cn=' the error code is 2. Iplanet appears to function as normal but can anyone enlighten me as to what this means. many thanks (2 Replies)
Discussion started by: silvaman
2 Replies
Login or Register to Ask a Question