Difference between revisions of "Scheduling the Staging Area creation"
Line 1: | Line 1: | ||
The '''[[Using Staging Area Generator | generation]]''' of an IMSMA staging area needs human interaction. However, there might be the requirement to re-generate the staging area regularly, in order to have an up-to-date reporting database. It is possible to automatize the staging area generation by following these steps: | The '''[[Using Staging Area Generator | generation]]''' of an IMSMA staging area needs human interaction. However, there might be the requirement to re-generate the staging area regularly, in order to have an up-to-date reporting database. It is possible to automatize the staging area generation by following these steps: | ||
<ol> | <ol> | ||
− | <li>In the C:\IMSMAETLTool folder, create a .bat script named for example '''runStagingArea.bat''' with the following content: | + | <li>In the ''C:\IMSMAETLTool'' folder, create a .bat script named for example '''runStagingArea.bat''' with the following content: |
<pre> | <pre> | ||
cd C:\IMSMAETLTool | cd C:\IMSMAETLTool | ||
Line 7: | Line 7: | ||
</pre> | </pre> | ||
</li> | </li> | ||
− | <li>Edit the properties file C:\IMSMAETLTool\conf\config.PROPERTIES by specifying the required values for all the parameters (they correspond to the ones from the graphical user interface described '''[[Using Staging Area Generator | here]]'''). If a parameter should not be used, e.g. '''script_file''', then comment it by placing a # at the beginning of the line: | + | <li>Edit the properties file C'':\IMSMAETLTool\conf\config.PROPERTIES'' by specifying the required values for all the parameters (they correspond to the ones from the graphical user interface described '''[[Using Staging Area Generator | here]]'''). If a parameter should not be used, e.g. '''script_file''', then comment it by placing a # at the beginning of the line: |
<pre> | <pre> | ||
conversion_language=en | conversion_language=en | ||
Line 22: | Line 22: | ||
<li>Next, refine recurrence criteria (e.g. time of the day) and click '''Next'''.</li> | <li>Next, refine recurrence criteria (e.g. time of the day) and click '''Next'''.</li> | ||
<li>In the next window, select '''Start a Program''' and click '''Next'''.</li> | <li>In the next window, select '''Start a Program''' and click '''Next'''.</li> | ||
− | <li>Browser to the previously created script, e.g. C:\IMSMAETLTool\runStagingArea.bat. Click '''Next''' and then '''Finish'''.</li> | + | <li>Browser to the previously created script, e.g. ''C:\IMSMAETLTool\runStagingArea.bat''. Click '''Next''' and then '''Finish'''.</li> |
</ol> | </ol> | ||
</li> | </li> |
Revision as of 13:08, 5 August 2016
The generation of an IMSMA staging area needs human interaction. However, there might be the requirement to re-generate the staging area regularly, in order to have an up-to-date reporting database. It is possible to automatize the staging area generation by following these steps:
- In the C:\IMSMAETLTool folder, create a .bat script named for example runStagingArea.bat with the following content:
cd C:\IMSMAETLTool call bin\runnogui.bat
- Edit the properties file C:\IMSMAETLTool\conf\config.PROPERTIES by specifying the required values for all the parameters (they correspond to the ones from the graphical user interface described here). If a parameter should not be used, e.g. script_file, then comment it by placing a # at the beginning of the line:
conversion_language=en gazetteer_sequence_level=0 #script_file=scripfile.sql
- Schedule a task in an operating system's task scheduler. For example, using Windows 7, follow those steps:
- Go to Control Panel → Administrative Tools → Task Scheduler
- In the Task Scheduler interface, click on Create Basic Task...
- In the Create Basic Task Wizard, provide a name, e.g. Staging Area Generation and an optional description. Click Next.
- In the next window, specify the required recurrence (daily, weekly, etc.) and click Next.
- Next, refine recurrence criteria (e.g. time of the day) and click Next.
- In the next window, select Start a Program and click Next.
- Browser to the previously created script, e.g. C:\IMSMAETLTool\runStagingArea.bat. Click Next and then Finish.
The staging area generation should now start at the specified time.
It is advised to plan the generation time carefully, i.e. best during the night when no one is accessing and entering data into IMSMANG, as this might lead to inconsistencies. Ideally, the IMSMA server should be stopped before the staging area generation and then restarted. It also needs to be assured that no one (and no automatic reporting process) is accessing the staging area database at the time it has to be re-created. As long as there are open connections to the database, it cannot be dropped and re-created. Contact your GICHD IM advisor in case of questions.
|