BladeSystem Forums have moved here
To make BladeSystem information easier to find, we have moved the BladeSystem forums here, to Servers and Operating Systems.
General
Showing results for 
Search instead for 
Do you mean 

HP-UX process utilization

Regular Advisor

HP-UX process utilization

Hi Experts,
I am not expert of HP-UX but I want to pass CPU utilization of any single process of HP-UX to my application HP SiteScope therefore please someone help how can I get CPU utilization of a process, what will be the command that I can use in that application to get CPU utilization of any particular process of HP-UX , can anybody share that command.
2 REPLIES
Honored Contributor

Re: HP-UX process utilization

Hi,

UNIX95= ps -e -o "pcpu args" | grep process_name | awk '{print $1}'
Computers have lots of memory but no imagination
Highlighted
Exalted Contributor

Re: HP-UX process utilization

Shalom,

alternate approach:

UNIX95=1
ps -e -o "pcpu args" -C process_name | awk '{print $1}'

You may need to modify the awk statement.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com