- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Check the process
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 05:32 PM
12-15-2005 05:32 PM
Check the process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 05:43 PM
12-15-2005 05:43 PM
Re: Check the process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 05:44 PM
12-15-2005 05:44 PM
Re: Check the process
ps -lf | grep oraapp ,
The second column will give the status of the server.
Regards,
Guna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 06:01 PM
12-15-2005 06:01 PM
Re: Check the process
I am not want to check the status , if I want to check the pid , what can I do ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 06:12 PM
12-15-2005 06:12 PM
Re: Check the process
This will give what you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 06:16 PM
12-15-2005 06:16 PM
Re: Check the process
if I want ps -C , it seems no such option .
ps -C
ps: illegal option -- C
usage: ps [-edaflP] [-u ulist] [-g glist] [-p plist] [-t tlist] [-R prmgroup]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 06:25 PM
12-15-2005 06:25 PM
Re: Check the process
Hi,
execute
#ps -ef | grep
This will give the following details about the process.
UID PID PPID C STIME TTY TIME COMMAND
Example:
root 0 0 0 Dec 9 ? 0:04 swapper
With Regards,
Siva.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 06:27 PM
12-15-2005 06:27 PM
Re: Check the process
UNIX95=1
ps -Coraapp -o pid,state,ruser,args
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 06:48 PM
12-15-2005 06:48 PM
Re: Check the process
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 07:35 PM
12-15-2005 07:35 PM
Re: Check the process
you can just do
ps -ef | grep oraap
However, I wondered if it concerned an
Oracle process you can check if
the connection was set up in Oracle
select p.spid
s.username,
p.spid, s.sid, s.serial# , s.program
from v$session s, v$process p
where s.paddr = p.addr
and s.type = 'USER'
and then find your spid (=
and use this in your unix grep:
ps -ef | grep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2005 11:53 PM
12-15-2005 11:53 PM
Re: Check the process
it is not oracle process .
if use ps -elf|grep -i "ora" or ps -ef , it only show the CPU process time of the process , if I want to know the process that have submitted ( from the submit time to current time )is over 15 minutes , even it only run within 1 second in term of CPU , what can I do ? thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2005 03:19 AM
12-16-2005 03:19 AM
Re: Check the process
Are you using hpux versions 10.20 or 11.i ?
Because on my systems a ps-ef
orapic 1619 1 0 09:16:42 ? 0:25 oracleP01 (LOCAL=NO)
where the 2nd column is the pid and 0:25
is the cpu time clocked up.
The most extended ps I can run is
[root@orasrv1:]/root<>>> ps -eld| grep R
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME COMD
1003 R 0 36 0 0 152 20 43fcb800 0 - ? 6:38 vxfsd
The capital R means it is running,
if it is S it is sleeping.
Do you have top ?
You can output to a file top -f
Although that maybe not so handy,
as it displays the big procs first.
Let me know if it is this that you want ?
want. We can dig deeper.
rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2005 03:22 AM
12-16-2005 03:22 AM
Re: Check the process
Are you using hpux versions 10.20 or 11.i ?
Because on my systems a ps-ef
orapic 1619 1 0 09:16:42 ? 0:25 oracleP01 (LOCAL=NO)
where the 2nd column is the pid and 0:25
is the cpu time clocked up.
You can easily script that when
a command started with the date
command , how long this is going on for.
The most extended ps I can run is
[root@orasrv1:]/root<>>> ps -eld| grep R
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME COMD
1003 R 0 36 0 0 152 20 43fcb800 0 - ? 6:38 vxfsd
The capital R means it is running,
if it is S it is sleeping.
Do you have top ?
You can output to a file top -f
Although that maybe not so handy,
as it displays the big procs first.
Let me know if it is this that you want ?
want. We can dig deeper.
Because I am not entirely sure this is what
you want.
rgds,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2005 03:43 AM
12-16-2005 03:43 AM
Re: Check the process
Sorry to be so strict, but as you
are a relative new member it is better
to be told in the beginning.
Noticed that you have never ever
allocated any points to any of the 36 responses to your questions.
Even if ou get ananswer that is not helpfull,
it is etiquette to allocate points :
I paste the rules for your info:
As you assign points, please keep in mind the scale that applies:
N/A: The answer was simply a point of clarification to my original question
1-3: The answer didn't really help answer my question but thanks for your assistance!
4-7: The answer helped with a portion of my question, but I still need some additional help.
8-10: The answer has solved my problem completely! Now I'm a happy camper!
Thanks for taking your time
to read this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:07 PM
12-19-2005 08:07 PM
Re: Check the process
I will explain my question clearly , what I want is to find the process(es) which are submitted over 15 minutes , is it possible ? thx .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:18 PM
12-19-2005 08:18 PM
Re: Check the process
UNIX95= ps -ef -o time,pid,comm | grep -v 'TIME' | sort -rnk 1 | awk -F: '{ if ($1>15) { print; }}'
Is it giving what do you want?
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:19 PM
12-19-2005 08:19 PM
Re: Check the process
UNIX95= ps -ef -o time,pid,comm,state | grep -v 'TIME' | sort -rnk 1 | awk -F: '{ if ($1>15) { print; }}'
-Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 08:26 PM
12-19-2005 08:26 PM
Re: Check the process
Folloing are the details that you can get
etime - elapsed time
stime - start time of process
time - commulative time.
In first case (elapsed time), you need to do as follows.
UNIX95= ps -C"exact_process_name" -o pid,etime,ruser,args
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2005 10:19 PM
12-19-2005 10:19 PM
Re: Check the process
your script is excellent , but it seems not find the process which over 15 minutes ? isn't it ? thx