From: thomas.rader@freesurf.ch
Date: Tue May 31 2005 - 06:53:11 GMT-3
Hello,
I don't understand what the "puts" command does and why it should not having it should stop my script from working.
I've been using the following script for a while now, and it seems to work just fine.
tclsh
foreach CCIE {
10.1.1.1
10.2.2.2
10.3.3.3
10.4.4.4
10.5.5.5
10.6.6.6
} {ping $CCIE}
Here is the output of my script:
R1R1#tclsh
R1R1#foreach CCIE {
+>10.1.1.1
+>10.2.2.2
+>10.3.3.3
+>10.4.4.4
+>10.5.5.5
+>10.6.6.6
+>} {ping $CCIE}
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/4/4 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.3.3.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/3/4 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.4.4.4, 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 10.5.5.5, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/61 ms
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.6.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/60/60 ms
R1R1#
Are you saying that without using the "puts" command I might have problems on the lab ? Please help!
Thanks, Thomas
-----Original Message-----
From: Gary Cheung [mailto:garymsue@netvigator.com]
Sent: Friday, May 13, 2005 7:03 PM
To: Dillon Yang; ccielab@groupstudy.com
Subject: RE: Failed again!
Since most people sent mail asked me about the TCLSH, I would like to share it for you all.
In Cisco CCIE blueprint, all the routers in the lab are either Cisco 26xx or 37xx and these types of routers can support TCL language. It is very helpful when you want to test the reachability. Prior to start the script, you need to dig out all the IP addresses that you want to test or listed in the diagram. I suggest you using a notepad and the script will like this.
tclsh
foreach addr {
10.1.1.1
10.1.1.3
10.2.2.2
10.3.3.3
.....
} {puts [exec "ping $addr"]}
- You SHOULD add "puts" before executing the ping commands, otherwise, it wouldn't print out the result to you. Dillion - you may encounter this problem.
After completing the script, you just copy and paste it into the prompt - router#. Then you will get the ping result of each address. You need to check which address is PING fails, and see whether this is a normal case. PLEASE don't forget those SUCCESSFUL PINGs, you need to check whether it performs right, may be FAIL should be the right answer.
Remember to run the script in each router (Catalyst 3550 won't support it) and ensure the meaning of FULL REACHABILITY.
Besides, you need to test it TWICE, one for FR up/ISDN down and one for ISDN up/FR down.
Before run the "ISDN TEST CALL", you should check the "SHOW ISDN STATUS" first and ensure the SPID is valid. Otherwise, you need to REBOOT the router.
Hope this help you.
Regards
Gary Cheung
CCIE#14642, BEng, CEng, MIEE, PMP, PRINCE2,
CISSP, MCSE, SCSA, SCNA
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of Dillon Yang
Sent: Friday, May 13, 2005 4:45 PM
To: Gary Cheung
Subject: Re: Failed again!
Hi, Gary:
Congratulations first!
The TCLSH is a very trouble. The routers CAN NOT SUPPORT the
command "foreach" since I can execute the single "rsh $rt show run" as
the document made by B.Caslow in the NMC www page. The version of the
routers are all 12.1(14) with something "i5qxxx" on c2600.
So I have to do the connectivity test by sampling mentioned by
B.Sinclair, its maybe not so complete. IT IS A VERY PITY!
The second strange thing puzzling me is that the command "ISDN TEST
CALL interface" that mentioned by B.Caslow in the checklist to Jongsoo
DID NOT work on ONE router while the other is OK. Unluckily the few
points ISDN cost me about 40 minutes or more.
After BGP, it passed about 5 hours or more. I did not get all
scores of BGP since the BGP table and connectivity is ok.
TIA
dillon
This archive was generated by hypermail 2.1.4 : Fri Jun 03 2005 - 10:12:03 GMT-3