Page 1 of 1

Dude v6 - SMS notification trough USB modem on ROS - using sms tool

Posted: Thu May 18, 2017 10:01 pm
by slech
Related solutions:
Dude v6 - SMS notification

Requirements:
1. Mikrotik ROS with installed Dude server.
2. USB modem plugged in ROS.

Setup instruction:
1. Create new Notification in Dude
Name: SMS-Notification
Type: execute on server
Command:
#
:local notificationtext "Service [Probe.Name] on [Device.Name] is now [Service.Status]"
:local usbport "usb1"
#
#
# First Name Last Name
:local phonenumber "+xxxxxxxxxxx"
#
/tool sms send phone-number="$phonenumber" $usbport message="$notificationtext"
#
And test it via pressing Test button.

2. Now you can use it:
Dude-v6-SMS-notification-through-USB-modem-on-ROS-using-sms-tool-01.png
Related Wiki topics:
Manual:Tools/Sms

Hope this will help someone.

Re: Dude v6 - SMS notification trough USB modem on ROS - using sms tool

Posted: Mon Oct 09, 2017 2:58 pm
by zbaralic
Thank you.

I've attached Moto V3x over USB and provided example is working perfectly.
Router OS v6.40.1 on X86 platform (HP ThinClient) & moto V3x for SMS Notifications. For small LAN like mine (15 devices monitored, mostly ping-pong) couldn't make better solution.

Re: Dude v6 - SMS notification trough USB modem on ROS - using sms tool

Posted: Tue Apr 16, 2019 4:27 pm
by Rudo
Thanks as well!
Note: I had to specify the channel as well.
Also added more users to notify.

Command:
# Message
:local notificationtext "Service [Probe.Name] on [Device.Name] is now [Service.Status]"
# USB modem details
:local usbport "usb1 channel=0"

# Specify numbers
# User1
:local phonenumber1 "0123456789"
# User2
:local phonenumber2 "0123456789"
# User3
:local phonenumber3 "0123456789"

# Log info for fault finding
:log info "$notificationtext"

# Send notifications
/tool sms send usb1 channel=0 phone-number="$phonenumber1" message="$notificationtext";
:delay 10;
/tool sms send usb1 channel=0 phone-number="$phonenumber2" message="$notificationtext";
:delay 10;
/tool sms send usb1 channel=0 phone-number="$phonenumber3" message="$notificationtext"