NET diagnostic Plugins E1
NET diagnostic Plugins E1
#!/bin/sh
date
echo "Begin_Testing router (192.168.8.1)"
data="`ping -c 1 192.168.8.1 | grep '100%'`"
if [ "$data" = "" ];
then
echo "Router OK"
else
echo "Router NOT WORK"
fi
echo "Begin_Testing internet (http://www.ping.eu)"
data="`ping -c 1 Online Ping, Traceroute, DNS lookup, WHOIS, Port check, Reverse lookup, Proxy checker, Mail relaying, Bandwidth meter, Network calculator, Network mask calculator, Country by IP, Unit converter | grep '100%'`"
if [ "$data" = "" ];
then
echo "Internet OK"
else
echo "Internet NOT WORK"
fi
echo "Begin_Testing sharing (***.***.***.***)"
data="`ping -c 1 ***.***.***.*** | grep '100%'`"
if [ "$data" = "" ];
then
echo "Sharing OK"
else
echo "Sharing NOT WORK"
fi
edit line data=****
NET diagnostic Plugins E1
#!/bin/sh
date
echo "Begin_Testing router (192.168.8.1)"
data="`ping -c 1 192.168.8.1 | grep '100%'`"
if [ "$data" = "" ];
then
echo "Router OK"
else
echo "Router NOT WORK"
fi
echo "Begin_Testing internet (http://www.ping.eu)"
data="`ping -c 1 Online Ping, Traceroute, DNS lookup, WHOIS, Port check, Reverse lookup, Proxy checker, Mail relaying, Bandwidth meter, Network calculator, Network mask calculator, Country by IP, Unit converter | grep '100%'`"
if [ "$data" = "" ];
then
echo "Internet OK"
else
echo "Internet NOT WORK"
fi
echo "Begin_Testing sharing (***.***.***.***)"
data="`ping -c 1 ***.***.***.*** | grep '100%'`"
if [ "$data" = "" ];
then
echo "Sharing OK"
else
echo "Sharing NOT WORK"
fi
edit line data=****
Comment