Last modified by Tobias Wintrich on 2026/07/17 14:30

Hide last authors
Tobias Wintrich 3.1 1 In case of recurring connection drops, it can be helpful to monitor the availability of the network. This article describes how to place a small script on a client that continuously pings a specified server and logs the results. With these results, you can, for example:
Tobias Wintrich 2.1 2
Tobias Wintrich 3.1 3 * determine whether a problem exists in the internal network or on a WAN link
4 * correlate connection drops of a connection with actual network outages (protocol errors vs. network errors)(% class="box infomessage" %)
Tobias Wintrich 2.1 5 (((
Tobias Wintrich 3.1 6 The Scripts module is already an integral part of the operating system as of firmware 13.00. On RangeeOS 12 or earlier, the software module "**scripts**" must be installed additionally.
Tobias Wintrich 2.1 7 )))
8
Tobias Wintrich 3.1 9 = Configuring the Script =
Tobias Wintrich 2.1 10
Tobias Wintrich 3.1 11 Navigate to **Tools** (Connections in RangeeOS 12.00 or earlier) -> **Scripts** -> **New Connection**.
12 To run the script completely invisibly for the user, set it up as follows:
Tobias Wintrich 2.1 13
Tobias Wintrich 3.1 14 * Connection name: freely selectable (e.g.: Pinglog)
15 _Script (Adjust_ *#ZielIp#** according to your needs):**(((
16 ### Define target address - please adjust
Tobias Wintrich 2.1 17 target=#ZielIp###
Tobias Wintrich 3.1 18 ### Function for continuous ping to the gateway
Tobias Wintrich 2.1 19 function ping_target {
20 echo "~-~-~-~-- Ping to Server ~-~-~-~--" >> $log_file
21 ping -O $target | while read pong; do
22 echo "$(date): $pong" >> $log_file
23 done
24 }##
25 ##ping_target##
26 )))
Tobias Wintrich 3.1 27 * Automatic start: on
28 * Create desktop shortcut: off
29 * Create shortcut in start menu: off
30 * Show notification on start: off(% class="box infomessage" %)
Tobias Wintrich 2.1 31 (((
Tobias Wintrich 3.1 32 If you want to check whether there is a difference between internal and external traffic, you can also create the script multiple times with different #ZielIp# values.
33 )))After a restart, the ping starts automatically.
Tobias Wintrich 2.1 34
Tobias Wintrich 3.1 35 = Reading the Results =
Tobias Wintrich 2.1 36
Tobias Wintrich 3.1 37 You can read the results of the ping attempts under **Tools** (Connections in RangeeOS 12.00 or earlier) -> **Scripts** -> **Your connection name** -> **Log file**. This file may look something like this:
Tobias Wintrich 2.1 38 [[image:1784291186678-199.png]]