Operating System - HP-UX
1753519 Members
4912 Online
108795 Solutions
New Discussion юеВ

Re: 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 2
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