Quantcast
Channel: IEOC - INE's Online Community
Viewing all articles
Browse latest Browse all 10744

TCL srcipt for ping ip range in VRF

$
0
0

Hi,

I would like to share a small script for pinging ip range in a vrf using tclsh in Cisco IOS.

router(tcl)# for { set i 1 } { $i <= 100 } { incr i } { ping vrf TEST 10.10.10.$i re 5 }

The above script will do a ping with 5 packets to IP range 10.10.10.1---10.10.10.100

The same can be used for nomal pinging by removing vrf and vrf name.

 

Thanks


Viewing all articles
Browse latest Browse all 10744

Trending Articles