tftp - what am I doing wrong here?

  • 0
  • 1
  • Question
  • Updated 2 years ago
  • Answered
  • (Edited)

(Software Update Required) X450G2-48t-10G4.16 # upload configuration X.X.X.X primary.cfg vr "VR-Default" 


Uploading primary.cfg to 10.218.50.20 ... failed!


Error: (1) File not found


(Software Update Required) X450G2-48t-10G4.17 # ls

-rw-r--r--    1 root     root       297552 Apr 12 17:03 primary.cfg


Photo of Tom Taylor

Tom Taylor

  • 804 Points 500 badge 2x thumb

Posted 2 years ago

  • 0
  • 1
Photo of Bill Stritzinger

Bill Stritzinger, Alum

  • 6,036 Points 5k badge 2x thumb
Tom, 

The "upload config" command by default uploads your current running configuration to a .xsf (or text file) on the tftp server that you define.  In the command the name you supply should be something like "primary" without an extension, it will copy and save it on the tftp as "primary.xsf" - If you want to copy the raw file you can use "tftp put" command. Let me know if you have any other problems or questions!

Bill
Photo of Tom Taylor

Tom Taylor

  • 804 Points 500 badge 2x thumb
I seem to have tried every iteration under the sun but still not having any joy. 

X450G2-48t-10G4.1 # upload configuration X.X.X.X primary vr "VR-Default" 

Uploading primary to 10.218.50.20 ... failed!

Error: (1) File not found
Photo of Tom Taylor

Tom Taylor

  • 804 Points 500 badge 2x thumb
PEBCAK error here, it's my TFTP server :( Thank you anyway.
Photo of Bill Stritzinger

Bill Stritzinger, Alum

  • 6,036 Points 5k badge 2x thumb
Just tried it... next thing was the tftp server... 

BIllHome-X460-G2.1 # upload config 192.168.100.29 primary vr "VR-Default"
Uploading primary to 192.168.100.29 ... done!
BIllHome-X460-G2.2 #

Good luck!
Photo of Hicks, Joe

Hicks, Joe, Employee

  • 190 Points 100 badge 2x thumb
the message seems to say you are getting to the tftp server and that your IP's might be right but that the tftp server doesn't know where the file is.  check the directory of where the .xos file is as opposed to the directory where the tftp server is pointed to
Photo of André Herkenrath

André Herkenrath, Employee

  • 1,962 Points 1k badge 2x thumb
use tftp put - as it uploads your config as XML File - This is what you need, when you want to  restore the config later.
Photo of Erik Auerswald

Erik Auerswald, Embassador

  • 12,886 Points 10k badge 2x thumb
Traditional UNIX TFTP servers require that the file to upload is already existing and writeable on the TFTP server. The existing file will be overwritten by the upload.Typically, the UNIX utility "touch" is used to create an empty file. The empty file's permissions are then set with "chmod".

This obscure mechanism is still implemented in many TFTP servers on Linux systems, but not widely known any more.

The error message "Error: (1) File not found" is typical for this kind of problem.