From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Halte, James" Newsgroups: gmane.os.tru64.managers,gmane.spam.detected Subject: timestamp with vmstat Date: Mon, 13 Jul 2009 12:20:32 -0700 Message-ID: <7A413832512CF64BA86648F34149D0302D3D3A9E5D@mbtpu.Tacoma.lcl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1247512951 9876 80.91.229.12 (13 Jul 2009 19:22:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 19:22:31 +0000 (UTC) To: "'tru64-unix-managers@ornl.gov'" Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Mon Jul 13 21:22:23 2009 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1MQR6U-0002m6-I6 for gotm-tru64-unix-managers@gmane.org; Mon, 13 Jul 2009 21:22:22 +0200 Original-Received: (qmail 13845 invoked by uid 49509); 13 Jul 2009 19:22:12 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 13835 invoked by uid 49501); 13 Jul 2009 19:22:12 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.5/5.0):. Processed in 0.447391 secs); 13 Jul 2009 19:22:12 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 13 Jul 2009 19:22:12 -0000 Original-Received: from emroute3.ornl.gov ([127.0.0.1]) by emroute3.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KMQ00IDUJ4Z45@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 13 Jul 2009 15:22:12 -0400 (EDT) Original-Received: from CONVERSION-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.4 #31561) id <0KMQ00J01J4Z6P@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 13 Jul 2009 15:22:11 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.4 #31561) id <0KMQ00I1UJ4TID@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 13 Jul 2009 15:22:11 -0400 (EDT) Original-Received: from mailgate.ci.tacoma.wa.us (mailgate.ci.tacoma.wa.us [131.191.254.40]) by emroute3.ornl.gov (PMDF V6.4 #31561) with ESMTP id <0KMQ00IAWJ29KE@emroute3.ornl.gov> for tru64-unix-managers@sws1.ornl.gov (ORCPT tru64-unix-managers@ornl.gov); Mon, 13 Jul 2009 15:20:34 -0400 (EDT) Original-Received: from mail01.Tacoma.lcl ([131.191.129.250]) by mailgate.ci.tacoma.wa.us (8.13.3+Sun/8.13.3) with ESMTP id n6DJKXB4009752 for ; Mon, 13 Jul 2009 12:20:33 -0700 (PDT) Original-Received: from mbtpu.Tacoma.lcl ([131.191.129.249]) by mail01.Tacoma.lcl ([131.191.129.250]) with mapi; Mon, 13 Jul 2009 12:20:32 -0700 X-Envelope-from: JHALTE@ci.tacoma.wa.us Content-language: en-US Thread-Topic: timestamp with vmstat Thread-Index: AcoD7v2L4U5P0rBtSgKcWjJ069ONhA== Accept-Language: en-US acceptlanguage: en-US X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spam2.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_00,BOTNET_SOHO, RCVD_IN_BACKSCAT,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.2.5 X-Spam-Relay-Country: US US US X-MS-Has-Attach: X-MS-TNEF-Correlator: X-Spam-Report: 6.3 points; * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 4.9 SPF_FAIL SPF: sender does not match SPF record (fail) * [SPF failed: Please see http://spf.pobox.com/why.html?sender=JHALTE%40ci.tacoma.wa.us&ip=160.91.1.101&receiver=lo] * 1.4 DNS_FROM_RFC_POST RBL: Envelope sender in postmaster.rfc-ignorant.org Xref: news.gmane.org gmane.os.tru64.managers:9404 gmane.spam.detected:4413215 Archived-At: I currently have a cronjob that runs at the top of the hour for every hour = of the day. This cronjob calls a script to run vmstat once every 60 second= s 59 times, and send output to a log file. This basically will run vmstat o= nce per minute, for 59 minutes. crontab 0 * * * * /runDirectory/vmstat_by_minute Script "vmstat_by_minute" (summary, not exact syntax) -adds start time stamp >> myTargetFile -executes vmstat 60 59 >> myTargetFile -adds Completion time stamp >> myTargetFile Since this is run once/hour, I can time stamp the start and end, but would like to time stamp each line (minute) of vmstat output. Logfile output Example: Begin vmstat running on ras2 at: 20080103_0000 Virtual Memory Statistics: (pagesize =3D 8192) procs memory pages intr cpu r w u act free wire fault cow zero react pin pout in sy cs us sy i= d 10 937 54 300K 157K 47K 1G 110M 257M 921 98M 0 97 7K 3K 1 2 9= 7 8 932 54 300K 157K 47K 31513 4999 6838 0 4095 0 113 10K 4K 1 4 9= 5 9 931 54 300K 157K 47K 15170 1079 3388 0 1009 0 95 7K 3K 1 2 9= 7 . . . 8 927 54 300K 157K 47K 15099 1085 3401 0 1024 0 93 7K 3K 1 2 9= 7 V M S T A T Server2 C O M P L E T E at: 20080103_0000 What I'd like is Begin vmstat running on ras2 at: 20080103_0000 Virtual Memory Statistics: (pagesize =3D 8192)Virtual Memory Statistics: (p= agesize =3D 8192) procs memory pages intr cpu Time r w u act free wire fault...in sy cs us sy id 01:01 10 937 54 300K 157K 47K 1G ...97 7K 3K 1 2 97 01:02 10 937 54 300K 157K 47K 1G ...97 7K 3K 1 2 97 Any suggestions would be greatly appreciated. ---------------------------------------------------------------------------= - Thank you, and please feel free to contact me by phone or email. James Halte Tacoma Power - T&D EMS Senior Engineer Office: (253) 502-8094 Cell: (253) 381-4088