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

Show last authors
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:
2
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" %)
5 (((
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.
7 )))
8
9 = Configuring the Script =
10
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:
13
14 * Connection name: freely selectable (e.g.: Pinglog)
15 _Script (Adjust_ *#ZielIp#** according to your needs):**(((
16 ### Define target address - please adjust
17 target=#ZielIp###
18 ### Function for continuous ping to the gateway
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 )))
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" %)
31 (((
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.
34
35 = Reading the Results =
36
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:
38 [[image:1784291186678-199.png]]