cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2504
Views
0
Helpful
5
Replies

router remote command

ylee-mlx
Level 1
Level 1

I need aid for the following task:

From a SUN station, I need modify the configuration, of the serial port of Cisco 1720.

Currently I type the following commands:

1- telnet router1

1.1- I type the telnet password

2- enable

2.1- I type the password of enable

3- config terminal

4- interface serial 0/2

5- I execute the command

IMPORTANT: It would like to do this activity remotely, using a script or "rsh" from my SUN server, giving only one command.

I already configured at router1:

1- username remote password (pass)

2- ip rcmd source-interface Fastethernet 0/0

3- ip rcmd remote-host remote (ip-address) remote enable 15

4- ip rcmd rsh-enable

1 Accepted Solution

Accepted Solutions

For the messages "Illegal IP keyword - rcmd ", I thinks than your rom software is too old for the IOS 11.0(22a)

For rsh/rcp requisition, here is the configuration which I use

no ip rcmd domain-lookup

ip rcmd rcp-enable

ip rcmd rsh-enable

ip rcmd remote-host myhostname-on-my-SUN X.X.X.X myhostname-on-my-SUN enable

ip rcmd source-interface Ethernet0

So you must ping your "rcmd source-interface" since your SUN

View solution in original post

5 Replies 5

pcollard
Level 1
Level 1

You can create a config file on your SUN.

i.e : interface serial 0/2

ip add 1.1.1.1 255.255.255.0

no shut

After you use rcp like this :

rcp config-file router:running-config

Will this only modify in the interface desired without affecting the functioning of the router?

Thanks.

Yes

You don't need to send all the config.

Please, I still need help:

Router configuration: Cisco 2500 - 2 Mb RAm / 4 Mb Flash

version 11.0

service udp-small-servers

service tcp-small-servers

!

hostname Router

!

enable password xxxx

!

username xxx password xxxx

no ip rcmd domain-lookup

ip rcmd rcp-enable

ip rcmd rsh-enable

ip rcmd remote-host root 10.100.0.102 root enable

ip rcmd source-interface Ethernet0

!

interface Ethernet0

ip address A.B.C.D 255.255.255.128

!

interface Serial0

no ip address

shutdown

!

This message shows, when router starts:

System Bootstrap, Version 4.14(9.1), SOFTWARE

Copyright (c) 1986-1994 by cisco Systems

2500 processor with 2048 Kbytes of main memory

Unknown or ambiguous service arg - udp-small-servers

Illegal IP keyword - rcmd

Illegal IP keyword - rcmd

Illegal IP keyword - rcmd

Illegal IP keyword - rcmd

Illegal IP keyword - rcmd

Illegal IP keyword - rcmd

Loading igs-i-l.110-22a.bin at 0x3000040, size = 3627876 bytes [OK]

F3: 3541056+86788+224504 at 0x3000060

Restricted Rights Legend

Use, duplication, or disclosure by the Government is

subject to restrictions as set forth in subparagraph

(c) of the Commercial Computer Software - Restricted

Rights clause at FAR sec. 52.227-19 and subparagraph

(c) (1) (ii) of the Rights in Technical Data and Computer

Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.

170 West Tasman Drive

San Jose, California 95134-1706

Cisco Internetwork Operating System Software

IOS (tm) 3000 Software (IGS-I-L), Version 11.0(22a), RELEASE SOFTWARE (fc1)

Copyright (c) 1986-2001 by cisco Systems, Inc.

Compiled Wed 07-Mar-01 18:02 by pnicosia

Image text-base: 0x0301E814, data-base: 0x00001000

%SYS-3-BADRESID: Clock hardware returned bad residual 0cisco 2500 (68030) processor (revision L) with 2048K/2048K bytes of memory.

Processor board ID 01456790, with hardware revision 00000000

Bridging software.

X.25 software, Version 2.0, NET2, BFE and GOSIP compliant.

1 Ethernet/IEEE 802.3 interface.

2 Serial network interfaces.

32K bytes of non-volatile configuration memory.

4096K bytes of processor board System flash (Read ONLY)

Press RETURN to get started!

I can´t obtain result for rsh/rcp requisition from router.

Could you analyze this problem ?

Best regards.

For the messages "Illegal IP keyword - rcmd ", I thinks than your rom software is too old for the IOS 11.0(22a)

For rsh/rcp requisition, here is the configuration which I use

no ip rcmd domain-lookup

ip rcmd rcp-enable

ip rcmd rsh-enable

ip rcmd remote-host myhostname-on-my-SUN X.X.X.X myhostname-on-my-SUN enable

ip rcmd source-interface Ethernet0

So you must ping your "rcmd source-interface" since your SUN