Community discussions

MikroTik App
 
User avatar
stmx38
Long time Member
Long time Member
Topic Author
Posts: 618
Joined: Thu Feb 14, 2008 4:03 pm
Location: Moldova, Chisinau

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

Thu May 18, 2017 10:01 pm

Related solutions
Dude v6 - SMS notifications

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:
# Variables
:local notificationtext "Service [Probe.Name] on [Device.Name] is now [Service.Status]"
:local usbport "usb1"
#
#
# Firstname Lastname
: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

Note
Please pay attention to the USB modem channel configuration before use notification. You can set it in "Tools --> SMS" menu.
You do not have the required permissions to view the files attached to this post.
Last edited by stmx38 on Thu Aug 03, 2023 11:39 am, edited 8 times in total.
 
zbaralic
just joined
Posts: 4
Joined: Fri Mar 25, 2016 7:08 pm

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

Mon Oct 09, 2017 2:58 pm

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.
 
Rudo
just joined
Posts: 1
Joined: Tue Apr 16, 2019 4:04 pm

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

Tue Apr 16, 2019 4:27 pm

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"

Who is online

Users browsing this forum: No registered users and 25 guests