Categories
DuxTel Systems (11)
Interface Cards and Adapters (14)
Mikrotik Systems-> (157)
Mimosa Wireless (5)
RouterBOARD (11)
Router Enclosures (11)
Power Supplies & PoE-> (29)
Antennas and Accessories-> (106)
Mikrotik RouterOS (6)
Assembled Kits (6)
Carrier Wireless (1)
Cable and Misc (14)
Hardware and Mounting (23)
Configuration Library (FREE!) (7)
Quick Find
  
search products
search articles
Articles
New Articles
Case Studies
Product Guides (2)
Mikrotik Configuration (17)
Technical (5)
Community News (9)
Q&A (28)
Product Advisory (7)
Policy and Information (7)
Information
Shipping & Returns
Privacy Notice
Conditions of Use
Contact Us
Check PPP link, reset when down by Richard Wiltshire

We recently had an event with a DuxCel unit where one of our business units let the pre-paid data run out and it was nearly 3 weeks until it was topped up.

Because it had been left so long, even when the data was activated again, there was no cellular connection until the PPP interface was disabled/enabled.

Therefore I created the attached netwatch script (attached) – thought it may be of some use/interest to you.

Functionality is as follows:

1.     Netwatch will ping Google DNS server (8.8.8.8) every 15 mins

2.     If there is a ping reply (within 1000ms), then “Cellular up” is logged – no further action.

3.     If there is no ping reply, Netwatch will invoke a script, the script will then:

a.     Log “Cellular down”

b.    Disable/re-enable the Cellurar4G interface (with 10s delay)

c.     Disable the Netwatch for 15 mins – to allow plenty of time for the Cellular connection to re-establish.

4.     After 15 minutes the Netwatch is enabled, and starts to ping 8.8.8.8 every 15 minutes.

5.     If there is a ping reply (within 1000ms), then “Cellular up” is logged – no further action.

6.     If there is no ping reply, Step 3 repeats. 

I had to do it this was because Netwatch only functions on a change of state, so if the SIM data ran out and 8.8.8.8 can’t be pinged, it would only cycle the Cellular4G interface once. It would not repeat, which is not what we need to re-establish the Cellular connectivity once the data is topped up (after a long period of time).

Download the script here!

Shared by Richard Wiltshire of RCW Consultants

Comments, suggestions, feedback is welcome!  Contact Richard!

 

Date Added:
Current Comments: 0
Write Review
Tell a friend
Tell a friend about this article:  
Shopping Cart
more
0 items
Latest News
about 5 days ago
LOOK! The new wsAP-lite is a dual band WiFi AP with passthrough PoE ethernet that fits into a power point profile!
more >>
about 5 days ago
The new LtAP-mini is the ideal mobile and vehicle connectivity system with GPS - add your own 4G modem for the ulti…
more >>
about 5 days ago
The cool new RBLHGG-60adkit Wireless Wire Dish Kit is on its way - available for pre-order right now!
more >>
about 5 days ago
DuxTel News: Half-price Mimosa, MikroTik LTE updates, MUM 2018 Highlights -
more >>
about 01 month ago
CCR1072-1G-8S+ - it doesn't get any better than this! Normally $4325, special price $2999 - (ex demo model, 1 unit…
more >>
about 01 month ago
ready for MikroTik Certified Training - kicking off TOMORROW! :)
more >>
about 01 month ago
MikroTik's first ever true 802.3af/at PoE switch with auto-detecting 24v/48v and 4x 10GB SFP+ uplink is available n…
more >>
about 01 month ago
Thinking about horns? See here! :)
more >>
about 01 month ago
The QuickMount-PRO includes support for the new SQT-Sq products has just arrived!
more >>
Follow our tweets for all the latest news and updates!
twitter.com/duxtel
Reviews
more
GrooveA-52HPn: dual-band outdoor AP
The GrooveA-52HPn is an amazing unit. Exactly what you would ..
5 of 5 Stars!

Copyright © 2018 DuxTel Online Store