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-06-2023 10:45 PM - edited 07-06-2023 10:46 PM
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.
07-07-2023 06:07 AM
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
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:44 AM - edited 07-05-2023 05:45 AM
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 ?