From: CharlesB (cbalik@adelphia.net)
Date: Mon Aug 28 2006 - 12:50:19 ART
I just post this yesterday too, here it is,
This is from IE workbooks.
First, get in the tcl level
r5#tcl
r5#tcl?
tclquit tclsh
r5#tclsh
r5(tcl)#
Then, paste your script.
r5#tclsh
r5(tcl)#foreach i {
+>(tcl)#150.3.1.1
+>(tcl)#150.3.2.2
+>(tcl)#150.3.3.3
+>(tcl)#150.3.4.4
+>(tcl)#150.3.5.5
+>(tcl)#150.3.6.6
+>(tcl)#150.3.7.7
+>(tcl)#150.3.8.8
+>(tcl)#192.10.3.6
+>(tcl)#204.12.3.4
+>(tcl)#54.3.2.6
+>(tcl)#} { puts [ exec "ping $i" ] }
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 84/85/88 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/114/116 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 150.3.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/30/32 ms
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
Noor Yousuf
Sent: Monday, August 28, 2006 8:43 AM
To: Cisco certification
Subject: script to ping all routers/switches
Hi,
Can any one tell me how to create a script to ping all the
routers/switches in the lab exam and how to use it?
Thanks,
Noor
Noor Yousuf
Senior Network Engineer
Connections Canada Inc.
5466 Timberlea Blvd, Unit A
Mississauga, ON L4W 2T7
Office: 905.890.0777 x 7171 Fax: 905.206.0777
This archive was generated by hypermail 2.1.4 : Fri Sep 01 2006 - 15:41:59 ART