EXOS TFTP put to Netsight failing due to incorrect forward slash

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

Whenever I submit the command:

tftp put xxx.xxx.xxx.xxx vr "VR-Default" internal-memory
show_tech.log.gz


It fails with the following response:

Uploading show_tech.log.gz to xxx.xxx.xxx.xxx ... failed!

Error: (2) unable open file


The message in Netsight syslog is as follows:


127.0.0.1 open() file=C:\tftpboot/show_tech.log.gz client
session: xxx.xxx.xxx.xxx:57941


So my guess is with Netsight being windows based using a \ (backslash) and EXOS being Linux based and using a / (Forward slash), this is where the problem comes in.


Can't see how to correct this in EXOS as specifying a forward slash gives an error, and I don't know if there is a way to correct within the TFTP server in Netsight.


Have also tried the following:

X460.2 # tftp xxx.xxx.xxx.xxx -v "VR-Default" -p -l internal-memory show_tech.log.gz

Uploading show_tech.log.gz to xxx.xxx.xxx.xxx... failed!
Error: (2) unable open file

...

X460.3 # tftp xxx.xxx.xxx.xxx -v "VR-Default" -p -l internal-memory show_tech.log.gz -r show_tech.log.gz

Uploading show_tech.log.gz to xxx.xxx.xxx.xxx... failed!

Error: (2) unable open file

...

X460.4 # tftp xxx.xxx.xxx.xxx -v "VR-Default" -p -l internal-memory show_tech.log.gz -r \show_tech.log.gz

Error: Illegal filename (\show_tech.log.gz)


ExtremeXOS version 15.3.1.4

Netsight version 6.2.0.199

Photo of Martin Flammia

Martin Flammia

  • 5,744 Points 5k badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Bill Stritzinger

Bill Stritzinger, Alum

  • 6,016 Points 5k badge 2x thumb
Official Response
Martin,

Your hunch was correct.. It is a permission issue, here is the fix:  Give it a shot and let us know!

Edit /NetSight_Install_Path/NetSight/services/nstftpd.cfg   

Add a –c to the line:

 

-c -d "c:\tftpboot"

 

Save and then restart the tftp service.
Photo of Bob Maheu

Bob Maheu, Employee

  • 1,020 Points 1k badge 2x thumb
Official Response
By default the NetSight TFTP server runs in a secure mode in that it will only write files to the server if that file already exists.  Inventory Manager will first create an empty file as part of the archive process before it tells the device to TFTP the config to the server.

Adding the -c option removes this security and allows any user/system to write to the TFTP server rootdir. The security prevents malicious users from filling up the hard drive.