#!/bin/bash

for i in $(seq 1 255);

do ping 192.168.9.$i -c 1 -w 2 >/dev ull 2> & 1;

if [ $? != 0 ];then

echo “$i is not online”;

fi;

done;