Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On our Cisco-Routers we enabled RCP. Now we want copy all the running-config with our Ubuntu Server but I can't find any suitable command.

I tried copying with rsync and cp but that did not work.

Commands I tried:

cp (IP):running-config
rsync (IP):running-config ./
rsync rcp:// ./
share|improve this question
up vote 5 down vote accepted

RCP is not the same as scp or cp or rsync. It's rcp. The command that you would use, if it were installed, is rcp.

rcp is packaged and distributed with rsh, and often with kerberos.

share|improve this answer
I can't find any package, where can I get it? – Ueli Oct 4 '10 at 9:59
Did you check to see what happens when you issue the "sudo apt-get install rcp" command? – Bart Silverstrim Oct 4 '10 at 10:15
@Xarem add'l information added – tylerl Oct 4 '10 at 10:16
Thank you, it's in the rsh-package (aptitude install rsh)! – Ueli Oct 4 '10 at 11:13

Others have already explained what rcp for unix is.

If you want to automatically save your routers/switches configs, take a look at rancid. It works a treat. It keeps a revision history of all the configs. It works great in debian, so I guess it will with ubuntu too.

share|improve this answer

RCP is is part of the unix rshell suite of programs and is accessed through the rcp command. It can be used for copying files and directories from one system to another. You can find it's manpage here and some examples here.

Rsync can also be used for copying files and directories from one system to another. It has built in protocols that can be used to keep directories on different systems in sync with each other whilst keeping the amount of network traffic to a minimum. The rsync manpage is here and there are examples of it's use here.

share|improve this answer
rsh/rcp is also ancient, apart from cases as described where appliance hardware does not support anything else you should use ssh/scp. – rackandboneman Jun 12 '12 at 14:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.