Is there a way to reboot ALL R710's at once?

  • 2
  • Question
  • Updated 3 months ago
  • Answered
We have approximately 150 R710's deployed. The complex I work at has some power related issues. When this happens AP's come back up and can be communicated with via the webconsole but clients cannot get out to the internet. Typically I just reboot the AP that I see the client connected to and off we go.

What I would like to be able to do, instead of spending most of the day randomly rebooting AP's is just reset all of them at once when I see that we've had a power outage or interruption without having to click 150 blue arrows.

Is there a plan to have this ability implemented or another method to do this that anyone is aware of?
Photo of Daniel Saldana

Daniel Saldana

  • 7 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 2
Photo of Sean

Sean

  • 349 Posts
  • 94 Reply Likes
You can accomplish this by using the remote ap cli commands.

If you are using a ZD the cli command from within the debug menu is as follows:
rksap_cli -A "reboot now"
Photo of Daniel Saldana

Daniel Saldana

  • 7 Posts
  • 0 Reply Likes
I appear to have misclicked the products. I'm using a Smartzone 100, not a ZoneDIrector, and on the debug menu there doesn't seem to be a rksap_cli command to run. Thanks for the attempt, sorry for the confusion.
Photo of Sean

Sean

  • 349 Posts
  • 94 Reply Likes
providing all the AP's are in the same Zone you can accomplish this using a KSP script:
fw_version=3.1.1.0.474
model=all

reboot now
Just save the above script to a file with a file extension of .ksp

Then go to the Administration >> Diagnostics >> AP CLI Script:


Other than that you can extract all the MAC addresses to a csv file and then add the following line to a column infront of the MAC address and then copy, paste, right click in the CLI of the SZ:
Welcome to the Ruckus SmartCell Gateway 200 Command Line Interface
Version: 3.1.1.0.474

SZ> en

Password: *************

SZ# remote ap-cli

<mac>     AP MAC address
(Edited)
Photo of Max O'Driscoll

Max O'Driscoll, AlphaDog

  • 349 Posts
  • 96 Reply Likes
Photo of Daniel Saldana

Daniel Saldana

  • 7 Posts
  • 0 Reply Likes
I can't see a way to edit the original post but the command that this script is calling doesn't seem to exist on the SmartZone 100 controller's cli that I am using. Sorry for the confusion.
Photo of Dionis

Dionis, AlphaDog

  • 80 Posts
  • 48 Reply Likes

Copy this into a notepad.  Save it as .sh extension.  then, upload it under the administration, diagnostic as shown above by Daniel.


#AP CLI script Example

#define Zone's AP FW version
fw_version=3.2.1.0.642

#define Model class, only all is supported now.
model=all

#CLI commands
reboot now

Then execute it.  You don't have zone, so in your case, it will apply to all APs in the SZ-100.

Hope it helps.

  Oh, and make sure the version of software is correct.
(Edited)
Photo of The Do

The Do

  • 10 Posts
  • 0 Reply Likes
Hello gentlemen. Sorry for digging this again. The script posted above was working fine. However I would like to schedule running it weekly. This feature wasn't supported in below 5.0 smartzone firmware.Then I upgraded my SZ100 to version 5.1. Unfortunately, this version support schedule script but doesn't allow command "reboot". Is there any other command to reboot access point on 5.x ap firmware?
(Edited)
Photo of Syamantak Omer

Syamantak Omer, Official Rep

  • 293 Posts
  • 110 Reply Likes
Hi There,

This is as per current system design. on 5.1 and above version, certain commands are not available to run from script.

There is no other way to reboot APs in bulk.

Regards,
Syamantak Omer
Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
You can still do the command. It will work. Just upload it, schedule it out, and it will do it's thing.
Photo of Syamantak Omer

Syamantak Omer, Official Rep

  • 293 Posts
  • 110 Reply Likes
Hi,

I am not sure which version you are referring but command will not work.

Below are the command which are Blacklisted in 5.x version and above.


Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
They WILL work, I have tested it myself. If you upload a script with the reboot command in it, the system will prompt you with a checkbox in order for you to continue. Basically you are agreeing that while it's a blacklisted command, you still want to proceed. Test it yourself. 
Photo of Syamantak Omer

Syamantak Omer, Official Rep

  • 293 Posts
  • 110 Reply Likes
Could you specify on which version you have tested it.

Regards,
Syamantak Omer
Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
I've tested it on 5.1 and currently being used DAILY on 5.2.
Photo of Syamantak Omer

Syamantak Omer, Official Rep

  • 293 Posts
  • 110 Reply Likes
Thanks for the details, I will test in lab setup.

Regards,
Syamantak Omer
Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
Not sure how much labbing you really need to do, when the product itself tells you it will do it.
(Edited)
Photo of The Do

The Do

  • 10 Posts
  • 0 Reply Likes
Hi there,

Thank you for your suggestion. However, I don't know why in my web ui, I don't see the check box. I can't even upload my script to SZ.
It's just blank like this. I'm running version 5.1.0.0.496. Can  you advice? Thank you.

(Edited)
Photo of Syamantak Omer

Syamantak Omer, Official Rep

  • 293 Posts
  • 110 Reply Likes
Hi,

It seems you did not uploaded any scripts yet.

1- Please upload the script with reboot command
2- Select the uploaded script
3- Click on "Execute" and there you will get the "Checkbox".

If you try to schedule a reboot script then you will not get the checkbox but it will let you schedule it. I haven't observed yet if scheduling a reboot script works but will test and update.


Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
It does work to schedule it. You don't get the checkbox but it does work, we use it every morning to reboot our APs until the patch comes out.
Photo of The Do

The Do

  • 10 Posts
  • 0 Reply Likes
Thanks for your all response. Could you tell me which version you are using? Because in my case, when I try uploading a script contain reboot command, SZ prevented me immediately. A pop up comes up and say that I cannot upload that script. 
Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
5.2.0.0.699. Create a new txt file, only put the word reboot in it, no more commands. Will that upload?
Photo of The Do

The Do

  • 10 Posts
  • 0 Reply Likes
I'm using 5.1.0.0.496, so that could be the reason I cannot upload my script. 
Photo of EightOhTwoEleven

EightOhTwoEleven

  • 164 Posts
  • 38 Reply Likes
It must be, thought I could do it in that version, but I believe it works in 5.1.2