cancel
Showing results for 
Search instead for 
Did you mean: 

vSZ - command "set scg ip" not allowed in AP script

mrwolf
New Contributor II
Hi all,
we need to change IP address of our vSZ-H, which is hosted on our own public cloud infrastructure.

Though we are pretty confident that we did it well in the past, declaring FQDN instead of IP address in "set scg ip" command, we want to make sure that all of our APs are correctly configured before going live with new IP address.

APs are distributed over many customers, thus DHCP 43 is not an option.

We would like to push an AP script command, as suggested in the following KB article: https://support.ruckuswireless.com/articles/000004979

Also, as per this article, "any AP CLI command will be accepted" into the AP script.

However, when we upload the script, we get the following error: "command[set scg ip] is not allowed in AP CLI Script file."

Script is very simple, as following:
#define AP FW version
fw_version=5.1.0.0.595 #define Model class model=all # Command set scg ip FQDN
Any clue on how to upgrade scg ip remotely (with no easy SSH access)?
10 REPLIES 10

Hi Brian,
unfortunately the remote "set scg ip" option won't work in my scenario.
AP gets the new vsz address, but always shows "SSH tunnel connected to ..." the old address. 

I have tested with a local AP and the only way to force it joining the "new" vsz ip is to provide a scg init command, and after that provide the set scg ip command. 
Unfortunately I see no way to do that remotely, as after "scg init" command the SSH tunnel gets lost, and I can't reach AP anymore through remote ap-cli to provide next command.

Am I missing something?

Bummer.  You could try a few different commands to see the end result.  I'll try a few routes as time permits myself as we may run into your pickle at some point down the road ourselves.

set scg reset says that it changes the state to unmanaged.  Might can try that after setting the new IP/FQDN
set scg resetfull says "similar to init but AP doesn't go for reboot" 

Not sure if any would do what you're trying to do, but I use set scg reset more than I've used set scg init in the past when I wanted to restart an APs SSH tunnel process.




I probably tried all possible combination to no avail.
I managed to SSH to one AP and what I found out looks somewhat strange:
set scg disable
set scg ip del
set scg reset
At this point, SSH tunnel went down.
set scg resetfull
set scg ip new.vsz.fqdn
set scg enable
At this point, AP immediately brings up SSH tunnel WITH OLD IP ADDRESS, despite there's no trace left of it on the get scg config output. 😞
It probably goes away after reboot, but I didn't want to give any service outage so I haven't tried that.

So the trick was to block SSH and HTTPS access to old controller IP address before entering previous commands. This way it looks good, joining new controller address.


I will look into this further, since in a few days I have to perform vSZ final migration to the new IP address, and don't want to make more mistakes.

you need to add also 

remote ap-cli "set scg ip IP/FQDN" ; reboot

Toomas 3kgroup

mrwolf
New Contributor II
Thank you guys for your hints. Since we're talking about only 10 to 20 APs with scg configured as IP address instead of FQDN, I think we'll proceed manually with remote-ap-cli (if it works).

To avoid having the same problem in the future, we would like to put FQDN also in ICX switches configurarion. However, it seems to accept IP addresses only. Do you know if this is going to change on future fw releases?