From 2dec94706dfd4e390509533b157d6eb0abdac840 Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 24 Mar 2017 16:00:07 -0500 Subject: [PATCH 1/2] Create README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ca8b95c --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ +# ruckus2dokuwiki +This python script pulls the runs the "sh tech support" command on a Ruckus ZoneDirector and dumps the output into a dokuwiki page for backup and reference + + +### Recommendations ### + +I'd recommend using a subnamespace for your config files in dokuwiki so that your ZoneDirector config is not mixed in with the rest of your dokuwiki pages and your file operations are limited to a single directory. Example: If you have a namespace "IT" in dokuwiki create a subname space named "IT:ruckus" so that your config files are in their own directory. You'd then have a directory named /path-to-dokuwiki/data/pages/it/ruckus/ and in order to reference the config in dokuwiki you'd use [[IT:ruckus:zonedirector | ZoneDirector]] + +### Usage ### + + 1. Clone this script to your server running both dokuwiki + 2. Make sure to modify your paths so that they read from the proper directory and write to the proper directory + 3. Run the script and verify that everything works (I run this script at root) + 4. Create a cron entry to run the script occassionally (Hourly if you make lots of changes, daily if you make infrequent changes) + +### NOTES: ### + +I'm new to python so I'm sure this code could be WAY better but it does what I need it to. I'll optimize it eventually. From 9437eeeb276456c5ebc8c5e1245c6446d6bf6190 Mon Sep 17 00:00:00 2001 From: Tyler Date: Fri, 24 Mar 2017 16:00:41 -0500 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ca8b95c..9e73989 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # ruckus2dokuwiki -This python script pulls the runs the "sh tech support" command on a Ruckus ZoneDirector and dumps the output into a dokuwiki page for backup and reference +This python script runs the "sh tech support" command on a Ruckus ZoneDirector and dumps the output into a dokuwiki page for backup and reference ### Recommendations ###