RangeeOS - Monitoring Network Connectivity via PING

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

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:

  • determine whether a problem exists in the internal network or on a WAN link
  • correlate connection drops of a connection with actual network outages (protocol errors vs. network errors)

    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.

Configuring the Script

Navigate to Tools (Connections in RangeeOS 12.00 or earlier) -> Scripts -> New Connection.
To run the script completely invisibly for the user, set it up as follows:

  • Connection name: freely selectable (e.g.: Pinglog)
    _Script (Adjust_ *#ZielIp# according to your needs):

    # Define target address - please adjust
    target=#ZielIp
    #
    # Function for continuous ping to the gateway
    function ping_target {
      echo "----- Ping to Server -----" >> $log_file
      ping -O $target | while read pong; do
          echo "$(date): $pong" >> $log_file
      done
    }

    ping_target

  • Automatic start: on
  • Create desktop shortcut: off
  • Create shortcut in start menu: off
  • Show notification on start: off

    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.

    After a restart, the ping starts automatically.

Reading the Results

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:
1784291186678-199.png