ā05-20-2015 02:21 AM - edited ā03-08-2019 12:05 AM
Hi everyone,
We have a lot of access points, which cannot backup configs to TFTP, if I specify $t environment variable in filename string.
These settings result in failure:
archive path tftp://172.16.0.10/$h$t write-memory N0010# wr Building configuration... [OK] %Error opening tftp://172.16.0.10/N0010-Mar--2-06:19:53.187-1 (Undefined error)
If I don't, it works:
archive path tftp://172.16.0.10/$h write-memory N0010# wr Building configuration... [OK]
What is wrong with the $t variable?
On some devices, it works.
Solved! Go to Solution.
ā05-20-2015 04:26 PM
Hi,
I do not believe you can actually modify the string that will be used in place of $t. If you are running your TFTP server on Windows and NTFS then the colon character can truly be a source of problems - using it would actually cause the server to create a so-called NTFS Alternate Data Stream - see the link for details. Theoretically, if your TFTP server can be configured to mangle file names so that it replaces the colons with a different character, this could solve your problem. Linux-based TFTP servers usually do not have problems with colons in file names. Running Linux (even in a virtual machine) with a suitable TFTP server can also be a solution.
Best regards,
Peter
ā05-20-2015 02:44 AM
Try with:
archive
path tftp://172.16.0.10/$h-$t
write-memory
ā05-20-2015 04:26 PM
hi,
Still getting this error.
I'm supposing that the colons in the filename are the problem - tftp server says "illegal character in path, transmission failed"
On other access point, it is ok, the filename is N0011-Sep-11-06-57-28.579-1, whothout colons.
Is there a way to remove colons?
ā05-20-2015 04:26 PM
Hi,
I do not believe you can actually modify the string that will be used in place of $t. If you are running your TFTP server on Windows and NTFS then the colon character can truly be a source of problems - using it would actually cause the server to create a so-called NTFS Alternate Data Stream - see the link for details. Theoretically, if your TFTP server can be configured to mangle file names so that it replaces the colons with a different character, this could solve your problem. Linux-based TFTP servers usually do not have problems with colons in file names. Running Linux (even in a virtual machine) with a suitable TFTP server can also be a solution.
Best regards,
Peter
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