Enable the SDK service
Test SDK with a 'Hello World' Script
Your script says:
The job management system is made up of three parts: a script, an event trigger and your jobs themselves.
The first step to using this tool for automation purposes would be creating some basic tasks in the form of scripts which can do things like specific functions such as sending an SMS, mounting a USB stick or listening to a serial interface – all while returning results that tell us whether they were successful.
Triggers allow you to start the action at a certain point in time or when something happens. Triggers can be based on programmable events happening inside your router, like incoming calls and other various things which happen with interfaces powered up/off etc. A trigger can also be initiated through the command line interface (CLI).
For each job, a script can be assigned and executed when the trigger event occurs for that particular task. Scripts can be linked to different triggers under a Job.
Adding a Script
Add a new Script
Hello World Test Script
printf(“hello %s\n”, argv);
Adding a Trigger
Add a new Trigger
Adding a Job
Add a new Job
View the output from the script after it executed.
hello world === job 0 ended at 2022-10-04 04:46:00 (with exit code 0)