The server uptime testing tool is a command like tool developed with Python and Scapy which would send ping packets to the server at required intervals. If the ping packet is not received at a specific time, the tool would display the time along with the text ‘server was down’. If up, the tool would display ‘server was up’ at the specific time. The tool is developed using Python and Scapy framework and would work on Windows and Linux Platforms. The output of the code is shown below.
from scapy.all import *
print “Server was up at”, a
print “Server was down at”, a
Learn to make custom network tools and scripts with our video course – Click Here