Oxidized config backup

User avatar
gr0mit
Member
 
Posts: 10
Joined: Sun Jul 19, 2015 12:58 pm
Location: Hampshire, United Kingdom
Has thanked: 1 time
Been thanked: 7 times

Oxidized config backup

Sat Mar 19, 2016 5:28 pm

Hi Folks
Is anyone using Oxidized to back up their configs? I'm using it for my Mikrotik and Cisco configs but I'm not sure where to start with the Netonix switches. Has anyone done it? If so, is there a Netonix config for Oxidized?

Thanks in advance

Best regards

Tim Robinson

User avatar
sirhc
Employee
Employee
 
Posts: 7415
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1608 times
Been thanked: 1325 times

Re: Oxidized config backup

Sat Mar 19, 2016 5:32 pm

There is an auto TFTP backup that saves the config to a TFTP server anytime a change is applied.

You configure it on the Device/Configuration Tab
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

User avatar
gr0mit
Member
 
Posts: 10
Joined: Sun Jul 19, 2015 12:58 pm
Location: Hampshire, United Kingdom
Has thanked: 1 time
Been thanked: 7 times

Re: Oxidized config backup

Sat Mar 19, 2016 5:35 pm

Hi
Thanks for the quick reply! Oxidized seems to export the cisco and routeros configs by ssh'ing into it and exporting. It exports into a git repository so you have a history of changes...

https://github.com/ytti/oxidized

is the code. Is there a Netonix plugin for oxidized?

User avatar
gr0mit
Member
 
Posts: 10
Joined: Sun Jul 19, 2015 12:58 pm
Location: Hampshire, United Kingdom
Has thanked: 1 time
Been thanked: 7 times

Re: Oxidized config backup

Sat Mar 19, 2016 5:43 pm

OK - here's the scripts for the different routers:

https://github.com/ytti/oxidized/tree/m ... ized/model

It doesn't seem too hard, but I'm not a developer so anything I write would have a large warning label attached! Any experts here who want to have a crack at this?!

User avatar
taytrho
Member
 
Posts: 14
Joined: Fri Jul 17, 2015 3:40 pm
Location: PROVO, UT
Has thanked: 4 times
Been thanked: 3 times

Re: Oxidized config backup

Mon Mar 21, 2016 2:50 pm

taking a brief look at the code, it doesn't seem too difficult. The command to view the configuration in the Netonix is "show config" but I'm unsure if oxidize needs more logic to essentially hit the space bar to keep showing the entire config. I'll keep poking around a little.

User avatar
gr0mit
Member
 
Posts: 10
Joined: Sun Jul 19, 2015 12:58 pm
Location: Hampshire, United Kingdom
Has thanked: 1 time
Been thanked: 7 times

Re: Oxidized config backup

Tue Mar 22, 2016 6:54 am

Hi thanks for looking at this!

The other issue I've spotted is that my Oxidized system has a sperate user/pass just for backups. Is there a way to add in more users to the switch with different user/pass combinations?

User avatar
sirhc
Employee
Employee
 
Posts: 7415
Joined: Tue Apr 08, 2014 3:48 pm
Location: Lancaster, PA
Has thanked: 1608 times
Been thanked: 1325 times

Re: Oxidized config backup

Tue Mar 22, 2016 10:16 am

gr0mit wrote:Hi thanks for looking at this!

The other issue I've spotted is that my Oxidized system has a sperate user/pass just for backups. Is there a way to add in more users to the switch with different user/pass combinations?


Only via Radius Authentification
Support is handled on the Forums not in Emails and PMs.
Before you ask a question use the Search function to see it has been answered before.
To do an Advanced Search click the magnifying glass in the Search Box.
To upload pictures click the Upload attachment link below the BLUE SUBMIT BUTTON.

User avatar
gr0mit
Member
 
Posts: 10
Joined: Sun Jul 19, 2015 12:58 pm
Location: Hampshire, United Kingdom
Has thanked: 1 time
Been thanked: 7 times

Re: Oxidized config backup

Tue Mar 22, 2016 1:14 pm

Hi Sirhc
I've tried Radius - it auths fine with web access but not with ssh access. Have I missed something?

Also, is there a command to show running config without the page breaks?

Thanks

User avatar
Eric Stern
Employee
Employee
 
Posts: 532
Joined: Wed Apr 09, 2014 9:41 pm
Location: Toronto, Ontario
Has thanked: 0 time
Been thanked: 130 times

Re: Oxidized config backup

Wed Mar 23, 2016 3:51 pm

gr0mit wrote:Hi Sirhc
I've tried Radius - it auths fine with web access but not with ssh access. Have I missed something?


Thats a bug. It will be fixed in 1.4.0.

gr0mit wrote:Also, is there a command to show running config without the page breaks?

Thanks


Not from within the CLI, but you can drop to the command line
cmdline
cat config.json
exit

The "exit" gets you back to the CLI.

User avatar
gr0mit
Member
 
Posts: 10
Joined: Sun Jul 19, 2015 12:58 pm
Location: Hampshire, United Kingdom
Has thanked: 1 time
Been thanked: 7 times

Re: Oxidized config backup

Thu Mar 24, 2016 12:35 pm

Update: I've been talking to the Oxidized developers - they've added Netonix support in already. I gave him SSH access to a switch and he;s done it already!

It looks like the code was only a few lines. So all good.

Kudos to Saku Yeti who responded so quickly.

Cheers
Tim

Next
Return to General Discussion

Who is online

Users browsing this forum: No registered users and 18 guests