çPing-sweep LAN via
ping web diagnostic tool on ZyXEL Prestige routers (tested on ZyXEL P-660HW-T1)
¼[snip]
for IP in `cat $3`
¼ do
¼ echo "pinging: $IP"
¼ if curl -s -L -d "PingIPAddr=$IP&Submit=Ping&IsReset=0"
--url "http://$1/Forms/DiagGeneral_2" |
grep "Ping Host Successful" > /dev/null
¼ then
¼ echo "live!: $IP"
¼ fi
¼ done
[snip]