Re: RSH and RCMD

From: John T M (john_t_mathai@hotmail.com)
Date: Wed Feb 02 2005 - 21:38:53 GMT-3


No it doesn't work. Here is the config and debug

R1 -- Config

ip rcmd rsh-enable
ip rcmd remote-host R1 172.16.101.1 R1 enable
ip rcmd source-interface Loopback0

R1 -- Debug

R1#rsh 172.16.105.1 sh ip int brie
%rcp: Protocol error, End of data transfer

R1#
*Apr 11 18:48:10.735: RCMD: [999 -> 172.16.105.1:514] send \0
*Apr 11 18:48:10.735: RCMD: [999 -> 172.16.105.1:514] send R1\0
*Apr 11 18:48:10.735: RCMD: [999 -> 172.16.105.1:514] send R1\0
*Apr 11 18:48:10.735: RCMD: [999 -> 172.16.105.1:514] send sh ip int brie\0

R2 config

ip rcmd rsh-enable
ip rcmd remote-host R1 172.16.101.1 R1 enable
!
ip host R1 172.16.101.1
!

R2 -- debug

R2
*Mar 5 13:52:28.816: %RCMD-4-RCMDDNSFAIL: DNS hostname/ip address mismatch.
17
2.16.101.1 unknown to DNS
*Mar 5 13:52:28.816: RCMD: [514 <- 172.16.101.1:971] recv

Does it work for with you with the above config ?

Regds/John
----- Original Message -----
From: "Dave Mumford" <Dave.Mumford@telindus.co.uk>
To: "John T M" <john_t_mathai@hotmail.com>; <ccielab@groupstudy.com>
Sent: Wednesday, February 02, 2005 10:10 PM
Subject: RE: RSH and RCMD

Or alternatively John, leave domain-lookup on and put in ip host R1
172.16.101.1

Cheers, Dave.

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com]On Behalf Of
John T M
Sent: 02 February 2005 16:17
To: ccielab@groupstudy.com
Subject: RSH and RCMD

I am trying the rsh for using it in TCL ping test. Somehow it is not
working. Here is what I am trying wit the two routers initially, the
loopbacks are reachable from either routers

R1(3640 with 12.3 ) ------> R2 ( 2621 with 12.3 )

R1 config has
interface lo 0
ip address 172.16.101.1 255.255.255.255
!
ip rcmd rsh-enable
ip rcmd source-interface loopback 0

R2 has
interface lo 0
ip address 172.16.105.1 255.255.255.255
!
ip rcmd rsh-enable
ip rcmd remote-host R1 172.16.101.1 R1 enable
!

When I try from R1 with command
rsh 172.16.105.1 show ip int brief

I get error %rcp protocol error.

Any clue on whats going wrong ?

Regds/John



This archive was generated by hypermail 2.1.4 : Thu Mar 03 2005 - 08:51:16 GMT-3