Get my bill: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
The script will, by default, report the cost over the current month, until present. The output will look similar to this:
The script will, by default, report the cost over the current month, until present. The output will look similar to this:


  User: user001
   Currently run jobs this month: 1038
   Currently run jobs this month: 1038
   Total cost so far: 25.19 EUR
   Total cost so far: 25.19 EUR
Line 31: Line 32:
   scratch        2015-02-08 13:48:40                    0.233 TB 0.00                             
   scratch        2015-02-08 13:48:40                    0.233 TB 0.00                             
   Total this month: 54.67 EUR
   Total this month: 54.67 EUR


Options:
Options:

Revision as of 15:13, 18 February 2015

To estimate costs over a certain time-period the following script can be invoked:

<source lang='bash'> /cm/shared/apps/accounting/get_my_bill </source>

The script will, by default, report the cost over the current month, until present. The output will look similar to this:

 User: user001
 Currently run jobs this month: 1038
 Total cost so far: 25.19 EUR
 For account: 12345
 Jobs: 0 Cost: 0.00 EUR
 For account: project2
 Jobs: 104 Cost: 4.61 EUR
 For account: 56789
 Jobs: 74 Cost: 6.59 EUR
 For account: project 4
 Jobs: 19 Cost: 2.09 EUR
 For account: project5
 Jobs: 80 Cost: 0.04 EUR
 For account: project6
 Jobs: 738 Cost: 11.86 EUR
 For account: project7
 Jobs: 1 Cost: 0.01 EUR
 For account: project8
 Jobs: 22 Cost: 0.00 EUR
 Type            Time                                Current Use Current Cost EUR                
 home            2015-02-13 23:54:53                    7.131 GB 0.00                            
 backup          2015-02-06 06:02:43                    4.000 kB 0.00                            
 nobackup        2015-02-10 10:45:29                    5.348 TB 29.48                           
 scratch         2015-02-08 13:48:40                    0.233 TB 0.00                            
 Total this month: 54.67 EUR

Options:

 -h - Show this help message
 -g - Show results for your entire group
 -d [disk|compute] - get extra detail on disk/compute usages
 -t YYYY-MM - Show results for specific month