04-09-2010 09:05 AM
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.
04-09-2010 09:29 AM
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).
04-09-2010 10:00 AM
thank you- i think that is the only way I didn't try it
04-09-2010 10:02 AM
>> 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.)
04-09-2010 11:45 PM
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.
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