how can I copy snippets of running config to tftp server

Unanswered Question
Apr 9th, 2010
User Badges:

Is there anyway to copy snippets of a running config to a tftp server

?


I'm trying this but no joy


#Show run interface vlan 11 | redirect tftp:192.169.1.1\test.txt
%Error opening tftp:///192.12.102.31\test.txt (Invalid IP address or hostname)
% Incomplete command before pipe.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Joe Clarke Fri, 04/09/2010 - 09:29
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

This syntax is wrong.  Try:


show run int vlan11 | redirect tftp://192.168.1.1/test.txt


Note: Most TFTP implementations will require the test.txt file to exist first on the TFTP server (i.e. a zero-byte file).

JSCHWENG_2 Fri, 04/09/2010 - 10:00
User Badges:

thank you- i think that is the only way I didn't try it

yjdabear Fri, 04/09/2010 - 10:02
User Badges:
  • Gold, 750 points or more

>> Note: Most TFTP implementations will require the test.txt file to exist first on the TFTP server (i.e. a zero-byte file).


Joe,


Going off that tangent, I was scratching my head over the practicality of "path tftp://10.10.10.10/cisco/$h-$t" seen at

https://supportforums.cisco.com/docs/DOC-5759
"archive
   path tftp://10.10.10.10/cisco/$h-$t
   write memory"


Does that assume the use of a TFTP server that doesn't require existing files, or does "archive" perform some background magic on the tftp server first?

Are there TFTP servers that actually meet that requirement? (I see tftpd-hpa doesn't require world-writable files, but I haven't tried it without a pre-exiting file at all.)

Joe Clarke Fri, 04/09/2010 - 23:45
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

Yes, that document assumes one could create any file on a TFTP server without the file having to exist first.  I believe there are some Windows TFTP servers do allow one to turn off this security facility.  However, I would probably use SCP or FTP for config archive.

Actions

This Discussion