12-12-2007 07:30 PM - edited 03-05-2019 07:58 PM
Hello All,
I am trying to put/get files from TFTP server to cisco switches.
Example setup
PC(TFTP Server)---Switch
I was able to get files from the switch by configuring access list for the required file.
access-list 50 permit any
tftp-server flash:<file> 50
However, I am not able to put/restore the file back from the PC to switch. I am receiving permission denied error.
Questions
Is there any additional configuration required on cisco devices?
Thanks in advance your time and help
Padmanabhan
12-12-2007 08:44 PM
Are you on the switch issuing the copy tftp flash: command? What are you trying to do?
-brad
(please rate the post if this helps!)
12-12-2007 09:38 PM
Hello Brad,
I am not in the switch. I am trying TFTP commands from the PC to the switch.
12-12-2007 10:20 PM
I don't think you can do that. If you are going to transfer files TO the switch via TFTP, you have to do the "copy" command on the switch.
-brad
(please rate the post if this helps!)
12-13-2007 09:39 AM
Thanks for your response.
1.What is the exact mechanism that prevents uploading a file on to the switch flash memory ?
2.Is there any other mechanism ( like FTP,rcp) by which we can transfer files if tftp is blocked for security concerns ?
12-13-2007 10:14 AM
Padmanabhan
Cisco IOS supports multiple protocols to transfer files (ftp, rcp, scp, tftp). The issue is not so much what protocol you are using but is where the transfer is initiated. You can do the file copy when you initiate the copy from the router using any of these protocols. But IOS is not willing to accept a file transfer which it did not initiate.
[edit] after posting my response I read the thread again and I believe that I misunderstood what we were talking about. You had originally configured the switch to function as a TFTP server (tftp-server flash:
HTH
Rick
12-13-2007 10:37 AM
Rick
Thanks for the detailed explanation.
I was to trying to backup/restore config of cisco devices from a single workstation(Without logging into each device).However, with the IOS restrictions in place, is there any other alternative to achieve this requirement?(like any third party utility)
Regards
Padmanabhan
12-13-2007 10:45 AM
I haven't tried myself but give this a look:
12-13-2007 10:50 AM
Padmanabhan
Yes there are alternatives. There are utilities such as CiscoWorks that should be able to initiate config backup and restore. I have read of people who create perl scripts to accomplish tasks like this. The common aspect of these is that they all access the remote switch and actually initiate the transfer from the switch.
HTH
Rick
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: