Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX process utilization

Syed Amjid Ali
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
Highlighted
Kenan Erdey
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
Steven E. Protter
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