[torqueusers] Re: pbsacct help

Chris Vaughan chris at clusterresources.com
Wed Jan 14 07:51:16 MST 2009


Ole,

I was having an error on line 102

> > test: 102: ==: unexpected operator

Changed this:
if test $ALLGROUPS == 0

To:
if test $ALLGROUPS -eq 0

It works now, thanks.

----- "Ole Holm Nielsen" <Ole.H.Nielsen at fysik.dtu.dk> wrote:

> Hi Chris,
> 
> I've updated the output formatting slightly from pbsacct version 1.4.3
> to 1.4.4.
> Please install also the other scripts in the pbsacct package in order
> to achieve
> the correct formatting.
> 
> Your accounting file generates the following output on my RHEL5
> server:
> 
> # pbsacct /tmp/20090114
> 
> Portable Batch System accounting statistics
> -------------------------------------------
> 
> A total of 1 accounting files will be processed.
> The first record is dated 01/14/2009, last record is dated
> 01/14/2009.
> 
>                            Wallclock          Average Average
> Username    Group   #jobs      days  Percent  #nodes  q-days  Full
> name
> --------    -----   ----- ---------  ------- ------- ------- 
> ---------
>     TOTAL        -       1      0.00   100.00    1.00    0.00
>     chris    chris       1      0.00   100.00    1.00    0.00
> 
> Your Full name from /etc/passwd is obviously not available on my
> system :-)
> 
> Best regards,
> Ole
> 
> > Thanks the output looks better but I'm using Ubuntu and I think
> there may be a few things that don't line up correctly with RedHat. 
> Here is my output below, I'll be happy to provide more information
> (configs, files, etc.) about my system if that helps.
> > 
> > root at fleece:/var/spool/torque/server_priv/accounting# pbsacct 200*
> > 
> > Portable Batch System accounting statistics
> > -------------------------------------------
> > 
> > A total of 11 accounting files will be processed.
> > The first record is dated 06/18/2008, last record is dated
> 01/14/2009.
> > test: 102: ==: unexpected operator
> > 
> >                  Wallclock          Average Average
> >    Group   #jobs      days  Percent  #nodes  q-days
> >    -----   ----- ---------  ------- ------- -------
> >    TOTAL        -      24      0.02   100.00    1.00    3.38
> >    chris    chris      24      0.02   100.00    1.00    3.38  Chris
> Vaughan,,,
> 
> -- 
> Ole Holm Nielsen
> Department of Physics, Technical University of Denmark

-- 
Chris Vaughan
EMEA Technical Consultant
Cluster Resources, Ltd.
Office - UK Office:  +44(0) 1483 243578
Mobile - +44 (0)7800 973 062
US Headquarters:  +1 801 717 3700
Skype: supercomputer1
www.clusterresources.com


Evaluate Our Products, Free 45-Day Evaluation
http://www.clusterresources.com/pages/products/evaluate.php



More information about the torqueusers mailing list