As we know that the router is supported by MikroTik RouterOS has a wide range of features. Because of the many features in MikroTik, there may be some features that are rarely used. So it can be likened to a forgotten feature. Well, one example is the SMS (Short Massage Service). We can find these features in the “Tools” menu.
With this SMS feature we can use to support the networking purposes, among which,
1. Make / disable User
2. Changing the rule Queue
3. Reset / Shutdown Router
4. Monitoring Internet connection
5. Provide information if there is a link is down.
Setting 3G Modem dan SMS
The first, we connect the modem to the router‘s USB port. Then we check if the modem is connected to the router properly and supported by RouterOS. We can see through the menu System> Resources> select USB. Then it will appear as follows.
And we can also see it using New Terminal> type / Port Print. Then it will appear as follows.
Next we will do the configuration for the SMS feature. Select the Tools menu> SMS. Check for the option ‘recieve Enabled‘ (It has a function that can receive SMS router to run a script or command). Then specify the parameters for ‘Port‘ select USB1 (This parameter is adjusted to the current usb port for modem devices. Each router is usually different). For ‘Channel’ can be tailored to each modem devices, because each modem has a different channel.
Decide also for the parameter ‘Secret‘, for example here we fill 696969 (This serves as a password that will be used to run scripts / command when the router receives a SMS).
Finally click Apply.
Sending SMS via MikroTik
This time we will try to send an SMS via Mikrotik. The trick was also easy, just click on the ‘Send SMS‘. Then we set the parameters that exist. At Port and Channel we adjust the previous configuration. On the Phone Number, enter the number that will be addressed. At SMSC, we fill in the SMS Center number of providers that we use. In the Message, we fill in the message that we send. to send a message just click the ‘Send SMS‘.
Running Script / Command when receiving SMS
If we choose the option ‘Receive Enabled’ then the router can receive SMS and we can see in the ‘Inbox’ on the SMS Settings. In addition, we can also run scripts / command upon receiving the SMS router. For this example we will reboot the router via SMS. For its configuration is as follows. The first, we create a script that is used to reboot the router.
No comments:
Post a Comment