This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
configuration:sms-control [2015/08/27 07:12] hess created |
configuration:sms-control [2017/12/04 17:25] fachet [SMS Control] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== SMS Control ====== | + | ====== Starting the SMS Control script ====== |
===== Configuration ===== | ===== Configuration ===== | ||
- | - Enable the SDK: Services->SDK->Administration | + | - Enable the SDK: Services =>SDK =>Administration |
- | - Services->SDK->Job Management->Scripts-> [+] Create a new Script | + | - Services => SDK =>Job Management =>Scripts => [+] Create a new Script |
* Name: e.g. smscontrol | * Name: e.g. smscontrol | ||
* Descr. e.g. smscontrol | * Descr. e.g. smscontrol | ||
* Arguments: "noauth", by default you need a password to use the sms controll script. If you want the old behaviour please use the argument noauth | * Arguments: "noauth", by default you need a password to use the sms controll script. If you want the old behaviour please use the argument noauth | ||
* choose the sms-control.are from the Example Skript in the select area | * choose the sms-control.are from the Example Skript in the select area | ||
- | - Services->SDK->Job Management->Trigger-> [+] Create a new Trigger | + | - Services =>SDK => Job Management => Trigger => [+] Create a new Trigger |
- | a. Name e.g. sms-in | + | * Name e.g. sms-in |
- | b. Type: event-based | + | * Type: event-based |
- | c. Event: sms-received | + | * Event: sms-received Put the trigger and the script into one job: |
- | Put the trigger and the script into one job: | + | - Services =>SDK => Job Management => Jobs => [+] Create a new Job |
- | 4. Services->SDK->Job Management->Jobs->[+] Create | + | * Name: smsServer |
- | a new Job | + | * Script: smscontrol |
- | a. Name: smsServer | + | * Trigger: sms-in |
- | b. Script: smscontrol | + | |
- | c. Trigger: sms-in | + | ===== Usage ===== |
- | sending an SMS to the SIM card number: | + | Sending an SMS to the SIM card number: \\ |
- | 1 line: NetModule-Password | + | First line: <admin password> \\ |
- | 2 line: output 1/2 on/off, reboot, disconnect, conn | + | Second line: <command argument1 argument2> \\ |
- | ect, status | + | |
+ | ==== Example ==== | ||
+ | <code - SMS.txt> | ||
+ | admin01 | ||
+ | status | ||
+ | output 1 on | ||
+ | output 2 on | ||
+ | output 1 off | ||
+ | output 2 off | ||
+ | disconnect | ||
+ | connect | ||
+ | reboot | ||
+ | </code> |