cancel
Showing results for 
Search instead for 
Did you mean: 

Download Script via TFTP on Extreme Switches does not work

Download Script via TFTP on Extreme Switches does not work

André_Herkenrat
Extreme Employee
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 ?
2 REPLIES 2

Schmotter__Ryan
Extreme Employee

Just one addition to this script:

I believe that the switch will use the Management interface and VR as its source for the TFTP push by default.

If you do not have the management port connected, you can modify the script above to use the VR-Default interface (note change)

You may also need to change the download scripts as well

-- 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% vr "VR-Default"
@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-----

Bob_Maheu
New Contributor
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-----
GTM-P2G8KFN