http://www.perlmonks.org?node_id=987316


in reply to What did I miss in my test condition?

Try pinging the radio to see if it's alive before making the SNMP query?

$ ping -c 3 -W 1 $dead_host >/dev/null 2>&1 $ echo $? 1 $ ping -c 3 -W 1 $live_host >/dev/null 2>&1 $ echo $? 0
Converting this to perl should be trivial.