[tkined] Tnm: icmp echo problems

Paul Wood (pcwood@lacuna.is.temple.edu)
Thu, 19 Feb 1998 11:07:13 -0500 (EST)

Greetings,

I am writing a network IP device monitoring program in Tcl using the
Tnm
(Scotty) libraries. The following is a sample of my code:

set ping [icmp -retries 4 -timeout 8 echo $dev]
# then parse out the result so we see its response
set pingresult [lindex $ping 0]
set responselist [split $pingresult " "]
set updown [lindex $responselist 1]
# if device reports as down
if { $updown == "-1" } {
# do stuff
}

The program works great for a few hours then strange things occur. The icmp
echo will return false results (positive round trip times) when I know for a
fact the device in question is NOT on the network.

Has anyone experienced similar results? Is there a solution?

I am using release Scotty v2.1.7.

-- 
-=( Paul Wood                            http://thunder.temple.edu/~pcwood)=-
-=( paul.wood@lacuna.is.temple.edu      Temple University Network Services)=-
--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.