rcp and rsh on IOS XR

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2015 12:31 AM
Hello everyone!
How to configure rcp and rsh on IOS XR? Regular IOS commands (ip rcmd ... ) is not present.
Sometimes i need to configure routers by rsh and copy running-configs via rcp. I do this successfully with Catalyst 6500, but not with ASR.
/usr/bin/rsh -l <username> <ASR IP address> sh ver
<ASR IP address>: Connection refused
/usr/bin/rsh -l <username> <Cat6500 IP address> sh ver
Cisco IOS Software, s72033_rp Software (s72033_rp-ADVIPSERVICESK9-M), Version 15.1(1)SY5, RELEASE SOFTWARE (fc3)
..............
Username and password 100% correct
When configure line i does't see "transport input rlogin" like in regular IOS:
RP/0/RSP0/CPU0:SR36-21.ekb(config-line)#transport input ?
all All protocols
none No protocols
ssh Unix ssh protocol
telnet TCP/IP Telnet protocol
Does IOS XR support rsh and rcp?
- Labels:
-
XR OS and Platforms

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2015 06:38 AM
Hi D,
you can, never used it to be honest and I probably would recommend against using it.
these have been classfied as "dangerous" or unsecure methods and the better options are ssh and scp or sftp.
But any case find some more info here:
http://www.cisco.com/c/en/us/td/docs/routers/asr9000/software/asr9k_r4-3/addr_serv/configuration/guide/b_ipaddr_cg43xa9k/b_ipaddr_cg42a9k_chapter_0101.html#con_1067100
RP/0/RP0/CPU0:Boca#copy rcp:/file disk0:/
Sat Jun 27 07:23:41.603 PST
Address or name of remote host []?
cheers
xander
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2015 01:04 AM
Thanks for answer!
Using cisco ASR cli i can copy files via rcp from remote server to cisco, but i need to copy files via rcp from cisco ASR to remote server.
Looks like IOS XR doesn't support it...

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2015 05:18 AM
Ah sorry, that is correct dmitry, it can be the client, but not the server...
If RCP is invoked from from the a9k/xr as a client then no problem (both copy from rcp to disk or from disk to rcp destination can be done).
But pushing it from a server and invoked there towards the a9k can't be done...
regards!
xander
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2015 10:56 PM
Alexander, thank you for quick reply!
