ā07-05-2023 05:13 AM
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
|
Would be grateful in anyone could explained in details step number 2.
Thanks in adavance. Appreciate any help.
Solved! Go to Solution.
ā07-05-2023 05:39 AM
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
-=-=-=-=-=-=-
ā07-05-2023 05:50 AM
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.
ā07-05-2023 07:01 AM - edited ā07-06-2023 02:06 AM
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 ?
ā07-06-2023 05:34 AM
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.
If you continue to experience issues with this procedure please consider opening a GTAC support case for additional assistance. Thank you.