#!/usr/bin/python3 # -*- coding: utf-8 -*- import os import argparse import socket import struct import select import time ICMP_ECHO_REQUEST = 8 # Platform specific DEFAULT_TIMEOUT = 0.1 DEFAULT_COUNT = 4 class Pinger(object): """ Pings to a host -- the Python…