cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Weekly tasks Report Export Example?

matt_evanson1
Organizer

I am looking to run a report export (save as txt) once a week at an early hour, say 1am, on Monday. Does anyone have an example of the syntax that would be used to accomplish this in the tasks-hcbs.properties?

Thanks,
Matt

4 REPLIES 4

adam_piotrowicz
Dynatrace Pro
Dynatrace Pro


First of all you want to do it in tasks-*.xml files as .properties files are obsolete and no longer supported.

Please create a separate XML file in config directory, i.e:

\config\tasks-myreports.xml

with the following content:

<tasks>
<task ID="SaveReportToFile" name="SaveReportToFile" periodType="WEEK" period="1" timeLine="SERVER" offsetTime="01:01:00" timeout="00:10" >
<command ID="0">
<class>adlex.delta.scheduler.command.SaveReportCommand</class>
<param>/LSSaveAs?lsAction=Saveas&format=csv&lsEntryName=Name+of+DMI+report</param>
<param>C:\path\to\MySavedReport.txt</param>
</command>
</task>
</tasks>

This should save Name of DMI report in CSV format to C:\path\to\MySavedReport.txt file every Monday at 1:00 am.

If you need you can append epoch time stamp to the output file.

More about scheduling in Task Scheduling

Will the .properties files still work in 12.4? We will work to convert them to XML format, like you provided, but I wanted to know the timeline and dependency of conversion.

Let me make sure on this, but they should work in "maintenance mode", where we're not fixing bugs if found in this functionality. I will get bavk to you.

Yes, they will be still working in 12.4.X.