cancel
Showing results for 
Search instead for 
Did you mean: 

Simple Upload Configuration Script

Simple Upload Configuration Script

Rick_Lester
New Contributor

Our new disaster recovery guy wants to be able to backup our switches to save configs independent of Netsight in case something drastic happens where we need to restore switches but don’t have Netsight as a restore option. I was thinking I could just do a simple one line script “upload config” script that he could run again multiple switches at the same time as a task or from CLI Commands. 

 

I had something like this in mind:

upload configuration 1.1.1.1 %hostname%.xsf vr vr-default

 

It would obviously take more than one line, but is there a way to capture the switch hostname (or another easily identifiable piece of info like IP) and save it as a variable to use in this way? If not is there a way to accomplish basically the same thing in a different way? I’ve manually pulled the configs one a time in years gone by, but it was very time consuming to do one at a time with unique file names. 

1 ACCEPTED SOLUTION

Zdeněk_Pala
Extreme Employee

All archives are stored in “/usr/local/Extreme_Networks/NetSight/appdata/InventoryMgr/configs” (assuming the standard installation path).

I would use rsync or scp to sync/upload the content to different location.

In the archive directory there is timestamp directory there are either ZIP or CFG files.

if it is ZIP file then you need to unzip it first before uploading to the switch.

 

Example:

0ddcc000c2f142c9b3585cde6257a36d_94bdbbaf-b5ed-4530-92bb-a8f26b1ec906.png

 

Regards Zdeněk Pala

View solution in original post

5 REPLIES 5

Zdeněk_Pala
Extreme Employee

Why you do not take archive from XMC and send it to your other destination?

Regards Zdeněk Pala
GTM-P2G8KFN