Answers for "ping"

12

ping

Packet Internet Network Groper. Used to test the reachability of network devices.
Posted by: Guest on November-03-2020
4

ping

pong (NOW GO LOOK UP "PONG")
Posted by: Guest on December-15-2020
0

ping

ping google.com
Posted by: Guest on May-13-2021
1

ping

#!/bin/bash
HOSTS="cyberciti.biz theos.in router"

COUNT=4

for myHost in $HOSTS
do
  count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
  if [ $count -eq 0 ]; then
    # 100% failed 
    echo "Host : $myHost is down (ping failed) at $(date)"
  fi
done
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language