Page 1 of 2

Oxidized config backup

Posted: Sat Mar 19, 2016 5:28 pm
by gr0mit
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

Re: Oxidized config backup

Posted: Sat Mar 19, 2016 5:32 pm
by sirhc
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

Re: Oxidized config backup

Posted: Sat Mar 19, 2016 5:35 pm
by gr0mit
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?

Re: Oxidized config backup

Posted: Sat Mar 19, 2016 5:43 pm
by gr0mit
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?!

Re: Oxidized config backup

Posted: Mon Mar 21, 2016 2:50 pm
by taytrho
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.

Re: Oxidized config backup

Posted: Tue Mar 22, 2016 6:54 am
by gr0mit
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?

Re: Oxidized config backup

Posted: Tue Mar 22, 2016 10:16 am
by sirhc
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

Re: Oxidized config backup

Posted: Tue Mar 22, 2016 1:14 pm
by gr0mit
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

Re: Oxidized config backup

Posted: Wed Mar 23, 2016 3:51 pm
by Eric Stern
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.

Re: Oxidized config backup

Posted: Thu Mar 24, 2016 12:35 pm
by gr0mit
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