giovedì 14 luglio 2011

TCLSH script

TCL is a great tool to check full reachablility. Below is a simple script to check end to end connectivity

tclsh
foreach i {
150.1.1.1
192.10.1.1
141.1.123.1
}  {ping $i}

or

foreach address {1.1.1.1
2.2.2.2
3.3.3.3
4.4.4.4
5.5.5.5
6.6.6.6
} { puts [ exec "ping $address" ] }