Digital Loggers

Auto-PingTM


Auto-PingTM

Auto-PingTM is an automatic system for rebooting IP equipment without human intervention. Auto-Ping works by cycling power when a device becomes unresponsive to IP pings.  This page describes specific AutoPing features for products with WiFi.  If you have a non-WiFi power controller, click here.   To use Auto-Ping, first add an IP address. Next, link that IP address to one or more outlets. Timing settings can be tuned to your application.

 



Adding an IP Address to Auto-Ping

After entering the IP address, press the Add button, the settings page will refresh and you can select the outlets associated with this address. Use the checkboxes in the Auto-PingTM section to correlate the IP address to one or more outlets and/or select a script to run. If communications to the IP address is lost, these outlets will be rebooted or the script will be run depending on your settings. Timing settings are set via the AutoPing Properties section.


Autoping Properties


Enable AutoPing
Enables the auto-ping module

Time between pings(2-3600 seconds)
The time interval between successive pings to the target device. Note that this determines the packet rate by IP, not by AutoPing entry, so if you enter the same IP in different AutoPing entries, it won't be flooded.

Ping timeout to reboot (2-3600 seconds)
The reboot action is performed if no responses have been received from any of the IPs for this amount of time (if the entry is enabled, see below).

Ping responses to enable autoping (0-100 pings)
How many pings should be successful before enabling the AutoPing entry (allowing the reboot action to be triggered). This setting prevents enabling AutoPing on an unreliable network and rebooting equipment unnecessarily. This many (default 10)  initial pings are sent, with the same interval as specified in the Time between pings variable.

Times to attempt reboot (1-255 attempts)
Number of times to attempt power cycling before giving up and disabling the AutoPing entry (leaving the outlets alone).

Device reboot delay (1-43200) seconds
Length of time after a power cycle before checking for a response from the device. This allows a device or computer time to completely boot up. During this time interval, no pings are sent to the device.


Starting Auto-Ping

After checking the timing settings for safety, first check the box to the left of the IP address.  Next click   to start Auto-Ping.  To ensure a reliable connection exists, Auto-Ping will only be enabled after 10 successful ping cycles (unless otherwise configured.)
 

Stopping Auto-Ping

To stop Auto-Ping operation, uncheck the checkbox to the left of the IP address and click   to apply.

You can stop all autopings by unchecking the "Enable AutoPing" checkbox and pressing Apply.

Adding Secondary IPs (formerly Joining)

You can also add any number of secondary IP address to Auto-Ping.  For example, you might want to monitor several Internet servers.  If all servers are inaccessible, you may want to restart a router.   After entering the first IP address, a second line appeared in the same section.  Add the new IP address in the empty IP address box. Press  to apply.

Starting a Script from Auto-Ping

Auto-Ping can trigger execution of a user-defined script.   Choose the name of the script's function to the right of the outlets list.  This is handy where you need to bring equipment up in sequence after a restart.  For example, you might want to start a router first then, a minute later, a file server.

Starting Auto-Ping From a Script

You can use a user-defined script. to start AutoPing.  For example:

while true do
    autoping.items[1].enable(true)
    delay(3600)
end

will attempt to enable the AutoPing entry #1, retrying every hour. The requirement for several successful sequential pings before startup applies. You might include this or a similar function and set it to be called at power-up.

 

Stats

AutoPing entries which are currently pending to be enabled have yellow checkbox backgrounds. AutoPing IPs for which there currently are unanswered ping requests have red borders. The statistics box reports the number of pings transmitted, received, and reboot condition triggers ("hits").


Advanced AutoPing Targets


AutoPing targets don't have to be IP addresses. If you enter a hostname, it will be resolved before sending each request. If the name resolution fails, it is assumed to be a local error and, as described
above, no action is taken. If a name is resolved to multiple IP addresses, a random one is chosen.

AutoPing defaults to checking targets using the ICMP protocol by default. A variety of other ping target kinds can be used if you specify a URL instead of simply an IP address or hostname. Supported URL schemes include:

- icmp --- this is explicit specification of the "regular" ping protocol, e.g. icmp://192.168.0.1 is equivalent to 192.168.0.1 (note that no trailing slash is used);


- tcp --- this causes AutoPing to try to establish a TCP connection to the given port, e.g. tcp://192.168.0.1:22 can be used to check that there's a service listening on TCP port 22 (usually SSH) of 192.168.0.1 (note that no trailing slash is used);
 

- http and https --- this causes AutoPing to perform a HTTP/HTTPS GET request for the given URL, e.g. http://www.digital-loggers.com/index.html can be used to check that the web server is responding and can serve its main page.

Like to learn about our Power Controllers?

Take a peek at our redundant rack-mount controllers.  DLI also builds Ethernet controlled DIN relays and a very cost-effective desktop power switch.

Order Today - Risk Free

Your power controller is ready for overnight shipment. Call (408) 330-5599 for a 15-day risk-free evaluation.  Auto-PingTM is a trademark of Digital-Loggers, Inc.