Question: How do I create a scheduled job using the command line in eHealth
Answer: To create a scheduled job we will have to first create the type. Here is the syntax to create a type
nhSchedule -defineType "<type>" -load 10 -cmd "<command to run>"
Example: nhSchedule -defineType "ECB" -load 10 -cmd "$NH_HOME/bin/nhExportConfig -dciOut $NH_HOME/poller/elementCfgBackup.dci -sections Elements -sections Associations"
Once the type has been created, the job can be created using the following syntax
nhSchedule -schedule <jobtype> -jobid <number> -time "<time>" -period <number>
Example: nhSchedule -schedule "ECB" -jobId 1000099 -time "12:04 am" -period 4
The newly created job can be viewed by listing all the jobs using the following command
nhSchedule -list -full