From: Mark Lasarko (mlasarko@co.ba.md.us)
Date: Mon Aug 30 2004 - 12:20:44 GMT-3
Greetings GS,
I am new to the concepts of TCL and RCMD.
Like most I am learning this because it's fun and interesting...
(and ok, I've been told it *might* help in the lab)
Here's the deal:
I have two 2621's (1.1.1.1, 2.2.2.2)
and a 3725 (3.3.3.3)
When I run the script from the 3725 all is well:
3725(tcl)#foreach router {
+>1.1.1.1
+>2.2.2.2
+>3.3.3.3
+>} {
+>rsh $router show run | include \^ ip address \[0-9]
+>}
ip address 1.1.1.1 255.255.255.0
ip address 11.11.11.11 255.255.255.0
ip address 111.111.111.111 255.255.255.0
ip address 172.16.1.1 255.255.255.0
ip address 192.168.1.1 255.255.255.0
ip address 2.2.2.2 255.255.255.0
ip address 22.22.22.22 255.255.255.0
ip address 122.122.122.122 255.255.255.0
ip address 172.16.1.2 255.255.255.0
ip address 192.168.1.2 255.255.255.0
ip address 3.3.3.3 255.255.255.0
ip address 33.33.33.33 255.255.255.0
ip address 133.133.133.133 255.255.255.0
ip address 172.16.1.3 255.255.255.0
ip address 192.168.1.3 255.255.255.0
ip address 10.10.10.3 255.255.255.0
...No problem, everybody responds, life is good.
However, when I run the TCL script from either
2600 here's what I get:
2621B(tcl)#foreach router {
+>1.1.1.1
+>2.2.2.2
+>3.3.3.3
+>} {
+>rsh $router show run | include \^ ip address \[0-9]
+>}
ip address 1.1.1.1 255.255.255.0
ip address 11.11.11.11 255.255.255.0
ip address 111.111.111.111 255.255.255.0
ip address 172.16.1.1 255.255.255.0
ip address 192.168.1.1 255.255.255.0
ip address 2.2.2.2 255.255.255.0
ip address 22.22.22.22 255.255.255.0
ip address 122.122.122.122 255.255.255.0
ip address 172.16.1.2 255.255.255.0
ip address 192.168.1.2 255.255.255.0
%rcp: Protocol error, End of data transfer
...The script bombs out when it hits the 3725?
I am used to seeing this when I rsh to devices
whose code does not support this feature, as is
the case with my yet_to_be_upgraded 2511's,
though they do accept the RCMD commands.
I guess part of my confusion is that the 3725 is
actually running newer code C3725-JS-M, V12.3(6a)
as I have C2600-JK8O3S-M, V12.2(23) on the 2621's
I have gone through my configs,
Confirmed the source-int and remote-host repeatedly,
Even reloaded the routers between my "reconfiguration tests"...
...And I did peek back through the GS archives to no avail :)
I have three questions:
First, Has anybody else seen this? In this context, please.
(Not just the generic "%rcp: Protocol error, End of data transfer")
Second, Can anyone explain this aside from being a "bug"?
Third, and perhaps more applicable to lab environments;
Is there a recommended strategy for running these scripts?
Meaning, would it be a good general rule to always run
the scripts from the newer device (3700 vs. 2600 ?[75..])
Or is this a case where you (always?) want to TCLSH from the latest
IOS?
...Taking any/all replies with a grain of salt as I would hope
IOS versions and hardware would work the same regardless
of which host runs the script and knowing that I do not expect
it to be so nor do I anticipate any help from the proctor
should I get strange results when it counts the most.
Thanx!
~M
This archive was generated by hypermail 2.1.4 : Fri Sep 03 2004 - 07:02:50 GMT-3