From owner-csa@oss.sgi.com Wed Mar 7 07:30:05 2001 Received: by oss.sgi.com id ; Wed, 7 Mar 2001 07:29:56 -0800 Received: from sgi.SGI.COM ([192.48.153.1]:41280 "EHLO sgi.com") by oss.sgi.com with ESMTP id ; Wed, 7 Mar 2001 07:29:35 -0800 Received: from zeus-fddi.americas.sgi.com (128-162-8-103.americas.sgi.com [128.162.8.103]) by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam: SGI does not authorize the use of its proprietary systems or networks for unsolicited or bulk email from the Internet.) via ESMTP id HAA07920 for ; Wed, 7 Mar 2001 07:29:29 -0800 (PST) mail_from (kohnke@sgi.com) Received: from daisy-e185.americas.sgi.com (daisy-e194.americas.sgi.com [128.162.194.214]) by zeus-fddi.americas.sgi.com (8.9.3/americas-smart-nospam1.1) with ESMTP id JAA1049112 for ; Wed, 7 Mar 2001 09:28:13 -0600 (CST) Received: from kenobi.americas.sgi.com (kenobi.americas.sgi.com [128.162.184.39]) by daisy-e185.americas.sgi.com (SGI-8.9.3/SGI-server-1.7) with ESMTP id JAA77035 for ; Wed, 7 Mar 2001 09:28:13 -0600 (CST) Received: from kenobi.americas.sgi.com by kenobi.americas.sgi.com (SGI-8.9.3/SGI-client-1.7) via ESMTP id JAA91603; Wed, 7 Mar 2001 09:28:12 -0600 (CST) Message-Id: <200103071528.JAA91603@kenobi.americas.sgi.com> To: csa@oss.sgi.com From: kohnke@sgi.com (Marlys Kohnke) Subject: Linux 2.4.2 CSA patches available Date: Wed, 07 Mar 2001 09:28:11 -0600 Sender: owner-csa@oss.sgi.com Precedence: bulk Return-Path: X-Orcpt: rfc822;csa-outgoing There are Linux 2.4.2 CSA patches available for download from oss.sgi.com/projects/csa. These patches have been tested on i386 and ia64 systems. The latest CSA commands package csa-job-acct-1.0.1 works with these patches. ---- Marlys Kohnke Silicon Graphics Inc. kohnke@sgi.com 655F Lone Oak Drive (651)683-5324 Eagan, MN 55121 From owner-csa@oss.sgi.com Fri Mar 16 01:40:33 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2G9eXL31942 for csa-outgoing; Fri, 16 Mar 2001 01:40:33 -0800 Received: from web12103.mail.yahoo.com (web12103.mail.yahoo.com [216.136.172.23]) by oss.sgi.com (8.11.3/8.11.3) with SMTP id f2G9eOM31933 for ; Fri, 16 Mar 2001 01:40:24 -0800 Message-ID: <20010316094024.49470.qmail@web12103.mail.yahoo.com> Received: from [202.141.26.5] by web12103.mail.yahoo.com; Fri, 16 Mar 2001 01:40:24 PST Date: Fri, 16 Mar 2001 01:40:24 -0800 (PST) From: Badri narayanan Subject: Need some clarification. To: CSA Cc: Prasanna MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-csa@oss.sgi.com Precedence: bulk Hai In CSA, is their any possibility of getting a report based on jobs run and classified according to users. Kindly specify me how to go about it. Bye Badri __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From owner-csa@oss.sgi.com Fri Mar 16 14:38:12 2001 Received: (from majordomo@localhost) by oss.sgi.com (8.11.3/8.11.3) id f2GMcCg17051 for csa-outgoing; Fri, 16 Mar 2001 14:38:12 -0800 Received: from pneumatic-tube.sgi.com (pneumatic-tube.sgi.com [204.94.214.22]) by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GMcBM17048 for ; Fri, 16 Mar 2001 14:38:11 -0800 Received: from zeus-fddi.americas.sgi.com (zeus-fddi.americas.sgi.com [128.162.8.103]) by pneumatic-tube.sgi.com (980327.SGI.8.8.8-aspam/980310.SGI-aspam) via ESMTP id OAA04444 for ; Fri, 16 Mar 2001 14:48:05 -0800 (PST) mail_from (kohnke@sgi.com) Received: from daisy-e185.americas.sgi.com (daisy-e194.americas.sgi.com [128.162.194.214]) by zeus-fddi.americas.sgi.com (8.9.3/americas-smart-nospam1.1) with ESMTP id QAA1165711; Fri, 16 Mar 2001 16:36:54 -0600 (CST) Received: from kenobi.americas.sgi.com (kenobi.americas.sgi.com [128.162.184.39]) by daisy-e185.americas.sgi.com (SGI-8.9.3/SGI-server-1.7) with ESMTP id QAA62280; Fri, 16 Mar 2001 16:36:53 -0600 (CST) Received: from kenobi.americas.sgi.com by kenobi.americas.sgi.com (SGI-8.9.3/SGI-client-1.7) via ESMTP id QAA28377; Fri, 16 Mar 2001 16:36:53 -0600 (CST) Message-Id: <200103162236.QAA28377@kenobi.americas.sgi.com> To: Badri narayanan From: kohnke@sgi.com (Marlys Kohnke) cc: csa@oss.sgi.com Subject: Re: Need some clarification. In-reply-to: Your message of "Fri, 16 Mar 2001 01:40:24 PST." <20010316094024.49470.qmail@web12103.mail.yahoo.com> Date: Fri, 16 Mar 2001 16:36:52 -0600 Sender: owner-csa@oss.sgi.com Precedence: bulk >In CSA, is their any possibility of getting a report >based on jobs run and classified according to users. >Kindly specify me how to go about it. I may be misunderstanding the format you want, but the csacrep command can be used to create a report like the following (different options add different types of resource usage information): PROJECT USER LOGIN JOB NAME ID NAME ID ======== ======== ======== ================== Unknown 0 root 0x3de6 Unknown 0 root 0x3ef8 Unknown 0 root 0x3f14 Unknown 0 root 0x3f30 Unknown 0 root 0x3f49 Unknown 10320 kohnke 0x3de6 Unknown 10320 kohnke 0x3ef8 Unknown 10320 kohnke 0x3f14 Unknown 10320 kohnke 0x3f30 Unknown 10320 kohnke 0x3f49 See the csacrep man page for options to add resource usage info to the above report. The csacrep command needs input data in the form of cacct binary records. These come from use of the csacon command which uses a sorted pacct file as input. Normally, the sorted pacct file (spacct) is deleted after the daily accounting run is done, i.e. the csarun command. There are four user exits within that script where a site can take control to do whatever the sites needs. So, here's what I did: 1) created the file /usr/local/sbin/csa.fef as root, permissions 755 with the following contents: #! /bin/sh cd ${WTIME_DIR} cp ${SPACCT} /tmp/spacct 2) manually ran the daily accounting reports as root: /usr/local/sbin/csarun 2> /var/csa/nite/fd2log 3) the csa.fef script was executed as part of csarun, which saved the spacct file in /tmp 4) used the csacon command to consolidate the information by job id and user id: /usr/local/sbin/csacon -ju -s /tmp/spacct > /tmp/cacct 5) used the csacrep command to create a report sorted by job id and user id: /usr/local/sbin/csacrep -huJ < /tmp/cacct --- Marlys Kohnke Silicon Graphics Inc. kohnke@sgi.com 655F Lone Oak Drive (651)683-5324 Eagan, MN 55121