image

Check for network population

[<Back>] [<Edit>]

Checking for network population based on ping

ipList='90','91','254'
for IP in ${ipList//,/ }
do
  ping -c 1 -W 1 192.168.1.$IP
  if [[ $? != 0 ]]; then
    ALIVE=$((ALIVE+1))
  else STATUS=$((STATUS+1))
fi
done

echo "Dead: "$ALIVE
echo "Alive: "$STATUS



By: Ted Simbajon





 
Instagram Stats
pinoy
my Kung Fu