Automatic config backup / L2Edge license

  • 0
  • 1
  • Question
  • Updated 4 years ago
  • Answered
Hello, colleagues!

Is there some ideas how can I automatically backup configurations from L2 switches with L2 Edge license.
UPM work from Edge license.

Thank you!
Photo of Alexandr P

Alexandr P, Embassador

  • 12,768 Points 10k badge 2x thumb

Posted 4 years ago

  • 0
  • 1
Photo of PARTHIBAN CHINNAYA

PARTHIBAN CHINNAYA, Alum

  • 4,382 Points 4k badge 2x thumb
yes this should be possible.
Also from 15.6 exos supports python scripts.
Please refer page 377 in 15.6 concepts guide.
Photo of Frank

Frank

  • 3,836 Points 3k badge 2x thumb
We're using 'rancid' (http://www.shrubbery.net/rancid/) to backup the configs and track changes of all our switches. Rancid is basically an automated ssh/telnet connect tool that grabs the config and stores them via CVS - with a web-based front-end to look at the configs or changes.
I had to make minor modifications to the "..login" and "..rancid" scripts to make them work properly with EXOS
Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb
Frank,

can you share here the changes you made to scripts in case others are interested in exploring the tool?

Thanks!
Photo of Frank

Frank

  • 3,836 Points 3k badge 2x thumb
Disclaimer/CMA time: I know it's neither elegant nor pretty, but I modified the ?login and ?rancid scripts so they work for what I need them to do. I also added a line to "rancid-fe" to support the vendor "extreme" tag (and call the proper scripts)
They're all in the attached .tgz file.

It's quite possible that there is better/proper support built in to rancid or available through the forums.

And I don't know how to attach a TGZ file - I'll try to email it to you.
(Edited)
Photo of Roberto F.

Roberto F.

  • 690 Points 500 badge 2x thumb
Hi Frank I'm intrested too,
I have tryed with rancid but without satisfaction woth exos switches.
Thanks
Roberto
Photo of Alexandr P

Alexandr P, Embassador

  • 12,768 Points 10k badge 2x thumb
We have X150 and X350 switches that have no 15.6 EXOS.
Is there other possibility?

Is there possibility to done python script from SOAP XML?
Photo of PARTHIBAN CHINNAYA

PARTHIBAN CHINNAYA, Alum

  • 4,382 Points 4k badge 2x thumb
sample perl script
use Net::Telnet;$telnet = new Net::Telnet ( Timeout=>10,Errmode=>'die');
$telnet->open('10.209.72.216');
$telnet->login('admin', '');
print $telnet->cmd('tftp put 1.1.1.1  vr vr-default primary.cfg primaydate.cfg')
Photo of Daniel Flouret

Daniel Flouret, Employee

  • 7,470 Points 5k badge 2x thumb
Here's a pointer to the Rancid scripts that Frank sent to me.
https://www.dropbox.com/s/tsqclfxg8c8p9n1/rancid-extreme-changes.tgz?dl=0

Thanks Frank!
(Edited)