Received: from ocean.ccsf.cc.ca.us by bat-gwmta.ccsf.edu; Thu, 25 Mar 2004 07:50:25 -0800 Received: from fog.ccsf.cc.ca.us (root@fog.ccsf.cc.ca.us [147.144.1.3]) by ocean.ccsf.cc.ca.us (8.12.8/8.12.8) with ESMTP id i2PFpQkd006647 for ; Thu, 25 Mar 2004 07:51:26 -0800 (PST) Received: from ns7.ccsf.cc.ca.us (ns7.ccsf.cc.ca.us [147.144.1.250]) by fog.ccsf.cc.ca.us (8.11.3/8.11.3) with ESMTP id i2PFooE24189 for ; Thu, 25 Mar 2004 07:50:50 -0800 (PST) Received: from dworks02.dutchworks.nl (dworks02.DutchWorks.nl [130.161.32.21]) by ns7.ccsf.cc.ca.us (8.11.6/8.11.6) with ESMTP id i2PFonV03349 for ; Thu, 25 Mar 2004 07:50:50 -0800 (PST) Received: from localhost (daemon@localhost) by dworks02.dutchworks.nl (8.9.3 (PHNE_28760_binary)/8.9.3) with SMTP id QAA25674; Thu, 25 Mar 2004 16:44:37 +0100 (MET) Received: by dworks02.dutchworks.nl (bulk_mailer v1.8); Thu, 25 Mar 2004 16:44:11 +0100 Sender: hpux-admin-owner@DutchWorks.nl Received: from hpux.dutchworks.nl (hpux.DutchWorks.nl [130.161.32.22]) by dworks02.dutchworks.nl (8.9.3 (PHNE_28760_binary)/8.9.3) with ESMTP id QAA25546 for ; Thu, 25 Mar 2004 16:44:10 +0100 (MET) Received: from mailhst2.its.tudelft.nl (mailhst2.its.tudelft.nl [130.161.34.250]) by hpux.dutchworks.nl (8.9.3 (PHNE_28760_binary)/8.9.3) with ESMTP id QAA04639 for ; Thu, 25 Mar 2004 16:44:09 +0100 (MET) Received: from livpsintav4.aig.com (livosmtp1.aig.com [167.230.227.90]) by mailhst2.its.tudelft.nl (8.11.6p2/8.11.6) with ESMTP id i2PFi7H01461 for ; Thu, 25 Mar 2004 16:44:07 +0100 (MET) Received: from xlivimc03.aig.com (localhost [127.0.0.1]) by livpsintav4.aig.com (8.11.7p1+Sun/8.11.6) with ESMTP id i2PFX0807201 for ; Thu, 25 Mar 2004 10:33:00 -0500 (EST) Received: by xlivimc03.aig.com with Internet Mail Service (5.5.2657.72) id ; Thu, 25 Mar 2004 10:36:35 -0500 Message-ID: <9C40AC97FC5CD7119C940003476BBCD005552B58@xwilmbx03.aig.com> From: "Paveza, Gary" To: "'HP9000 Admin'" Subject: [HPADM] SUMMARY: determining CPU time of a running process Date: Thu, 25 Mar 2004 10:37:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Orig-From: gary.paveza@AIG.COM Precedence: bulk X-Scanned-By: MIMEDefang 2.37 As pointed out by quite a few people, ps displays this value in the TIME column. I must have read the man pages several times looking for a column like this, but for some reasons, never saw it. Thanks for everyone for helping. -----Original Message----- From: Paveza, Gary [mailto:gary.paveza@AIG.COM] Sent: Thursday, March 25, 2004 9:25 AM To: 'HP9000 Admin' Subject: [HPADM] determining CPU time of a running process Does anyone know of a way to query a process and determine how much CPU time is has used? Glance shows it very well, however, I have a requirement that I be able to run a script and identify likely run-away processes and send an email alert on them. For example (from glance): ---------------------------------------------------------------------------- ---- PROCESS LIST Users= 47 User CPU Util Cum Disk Thd Process Name PID PPID Pri Name ( 800% max) CPU IO Rate RSS Cnt ---------------------------------------------------------------------------- ---- rts32_t 17807 1 241 plpcd5 102/99.8 82170.1 0.0/ 0.0 6.1mb 2 rts32_t 694 1 241 plpcd5 101/99.8 89529.5 0.0/ 0.0 5.7mb 2 I will be keying off two fields (PPID being 1) or Cum CPU being greater than a certain amount (like 3000 seconds). --------------------------------------------------------- Gary Paveza, Jr. Senior Systems Administrator -CSA (302) 252-4831 - phone (302) 588-6368 - cell -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search) -- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)