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

IKTNH
New Contributor

Hi, Thank you for all your help. Unfortunately it doesn't show up in the list in our system, so we have opening a GTAC support case for additional assistance. 

Very good. I've reviewed your case and provided the case owner feedback. Seems there may be hidden characters at the start of the text that trigger the load failure.

You should just be able to use this command to achieve a working file. Copy/paste the entire output below as one command via SSH shell.

 

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

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

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

Thanks for answer, but our challenge is how do we copy the file into this location  /usr/.local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles.

Do we need a special FTP/TFTP tools for this, and how do we login into SE. Can we use f.example WIN SCP ?

 

GTM-P2G8KFN