cancel
Showing results for 
Search instead for 
Did you mean: 

How to copy own script into XIQ-SE - for later using in Archive

How to copy own script into XIQ-SE - for later using in Archive

IKTNH
New Contributor

Hello,

We are relatively new to scripting/archive in SE, and would like to have a little bit help on copy downloded device script from github, to our own Site Engine., for laer use in Archive.   

Need especially help with step number 2 in link below:

https://extremeportal.force.com/ExtrArticleDetail?an=000111053

Procedure

  1. Download the Dell (Force 10) backup script from github here: https://github.com/extremenetworks/ExtremeScripting/blob/master/XMC_XIQ-SE/cfg_backup_scripts/dell-f...
  2. Install script into /usr/.local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles
  3. Right click switch --> Archive --> Inventory Settings
  4. Change to use script for "Configuration Download MIB" to "script"
  5. Set the Script to use "Dell Force 10"
  6. Click Save
  7. Right click the switch --> Archive --> Backup

Would be grateful in anyone could explained in details step number 2.

 Thanks in adavance. Appreciate any help.

1 ACCEPTED SOLUTION

Robert_Haynes
Extreme Employee

You would take the contents of the script as shown on GitHub and place it in a file with an appropriate name in the sub-directory shown in step 2.

i.e. call it "DellArchiveScript.txt" for example. Copy and paste what is below the =-=-=-=- markers below and this should do the trick quick.

-=-=-=-=-=-

echo -n "-- Use these scripts to manage Dell Force 10 devices
name="Dell Force 10 - TFTP"
desc="Dell Force 10 SSH/TFTP Scripts"
--
-----BEGIN SCRIPT "Configuration Upload"-----
copy flash:/startup-config tftp://%TFTP_IP%/%RELATIVE_TARGET_FILE_PATH%
@receive 30
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----

-----END SUCCESS-----
-----BEGIN SCRIPT "Configuration Download"-----
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Download"-----
-----END SUCCESS-----
" > /usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles/DellArchiveScript.txt

-=-=-=-=-=-=-

View solution in original post

7 REPLIES 7

First - there is an error in that article. The ".local" should just be "local" in that path. I'll correctly that momentarily.

You can use the copy/paste method above by SSH'ng to the XMC/XIQ-SE appliance end issuing the command... OR yes you can save the contents of the script using notepad to a file and then use WinSCP / SCP to upload the file to the sub-directory noted.

Thank you. We have now managed to log into our XIQ-SE using WinSCP and navigated into the correct folder. However, when we have copied the new script file into the folder, we the dont see it in the Invertory Setting -> Device Family Definition Finename. What is the reason for this ?

IKTNH_1-1688634365290.png

 

The new script should show immediately in the list you highlighted as long as the 'name' i.e. name="Dell Force 10 - TFTP" in the script is unique.

Robert_Haynes_0-1688646786428.png

 

If you continue to experience issues with this procedure please consider opening a GTAC support case for additional assistance. Thank you.

GTM-P2G8KFN