-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can i use this code on Ruckus unleashed(Wifi-AP) for Auto backup of the configuration? #1
Comments
This code is for Ruckus ICX switches, rather than WiFi APs. https://github.com/miguelangel-nubla/ruckus-dpsk-manager has a If you need more flexibility or prefer to script in python rather than using a go executable, then my aioruckus library has a Or if you want to do the entire thing in a shell script then you can refer to the script here & modify it download the file at |
Hi,
Thank you for the reply, i really appreciate it.
Can you give me the exact python script to backup the configuration using
aioruckus <https://github.com/ms264556/aioruckus> library?
That would be very helpful to me.
Thanks & Regards,
Vignesh M V
Website: www.itsvignesh.tech
Ph: +91 7358863153
…On Thu, 14 Dec 2023 at 04:19, Tony ***@***.***> wrote:
Or if you have any other solution to auto-backup the configuration for
Ruckus Unleashed (Wifi-PA), please let me know.
This code is for Ruckus ICX switches, rather than WiFi APs.
https://github.com/miguelangel-nubla/ruckus-dpsk-manager has a backup
command, and is the easiest way to do this.
If you need more flexibility or prefer to script in python rather than
using a go executable, then my aioruckus
<https://github.com/ms264556/aioruckus> library has a .get_backup()
method.
Or if you want to do the entire thing in a shell script then you can refer
to the script here
<https://ms264556.net/ruckus/PfSenseLetsEncryptToRuckus.html> & modify it
download the file at $ZD_BASE_URL/_savebackup.jsp rather than uploading
certificates.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARB26PSS5N6XZ77Q2A6IU33YJIWIJAVCNFSM6AAAAABAOLZNSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJUHAYTONRQGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sure, but please ask any further questions over at aioruckus rather than here. import asyncio
from datetime import datetime
from aioruckus import AjaxSession
async def backup_demo():
"""aioruckus backup demo"""
backup_filename = "/path/to/backups/folder/ruckus_" + datetime.now().strftime("%y%m%d_%H%M") + ".bak"
# example of saving a backup
async with AjaxSession.async_create("<unleased IP address>", "<unleashed username>", "<unleashed password>") as session:
backup = await session.api.get_backup()
with open(backup_filename , "wb") as file:
file.write(backup)
asyncio.run(backup_demo()) |
Hello,
Thank you for your reply. I try to run the code, i got some error. I have
created issue in the aioruckus GitLab page.
Pls check and help me to resolve the issue.
Vignesh Vijayakumar
Mobile: +91 7358863153
Website: www.itsvignesh.tech
…On Sun, Dec 17, 2023, 9:51 AM Tony ***@***.***> wrote:
Sure, but please ask any further questions over at aioruckus
<https://github.com/ms264556/aioruckus> rather than here.
import asynciofrom datetime import datetimefrom aioruckus import AjaxSession
async def backup_demo():
"""aioruckus backup demo"""
backup_filename = "/path/to/backups/folder/ruckus_" + datetime.now().strftime("%y%m%d_%H%M") + ".bak"
# example of saving a backup
async with AjaxSession.async_create("<unleased IP address>", "<unleashed username>", "<unleashed password>") as session:
backup = await session.api.get_backup()
with open(backup_filename , "wb") as file:
file.write(backup)
asyncio.run(backup_demo())
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARB26PROIN46OMPAMU46QKLYJZXLJAVCNFSM6AAAAABAOLZNSCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJZGAZTGOJYG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hello,
We are using Ruckus Unleashed (Wifi-AP), and we are looking for an auto-backup solution.
So Can i use this code on Ruckus unleashed(Wifi-AP) for Auto backup of the configuration?
Or if you have any other solution to auto-backup the configuration for Ruckus Unleashed (Wifi-PA), please let me know.
The text was updated successfully, but these errors were encountered: