From: Scott Smith (hioctane@gmail.com)
Date: Sat Oct 01 2005 - 18:22:56 GMT-3
Here is a version I created from pieces of other scripts. This one
adds a little and may not be as hard to remember.
****************************
tclsh
proc ping_all {n} {
foreach ip {
1.1.1.1
2.2.2.2
3.3.3.3
} {
if {[regexp "(!!)" [exec "ping $ip"]]} {
} else {
puts "$ip *** FAILED ***"
}
}
}
exec
****************************
The only results you see are the ones that fail. Of course you have to
enter the IP addresses manually. I do this after the layer 2 stuff
when I verify connectivity router to router before I start the routing
protocols. I simply do a "sh ip int brief" and copy/paste every
interface of every router/switch into the script in notepad then paste
the script into the routers. The script above is written to be pasted
directly. It starts tclsh and ends by returning to exec. From the
router command line just enter "ping_all 1" (the 1 doesnt do anything
but must be there).
I have noticed an odd problem while configuring BGP. If tcl is still
"running" some of the BGP commands do not work (no idea why?). A
"tclquit" from the command line will take care of this.
-- Scott SmithOn 10/1/05, Chris <clarson52@comcast.net> wrote: > That is the one. A little more complex to memorize but easier to execute I > think. I think it would be very worthwhile to memorize it, bang it out on > one router and copy and execute it onto all the rest. > > Very nice. > > > -------------------------------------------------- > > Christopher Larson CCIE#12380, PMP > Superior Technology Networks Corp > www.supertechnetworks.com - Technology Consulting Services > www.ciscoracks.com - Cisco Rack Rental (CCIE R&S/Security) > 6 hrs for $20.00 on one of the best racks on the net (October only) > tel: 703 577 3303 fax: 703 286 5018 > > -------------------------------------------------- > > > -----Original Message----- > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of > Victor Cappuccio > Sent: Saturday, October 01, 2005 2:57 PM > To: Victor Cappuccio > Cc: Chris; 'Dennis J. Hartmann'; 'Cisco certification' > Subject: Re: Using and Bringing Stuff to the Lab > > I think I found it.. > http://www.internetworkexpert.com/resources/tclshrsh.htm > Regards > Victor > PS: Thanks for the good wishes > > > Victor Cappuccio wrote: > > > Chris could you please post the link to this TCL Script Thanks > > > > > > Chris wrote: > > > >> Every time I had gone they made us leave everything at a desk by the > >> proctor. No cell phones, pda's or pagers. No pencils or pens. They > >> give you > >> water and soda for free IIRC so you don't need to bring it. > >> Being relaxed is important, and it would be good if you had a good > >> hour or > >> two before time was up to check everything. A strategy is important. > >> I did > >> not understand what that meant until after my first attempt and I had > >> wasted > >> time on a couple things that were only a point or two. > >> If you skip things, when you go back, go for the largest points > >> first. Do > >> not spend time on 1 or 2 points if you have a 4 or 5 pointer laying > >> around > >> that you could get. > >> > >> If you shut something down don't forget to bring it back up. > >> I have heard varying reports on this, but the proctors may reboot before > >> checking. I am not sure if they do or not, but doing this on your own > >> rack > >> might be a good idea. > >> > >> I got in the habit of always setting Router-Id. This makes things > >> easy IMHO > >> and can keep things from changing if they do reboot. > >> > >> One of the Brians over at Internetwork Expert posted a great TCL > >> script that > >> will automate checking that all IP addresses are reachable. I wish I > >> had had > >> that when I went. It can take some time going from router to router > >> checking > >> and cross checking the route tables and pinging interfaces. That TCL > >> script > >> looks very very handy and time saving. I think it would be worthwhile > >> memorizing it myself. > >> > >> HTH. Good luck!! > >> > >> Chris > >> > >> > >> > >> > >> > >> -------------------------------------------------- > >> > >> Christopher Larson CCIE#12380, PMP > >> Superior Technology Networks Corp > >> www.supertechnetworks.com - Technology Consulting Services > >> www.ciscoracks.com - Cisco Rack Rental (CCIE R&S/Security) > >> 6 hrs for $20.00 on one of the best racks on the net (October only) > >> > >> -------------------------------------------------- > >> > >> > >> -----Original Message----- > >> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of > >> Dennis J. Hartmann > >> Sent: Saturday, October 01, 2005 2:24 PM > >> To: 'Victor Cappuccio'; 'Cisco certification' > >> Subject: RE: Using and Bringing Stuff to the Lab > >> > >> I recommend expecting that you can bring food, water, and medicine > >> into the lab, but that's it (maybe a jacket). > >> Cisco provides lots of pencils in all sorts of different colors. > >> You will not have the time to draw any pretty pictures though..... > >> If you drink one gallon of water per day like myself, you might want > >> to curb your water intake to 16 ounces in the morning and 16 ounces > >> in the > >> afternoon so you don't have to take bathroom breaks. If you have to > >> break > >> to go to the bathroom, that takes away from your time. > >> Be careful about drinking too much coffee in the morning. It "may" > >> give you the jitters, and it "may" cause you to use the restroom. > >> Above all..... You need to r-e-l-a-x.... If you're ready, you're > >> ready. If you're not, you're not! > >> > >> > >> -Dennis Hartmann > >> -----Original Message----- > >> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of > >> Victor Cappuccio > >> Sent: Friday, September 30, 2005 9:47 PM > >> To: Cisco certification > >> Subject: Using and Bringing Stuff to the Lab > >> > >> Hello All, > >> > >> Sorry if this questions breaks any policy regarding the ND of the > >> Cisco Lab > >> Exam, but I never been there, and I wish to know if in the Lab we can > >> use > >> Notepad and Calc from Windows, and what type of Telnet Client we are > >> allowed > >> to use at the Lab (I love CRT with those many tabs that helps you > >> compare > >> quick when you are in troubles) > >> > >> Also I wish to know if its Ok if I bring my mechanical pencil and > >> several > >> Colors Pens ? > >> > >> Thanks > >> Victor. > >> > >> _______________________________________________________________________ > >> Subscription information may be found at: > >> http://www.groupstudy.com/list/CCIELab.html > >> > >> _______________________________________________________________________ > >> Subscription information may be found at: > >> http://www.groupstudy.com/list/CCIELab.html > > _______________________________________________________________________ > Subscription information may be found at: > http://www.groupstudy.com/list/CCIELab.html > > _______________________________________________________________________ > Subscription information may be found at: > http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Sun Nov 06 2005 - 22:00:49 GMT-3