10-15-2012 10:13 AM - edited 03-07-2019 09:28 AM
we use freeFTPd for Voip backup, now want to backup all routers & switches confi, does this free program work for them?
if yes, can anyone show me the exact CLI to copy start-config to it? I ran "copy start ftp" --> enter server IP when prompted, got "$error opening ftp://x.x.x.x/file name (undefined error)" . it doesn't prompt me username and password, is that why I can't open the path?
if no, which program should I use here? more details, pls
thx.
Solved! Go to Solution.
10-15-2012 02:10 PM
Whatever user name you used and password you used is that username and password defined on the server for freeFTPd? Is there a home directory setup for that user? Can you send a screen shot of that freeFTPd?
That user should have a home directory, are you trying to put he file into the users home directory or did you create another directory within the home directory and then trying to put the file in there?
Post some screen shots of the freeFTPd software configuration espeically the way user is configured.
10-15-2012 10:22 AM
Instead of using manual backups why don't you use automated program like Rancid or Opennet Admin or Solarwinds' Kiwi Cat Tools I believe offers a free version too. You can also use the Solarwinds' free TFTP server application and do a backup. Would be much easier to use the TFTP server you'll simply run:
"copy startup-config tftp" and just follow the prompts very simple that way
Here is a table that shows the syntax for the "ftp"
http://www.cisco.com/en/US/docs/ios/12_1/configfun/command/reference/frd2002.html#wp1017432
10-15-2012 10:45 AM
well, our server admin doesn't like multiple programs installed on the server, that's why I prefer to use the existing one (unless I got the positive answer that this free program doesn't work for router bacup).but the problem is don't know if freeFTPd is compatible with router config backup or not.
copy start ftp or copy start tftp is simple and straight forth, but it doesn't work.
freeFTPd requires userID and password to access it, but in router CLI, it doesn't prompt me anything like that, that's part I am trying to figure out.
10-15-2012 10:27 AM
Hi,
you can specify password and username in the FTP URL: ftp://username:password@x.x.x.x
or use following commands:
-ip ftp password xxxx
-ip ftp user xxxx
Regards.
Alain
10-15-2012 10:47 AM
googled this one:http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_tech_note09186a008020260d.shtml#ftp
resolved my username and password concerns, but still not working. .
how do I specify the path? for now, after I ran copy start-cofniguration ftp, got prompt for address of remote host, and destination filename. not asking for path, what can I do now?
thx.
10-15-2012 11:38 AM
Hi,
use file prompt quiet and specify path in URL: copy run ftp:// user:pass@ x.x.x.x/directory/filename
Regards.
Alain
Don't forget to rate helpful posts.
10-15-2012 12:10 PM
copy startup-config ftp://username:password@ftp-server-ip/directory-for-backup/filename.txt
Here is a sample screen shot from my backup but I used the default directory:
10-15-2012 01:53 PM
is it something we didn't configure properly on the server side? I ran the exact CLIs, but still "error opeing ftp://x.x.x.x (undefined error)"
router is Cisco 2951
ping from router --> ftp server, successed
the destination folder is NOT the user home directory but the one I created.
just found that people who setup the FTP only allow certain IP addresses accessing the server, added the router to allow list, still not working.
10-15-2012 02:10 PM
Whatever user name you used and password you used is that username and password defined on the server for freeFTPd? Is there a home directory setup for that user? Can you send a screen shot of that freeFTPd?
That user should have a home directory, are you trying to put he file into the users home directory or did you create another directory within the home directory and then trying to put the file in there?
Post some screen shots of the freeFTPd software configuration espeically the way user is configured.
10-15-2012 02:33 PM
u saved me.
got to be default root path, doesn't work with the directory I created. but this doesn't make sense too me, can u pls tell me if we can change it to the specific path I want?
thx.
10-15-2012 02:45 PM
If you can share the screen shots of how the user is created in the application and how the directory is created I can see but like I said if you can't upload it then it is most likely permissions issue or the syntax issue. Can you post the full command you are typing in there as well?
10-15-2012 02:29 PM
- Might be an issue with the permissions on the new directory you created confirm permissions.
10-15-2012 03:42 PM
don't know if I can vote multiple answers as correct answers. I mean almost everyone here contribute to the resolution, appreciate all
what I did:
1. added the router's IP to allow access list on freeFTPd
2. created a new user account allowing it to access both FTP and SFTP on freeFTPd
3. specified the home directory of this new user to the directory I created on D: of the server, but had to change it back to default setting or it doesn’t work
4.for both default home and new created directories, leave all permissions default, admin has full control, users “read&execute”, “list folder contents”, and “read” but special permissions are “create files/ write date” & “create folders/append data”, no difference between 2 directories, don’t understand why it works with default home but not new created one.
10-15-2012 03:46 PM
Life is never easy, just sort of fixed this , but new issues comes, tried to backup the other exact same model Cisco 2951 router, encountered different error, this time is “%Error opening ftp://*****:*****@x.x.x/filename (Protocol error)”, what’s going on?
Have to open a new discussion.
10-17-2012 12:44 PM
Didn't you mentioned that you have to allow the IP address to be able to access the FTP ?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide