Running SDK
In the SDK, we are speaking of
scripts
and
triggers
which form
jobs
. Any
arena
script can be
uploaded to the router or imported by using dedicated user configuration packages. You may also edit
the script directly at the Web Manager or select one of our examples. You also have a testing section
on the router which can be used to check your syntax or doing test runs.
Once uploaded, you will have to specify a trigger, that is, telling the router when the script is to be ex-
ecuted. This can be either time-based (e.g. each Monday) or triggered by one of the pre-defined system
events (e.g. wan-up) as described in Section 7.6.7, “Events”. With both, a script and a trigger, you can
finally set up an SDK job now. The test event usually serves as a good facility to check whether yourjob
is working as expected. The admin section also offers facilities to troubleshoot any issues and control
running jobs. The SDK host (sdkhost) corresponds to the daemon managing the scripts and their oper-
ations and thus avoiding any harm to the system. In terms of resources, it will limit CPU and memory
for running scripts and also provide a pre-defined portion of the available flash storage. You may,
however, extend it by external USB storage or (depending on your model) SD cards.
Files written to
/tmp
will be hold in the memory and will be cleared upon a script restart.. As your scripts
operate in the sandbox, you will have no access to the system tools (such as
ifconfig
).
Administration
103
© RACOM s.r.o. – MG102iGPRS/UMTS/HSPA+/LTE router
Web Configuration
Summary of Contents for MG102i
Page 2: ......
Page 147: ...147 RACOM s r o MG102iGPRS UMTS HSPA LTE router Web Configuration...
Page 174: ...174...