The following are the steps to generate the weekly cluster accounting report. The report is generated every Wednesday morning, for the time period of - Wednesday 12:00 AM till Tuesday 12:00 PM. The following is an example of the procedure used to generate a report for the time period of May 20th, 2009 through May 26th, 2009.

Assumptions:

1. All the Torque cluster accounting files are located at /var/spool/PBS/server_priv/accounting. The file format is YYYYMMDD.
2. The LQCD accounting scripts and report files are in directories /home/amitoj/accounting and /home/amitoj/accounting/reports respectively, on lqcd.fnal.gov. These are accessible from jpsi2.fnal.gov and kaon2.fnal.gov as /lqcdhome/amitoj/accounting and /lqcdhome/amitoj/accounting/reports.
3. All the accounting web pages and reports are in the directory /var/www/html/accounting on lqcd.fnal.gov.
4. All the commands listed below are run as user root.

Step 1
 
on jpsi2.fnal.gov

$> cd /home/amitoj/accounting
$> export LQCD_FILES=/var/spool/PBS/server_priv/accounting/
$> ./gpu_pbs_rpt_week "Jul 1, 2009 to Jul 6, 2009" $LQCD_FILES/20090701 $LQCD_FILES/20090702 $LQCD_FILES/20090703 $LQCD_FILES/20090704 $LQCD_FILES/20090705 $LQCD_FILES/20090706 > /lqcdhome/amitoj/accounting/reports/jul0109-to-jul0609.html
$> ./gpu_pbs_rpt_ytd "Jul 1, 2009 to Jul 6, 2009" $LQCD_FILES/20090701 $LQCD_FILES/20090702 $LQCD_FILES/20090703 $LQCD_FILES/20090704 $LQCD_FILES/20090705 $LQCD_FILES/20090706 >> /lqcdhome/amitoj/accounting/reports/jul0109-to-jul0609.html
$> ./jpsi_pbs_rpt_week "Jul 1, 2009 to Jul 6, 2009" $LQCD_FILES/20090701 $LQCD_FILES/20090702 $LQCD_FILES/20090703 $LQCD_FILES/20090704 $LQCD_FILES/20090705 $LQCD_FILES/20090706 >> /lqcdhome/amitoj/accounting/reports/jul0109-to-jul0609.html
$> ./jpsi_pbs_rpt_ytd "Jul 1, 2009 to Jul 6, 2009" $LQCD_FILES/20090701 $LQCD_FILES/20090702 $LQCD_FILES/20090703 $LQCD_FILES/20090704 $LQCD_FILES/20090705 $LQCD_FILES/20090706 >> /lqcdhome/amitoj/accounting/reports/jul0109-to-jul0609.html

Step 2  on kaon2.fnal.gov

$> cd /home/amitoj/accounting
$> export LQCD_FILES=/var/spool/PBS/server_priv/accounting/
$> ./pbs_rpt_week "Jul 1, 2009 to Jul 6, 2009" $LQCD_FILES/20090701 $LQCD_FILES/20090702 $LQCD_FILES/20090703 $LQCD_FILES/20090704 $LQCD_FILES/20090705 $LQCD_FILES/20090706 >> /lqcdhome/amitoj/accounting/reports/jul0109-to-jul0609.html
$> ./pbs_rpt_ytd "Jul 1, 2009 to Jul 6, 2009" $LQCD_FILES/20090701 $LQCD_FILES/20090702 $LQCD_FILES/20090703 $LQCD_FILES/20090704 $LQCD_FILES/20090705 $LQCD_FILES/20090706 >> /lqcdhome/amitoj/accounting/reports/jul0109-to-jul0609.html

Step 3  on lqcd.fnal.gov

$> cd /home/amitoj/accounting
$> ./gpu_pbs_rpt_ytd "Jul 1, 2009 to Jul 6, 2009" >> reports/jul0109-to-jul0609.html
$> ./pbs_rpt_ytd "Jul 1, 2009 to Jul 6, 2009" >> reports/jul0109-to-jul0609.html
$> cp reports/jul0109-to-jul0609.html /var/www/html/accounting

Step 4 on lqcd.fnal.gov

Edit the main accounting web page to include a link to the latest weekly report The main web page is at http://lqcd.fnal.gov/accounting and hosted on lqcd.fnal.gov at /var/www/html/accounting/index.html.