03-22-2021 10:31 AM
Hello,How can I backup a device configuration automatically using Extreme Management Center via FTP?In other words, NetSight sends the configurations of the switches it has configured via FTP to a server.Thanks a lot.
Solved! Go to Solution.
03-22-2021 03:36 PM
Hi,
I’d consider cron + some simple bash script running underneath XMC for doing this. Optionally, if you manage the XMC appliance itself, you can also schedule a task like that. Or, if you set an alarm reacting on a new log message saying that backups were taken, Ubuntu script could be executed as an alarm action.
Hope that helps,
Tomasz
11-22-2021 08:16 AM
11-18-2021 12:36 PM
Zdeněk Pala has been a great help here. There are quite a few sample scripts including the one that will do the job for me.
A couple of tidbits that might prevent confusion:
11-18-2021 02:53 AM
11-17-2021 02:06 PM
-- Use these scripts to manage Cisco devices
name="Cisco Systems - TFTP"
desc="Cisco Systems 3750 SSH/TFTP Scripts"
protocol=TFTP
--
-----BEGIN SCRIPT "Configuration Upload"-----
enable
%ENABLEPSWD%
copy running-config tftp:
%TFTP_IP%
%RELATIVE_TARGET_FILE_PATH%
@receive 40
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
bytes copied
-----END SUCCESS-----
-----BEGIN SCRIPT "Configuration Download"-----
enable
%ENABLEPSWD%
copy %TFTP_URL% startup-config
startup-config
@receive 60
exit
-----END SCRIPT-----
I am looking at this right now and there are two things:
I will add more information if I get anywhere with this.
====
So it seems that the file location question is answered at the following URL - https://extremeportal.force.com/ExtrArticleDetail?an=000091050&q=What-directory-do-you-put-custom-d...
The actual file path is:
/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/properties/devicefiles
In that directory you find a file "DeviceFamilyDefTemplate.txt" that describes the format of a device file ( in some detail ).
Note that there are no other files in the directory so I don't know where the files are for the existing devices ( like a Cisco router for example ). I copied and pasted the Cisco example from the web interface into a new file "myNewDeviceType" in the directory and replaced Cisco with Dell-EMC inside the file and then I got a new option showing up in the Web interface:
04-26-2021 06:16 AM
Thank you very much, do you mean that I can do it through the XCM itself? how?