Get my bill
Jump to navigation
Jump to search
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:
!!! These results are advisory only !!! 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
The script provides options in addition to the defaults, which can be invoked as follows: 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