Thursday, August 30, 2012

Tickle (Tcl) your NLRI !!! :)


You can use a simple Tcl script to test connectivity between your devices:

foreach ip {
 x.x.x.x
 x.x.x.x
 x.x.x.x} { ping $ip
 }

For example, below is one tcl script that I had ready to check NLRI after performing an OSPFv3 lab.

tclsh

foreach ip {

 2000:1:1:12::1
 2000:1:1:1::1
 2000:11:11:11::11
 2000:1:1:23::2
 2000:1:1:12::2
 2000:2:2:2::2
 2000:22:22:22::22
 2000:1:1:34::3
 2000:1:1:23::3
 2000:3:3:3::3
 2000:33:33:33::33
 2000:1:1:34::4
 2000:4:4:4::4
 2000:44:44:44::44} {ping $ip rep 10}

 tclquit

There is an obvious advantage when using these kind of scripts, that is you end up saving lot of time during practise and this is also a must use tool  during ccie lab as well; especially when you want to check your basic network reachability before you break for lunch.

HTH

No comments:

Post a Comment