The Blueworx Voice Response report schedule is a file called $SYS_DIR/report_schedule containing the commands described in Using line commands, prefixed with a schedule specification.
An example of the report schedule is shown in Figure 1. Note you can have a different schedule for each item; you can even schedule the same task to be done on the same item daily, weekly, and monthly, or more than once a day or once a week.
When you include one of the statistics management commands in a report schedule, the full command syntax is as follows:
{monthly day_of_month | weekly day_of_week| daily} hour_of_day any_command
Although you can use the -b flag to specify previous_day, previous_week, or previous_month in any combination with a daily, weekly, or monthly schedule, some combinations are more useful than others, as Table 1 shows.
# Archive all log files every day at one o'clock in the morning daily 1 DTlogs -a -n "*" # Print each report, covering the last seven days, # every day at one o'clock in the morning daily 1 DTreports -p -n Application -b previous_week daily 1 DTreports -p -n Event -b previous_week daily 1 DTreports -p -n HostApplErrors -b previous_week daily 1 DTreports -p -n HostApplUsage -b previous_week daily 1 DTreports -p -n HostLinkErrors -b previous_week daily 1 DTreports -p -n HostLinkUsage -b previous_week daily 1 DTreports -p -n RecoVocabUsage -b previous_week daily 1 DTreports -p -n SystemStats -b previous_week daily 1 DTreports -p -n Termination -b previous_week daily 1 DTreports -p -n Traffic -b previous_week # Create archive file of each report, covering Sunday through Saturday, # every Sunday at two o'clock in the morning weekly sunday 2 DTreports -a -n "*" -b previous_week # Print all reports, covering the previous month's data # on the first day of each month, at three o'clock in the morning monthly 1 3 DTreports -d -n "*" -b previous_month # Delete all statistics database tables, covering the previous month's data # on the third day of each month, at three o'clock in themorning monthly 3 3 DTdata -d -n sm_appl -b previous_month monthly 3 3 DTdata -d -n sm_ccr -b previous_month monthly 3 3 DTdata -d -n sm_events -b previous_month monthly 3 3 DTdata -d -n sm_host_appl -b previous_month monthly 3 3 DTdata -d -n sm_host_link -b previous_month monthly 3 3 DTdata -d -n sm_reco_usage -b previous_month monthly 3 3 DTdata -d -n sm_sys_stats -b previous_month monthly 3 3 DTdata -d -n sm_term -b previous_month monthly 3 3 DTdata -d -n sm_traffic -b previous_month # Clean up oamtrace and errorlog files # on the third day of each month, at four o'clock in the morning monthly 3 4 DTlog_mgr
How Often is the Command Run? |
How Much Data is Processed? |
||
---|---|---|---|
previous_day |
previous_week |
previous_month |
|
daily |
Data for the preceding day. |
Data for the preceding seven days. |
Daily or weekly processing of the same (the previous month's) data is not really useful. |
weekly |
Processing one day's data only once a week or once a month is not really useful. |
Data for the preceding seven days. |
|
monthly |
Processing one week's data only once a month is not really useful. |
Data for the previous month. |