ytd_report
Purpose:
-
Generate a year-to-date utilization report for test cells based on specified weekly intervals.
Enter:
-
ytd_report [interval=week|fin_week] [n=number_years]
Where:
-
interval
Optional. Specify one of the following the time intervals:
- week (midnight to midnight)
- fin_week (7am to 7am); this is theĀ default
number_years Optional. Specify the number of years to go back. The default is 1 year.
Example:
-
ytd_report interval=fin_week > /data/util/YTD_REPORT
Produces a weekly report from the previous Monday-7am back to the beginning of the year.ytd_report n=2 interval=week > /data/util/x
Produces a weekly report from the previous Sunday-midnight back to the beginning of the previous year.
Notes:
-
This program relies on the existence of several data files, including /data/meters/meterlog.NNN for each test cell.