cancel
Showing results for 
Search instead for 
Did you mean: 

backup a device configuration automatically using Extreme Management Center by FTP

backup a device configuration automatically using Extreme Management Center by FTP

NachoCursos
New Contributor
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.
1 ACCEPTED SOLUTION

Tomasz
Valued Contributor II

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

View solution in original post

10 REPLIES 10

Zdeněk_Pala
Extreme Employee
Right-click on the device and "Rediscover" could help. the Rediscover action is being performed periodically...
Good luck.
Regards Zdeněk Pala

bar
Contributor
I seem to have succeeded now in getting a device config.  I'm not really sure how!

I tried to save the device "File transfer mode" as each different protocol, each time getting the same message.
Then when I went back to the original protocol (TFTP) it accepted it, and is now saving correctly.

As far as I can see the template file looks the same.  
In the diagnostics I was getting the line:
DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyDefUtil] uses_tftp, ftp, scp, sftp: false : false : false : false
I am now getting:
DEBUG [com.ets.netsight.inv.scheduler.DeviceFamilyDefUtil] uses_tftp, ftp, scp, sftp: true : false : false : false

So not sure how this has changed.

bar
Contributor
Thanks Zdeněk Pala,  the server diagnostics is very useful for this and many other things!

I'm still having problems with the error "the selected script does not match the selected file transfer method" though.
I must be missing something.

I think the script is only using tftp?:

-- 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:

rkK9eFZgSsurFWkVGwoc_Inventory_Error.PNG


I have set the server logs to verbose for Inventory Manager and Inventory Manager Script, the script appears to run, but then it appears to run an unrelated script (Forti analyser script SCP)?:
....
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,

Zdeněk_Pala
Extreme Employee
The protocol defined in the script (e.g. TFTP) must match the protocol defined in the GUI. check screenshots in this thread.
There is a debug available => you will see all that is happening in the server log file.fcedb5e71bfc464185dac4dffa265f80.png
Regards Zdeněk Pala
GTM-P2G8KFN