Download Script via TFTP on Extreme Switches does not work

  • 0
  • 1
  • Question
  • Updated 5 years ago
  • Answered
When trying to download an image to an XOS Switch via the Inventory Manager, the script does not issue the VR VR-Default (in this special case) part of the command.
Where is the script located to edit it ?
Photo of André Herkenrath

André Herkenrath, Employee

  • 1,962 Points 1k badge 2x thumb

Posted 5 years ago

  • 0
  • 1
Photo of Bob Maheu

Bob Maheu, Employee

  • 1,040 Points 1k badge 2x thumb
Official Response
Hello,
You will not be able to see this particular script, but you can create another one with the needed commands.  You will need to create a new file that will contain the script information (name should not matter) on the NetSight server in the following location:

/NetSight_Install_Path/NetSight/appdata/InventoryMgr/properties/devicefiles

Note that detailed information on creating these is located in the NetSight docs unde the section  "How to Set Up Third-Party Device Support".  Please note that the script below assumes a Windows server.  If you are on a Linux server then change the line:

separator=WINDOWS_FILE_SEPARATOR
to
separator=UNIX_FILE_SEPARATOR

There is no need to restart the server after you create the file.  Once complete just select the new script.

Here is a sample script that you can modify the include the needed change:

-- Sample Extreme script
name="New Extreme - TFTP"
desc="New Extreme SSH/TFTP Scripts"
separator=WINDOWS_FILE_SEPARATOR
-------BEGIN SCRIPT "Configuration Upload"-----
upload configuration %TFTP_IP% %RELATIVE_TARGET_FILE_PATH%
@receive 20
exit
-----END SCRIPT-----
-----BEGIN SCRIPT "Configuration Download"-----
download configuration %TFTP_IP% %RELATIVE_TARGET_FILE_PATH%
@key n
@receive 20
exit
-----END SCRIPT-----
-----BEGIN SCRIPT "Firmware Download"-----
download image %TFTP_IP% %RELATIVE_TARGET_FILE_PATH% primary
@key y
@receive 60
exit
-----END SCRIPT-----
-----BEGIN SCRIPT "Reset"-----
reboot
y
-----END SCRIPT-----