Re: HP-UX process utilization (230 Views)
Regular Advisor
Posts: 222
Registered: ‎03-24-2010
Message 1 of 3 (230 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
Posts: 559
Registered: ‎02-13-2006
Message 2 of 3 (230 Views)

Re: HP-UX process utilization


UNIX95= ps -e -o "pcpu args" | grep process_name | awk '{print $1}'
Computers have lots of memory but no imagination
Exalted Contributor
Posts: 33,806
Registered: ‎08-15-2002
Message 3 of 3 (230 Views)

Re: HP-UX process utilization


alternate approach:

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

You may need to modify the awk statement.

Steven E Protter
Owner of ISN Corporation
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.