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-23-2021 07:49 AM
11-23-2021 07:40 AM
11-23-2021 06:29 AM
-- Use these scripts to manage Dell Force 10 devices
name="Dell Force 10 - TFTP"
desc="Dell Force 10 TFTP Scripts"
protocol=TFTP
separator=UNIX_FILE_SEPARATOR
--
-----BEGIN SCRIPT "Configuration Upload"-----
enable
%ENABLEPSWD%
copy startup-config tftp://160.9.50.16/%RELATIVE_TARGET_FILE_PATH%
@key y
@receive 150
exit
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Upload"-----
.*completed successfully
-----END SUCCESS-----
-----BEGIN SCRIPT "Configuration Download"-----
-----END SCRIPT-----
-----BEGIN SUCCESS "Configuration Download"-----
-----END SUCCESS-----
The File transfer method is set to TFTP, but I still get the error:
....
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] ScriptTags
protocol=TFTP
name=Dell Force 10 - TFTP
separator=UNIX_FILE_SEPARATOR
desc=Dell Force 10 TFTP Scripts
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] -------Configuration Upload Script----------
enable
%ENABLEPSWD%
copy startup-config tftp://A.B.C.D/%RELATIVE_TARGET_FILE_PATH%
@key y
@receive 150
exit
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] -------End Script----------
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyDefUtil] uses_tftp, ftp, scp, sftp: false : false : false : false
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] ScriptTags
protocol=TFTP
name=Dell Force 10 - TFTP
separator=UNIX_FILE_SEPARATOR
desc=Dell Force 10 TFTP Scripts
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] -------Configuration Download Script----------
2021-11-23 11:40:49,433 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] -------End Script----------
2021-11-23 11:40:49,434 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyDefUtil] uses_tftp, ftp, scp, sftp: false : false : false : false
2021-11-23 11:40:49,434 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] *** protocol is
2021-11-23 11:40:49,434 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyDefUtil] file loaded DellForce10.txt. Device Family File name is Dell Force 10 - TFTP
2021-11-23 11:40:49,434 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] ScriptTags
name=Forti analyser Script scp
timed_reset_delay_format=HH:mm
separator=UNIX_FILE_SEPARATOR
desc=SSH/SCP Scripts
2021-11-23 11:40:49,434 DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyFileParser] -------Configuration Upload Script----------
execute backup all-s scp %RELATIVE_TARGET_FILE_PATH% A.B.C.D ####set up XMC user for scp?????
@receive 10
end
config vdom
....
I am really struggling to understand what is going on.
thanks,
11-22-2021 04:19 PM