2

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://10.18.253.1/running-config ./
Scott Pack
  • 14,907
  • 10
  • 53
  • 83
Ueli
  • 191
  • 4
  • 11

3 Answers3

5

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.

tylerl
  • 15,055
  • 7
  • 51
  • 72
2

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.

natxo asenjo
  • 5,739
  • 2
  • 26
  • 27
1

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.

user9517
  • 115,471
  • 20
  • 215
  • 297
  • 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