Changes

321 bytes added ,  16:36, 11 November 2022
no edit summary
Line 5: Line 5:  
==Configuration overview and prerequisites==
 
==Configuration overview and prerequisites==
   −
Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible. On a RUT1 an I/O Juggler action is created to execute a command when Input 1 is being triggered to a state high to change Output state to high on a RUT2.
+
Before we begin, let's overview the configuration that we are attempting to achieve and the prerequisites that make it possible. On a RUT1 an I/O Juggler action is created to execute a SMS and Script when Input 1 is being triggered to a state high to change Output state to high on a RUT2.
    
# RUT1 Input 1 state changes to a High;
 
# RUT1 Input 1 state changes to a High;
Line 89: Line 89:  
----
 
----
   −
==Via Public IP==
+
==Via Public IP using curl -X==
 
For this configuration you will need a Static or Dynamic Public IP address. You can read up more on this in our article on [[Private_and_Public_IP_Addresses|Private and Public IP Addresses.]] Action will execute a script that contains a curl -X command which will change RUT2 Output state to a high via RUT2 Public IP.  
 
For this configuration you will need a Static or Dynamic Public IP address. You can read up more on this in our article on [[Private_and_Public_IP_Addresses|Private and Public IP Addresses.]] Action will execute a script that contains a curl -X command which will change RUT2 Output state to a high via RUT2 Public IP.  
   Line 105: Line 105:  
[[File:Access control rutos.png|border|center|class=tlt-border|1004x1004px]]
 
[[File:Access control rutos.png|border|center|class=tlt-border|1004x1004px]]
   −
====SMS Gateway (Post/Get) configuration====
+
====Post/Get configuration====
 
Post/Get allows you to perform action requests by writing them in the URL after your device’s IP address.
 
Post/Get allows you to perform action requests by writing them in the URL after your device’s IP address.
 
----
 
----
Line 140: Line 140:  
More information about '''curl -X''' command syntax [[RUT955_Mobile_Utilities#Post.2FGet|here]].
 
More information about '''curl -X''' command syntax [[RUT955_Mobile_Utilities#Post.2FGet|here]].
   −
==Via RMS VPN==
+
==Via RMS VPN using curl -X==
 +
For a more secure alternative, RMS VPN could be used to execute a curl -X script.
 +
===RMS VPN configuration===
   −
===RMS VPN configuration===
+
Go to [http://rms.teltonika-networks.com rms.teltonika-networks.com], log into your RMS account and create a RMS VPN Hub. A guide on how to set up a RMS VPN Hub can be found [https://youtu.be/dfAudZR2wPY here].
   −
A guide on how to set up a RMS VPN Hub can be found [https://youtu.be/dfAudZR2wPY here].
+
[[File:RMS VPN config IO.png|border|center|class=tlt-border|604x604px]]
   −
Both RUT1 and RUT2 have to be added to RMS VPN Hub.
+
Please make sure that both RUT1 and RUT2 have been added to RMS VPN Hub.
    
====Script====
 
====Script====
Adjust the script accordingly to the RMS VPN Hub assigned IP to RUT2.
+
Adjust the script accordingly to the RMS VPN Hub assigned IP to RUT2. The script that been used in this example can be found [https://wiki.teltonika-networks.com/wikibase/index.php?title=Domnev&oldid=97995#Actions_configuration_2 here].
 
  −
<pre>#!/bin/sh
  −
 
  −
curl -X GET "http://192.168.255.6/cgi-bin/sms_send?username=user1&password=password&number=0037066081843&text=admin01 outputon"
  −
 
  −
exit 0</pre></li>
      
==Results==
 
==Results==