Automatic download of ZoneDirector config

  • 1
  • Idea
  • Updated 3 years ago
I need to set up automatic backups of our ZoneDirector configs as they're sufficiently complex that I really don't want to ever have to redo them from scratch.  I couldn't find any way to download the binary config files except through the web interface -- am I missing anything obvious?

I've written a small shell script that uses curl to login to the ZD and download the config file.  I've tested with 9.8.2 on a ZD5000, but because the URLs may change, it may well need tweaking for future versions of the software.  I've set up a cron job to run it daily.

https://gist.github.com/dsieborger/79a07aea42fa832cc092
Photo of David Siebörger

David Siebörger

  • 2 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Michael Brado

Michael Brado, Official Rep

  • 2183 Posts
  • 301 Reply Likes
Hi David,

   Beside the WebUI method of saving a ZoneDirector backup, you can also save and send it
to a TFTP server from the ZD CLI debug mode.  I'm not sure, but if you can script this, it could
be executed by cron on a daily/weekly basis.


https://support.ruckuswireless.com/answers/000001907
Photo of David Siebörger

David Siebörger

  • 2 Posts
  • 0 Reply Likes
Hi Michael,

Thanks, I hadn't found that.  If only there was a way to get the TFTP transfer to happen on a scheduled basis, that'd solve my problem quite neatly.  One could script it with expect, like this, I guess:  https://forums.ruckuswireless.com/ruckuswireless/topics/has_anyone_created_an_expect_script_to_backup_the_configuration_file_of_the_zonedirector
Photo of Bill Burns

Bill Burns, AlphaDog

  • 203 Posts
  • 38 Reply Likes
David:

Yes. There's a "--debug" flag in ruckusconf that puts the controller into debug mode.
Then you can add a "--command" option to run anything you'd type into the controller's commandline.

(like whatever command kicks off a TFTP transfer)

note: even though a "regular" ruckusconf config download can't be re-entered into the controller, it could be useful to download it on a scheduled basis so that you could do a "diff" between config versions and use that as a primitive change-control solution.