Re: HP-UX process utilization (200 Views)
Reply
Regular Advisor
Syed Amjid Ali
Posts: 215
Registered: ‎03-24-2010
Message 1 of 3 (200 Views)

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.
Honored Contributor
Kenan Erdey
Posts: 559
Registered: ‎02-13-2006
Message 2 of 3 (200 Views)

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
Exalted Contributor
Steven E. Protter
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 3 (200 Views)

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
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.