Scripting commands in the CLI
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2017 05:39 PM
I'm looking to create a script to fill each AP's device name and description fields. I want to be able to rename them all with a few clicks, not manually change each AP in the CLI/GUI. However, there doesn't seem to be a way for me to send a string of commands in one go.
Is there a way to feed a bunch of commands to the unit?
Is there a way to feed a bunch of commands to the unit?
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2019 10:54 AM
I use an Excel table to auto fill all of the variables for the following commands and then I drop it right into the ZD CLI (need to be in enable and config modes). This also assumes that you have set your AP Group to IPv4 Only.
ap AA:BB:CC:DD:EE:FF
group name 'GroupABC'
devname 'AP-DEF'
description 'GHI'
location 'JKL'
ip mode static
ip addr 192.168.1.x 255.255.255.0
ip name-server 8.8.8.8
exit
ap AA:BB:CC:DD:EE:FF
group name 'GroupABC'
devname 'AP-DEF'
description 'GHI'
location 'JKL'
ip mode static
ip addr 192.168.1.x 255.255.255.0
ip name-server 8.8.8.8
exit
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 07:36 AM
I know this topic might be old, but I need an answer. I work in a company which sets up many Ruckus Wireless solutions.
It would be very useful for later, and today I have to rename 500 APs...I can't do this by hand
It would be very useful for later, and today I have to rename 500 APs...I can't do this by hand
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2019 09:13 AM
Hi Tangaki,
You can create a script (it is more of a copy paste job) and you can modify number of APs in one go (I will suggest to do 20-30 AP at a time).
Please follow the steps:
1- SSH into the ZD
2- Go to enable mode (enable)
3- Go to config mode (config)
4- Now use below command to enter into specific AP's configuration mode (where xx:xx:xx:xx:xx:xx is AP's MAC address)
ap xx:xx:xx:xx:xx:xx
5- Now modify AP's name
devname AP1
end
6- Change description
description Backyard
end
7- Now repeat the steps 4 to 6 to modify next AP and so on...
Note: Below AP details/configuration can be modified by above procedure.
devname Sets the device name.
bonjour-gateway
bind a bonjour gateway policy
bonjour-fencing Contains commands that can be executed from within the context.
description Sets the device description.
gps
Sets the GPS coordinates.
location Sets the device location.
group Contains commands that can be executed from within the context.
ip Contains commands that can be executed from within the context.
ipv6 Contains commands that can be executed from within the context.
radio Contains commands that can be executed from within the context.
mesh Contains commands that can be executed from within the context.
maxhops Sets mesh max hops number (0-3) of the AP.(0:unlimited)
status-leds Contains commands that can be executed from within the context.
status-lacp Contains commands that can be executed from within the context.
usb-port Contains commands that can be executed from within the context.
poe-out Contains commands that can be executed from within the context.
external-antenna Contains commands that can be executed from within the context.
spectra-analysis Contains commands that can be executed from within the context.
internal-heater Contains commands that can be executed from within the context.
cband-channels Contains commands that can be executed from within the context.
cband-license Contains commands that can be executed from within the context.
usb-software
Sets VID-PID and VERSION of the AP USB Software Pacakge.
port-setting Configures the AP port and overrides the global AP mode configuration.Enters
ruckus(config-ap-model)#
ipmode Sets ipmode of the AP.
radio-band Sets radio band of the AP.
show Displays the Device's current settings.
venue-name Contains commands that can be executed from within the context.
lldp Contains commands that can be executed from within the context.
power-mode Sets the PoE mode of the AP.
802.3af-txchain
Sets the 2.4GHz radio transmit chains in 802.3af PoE mode of the AP.
======================================================
Example display:
Please login: admin
Password:
Welcome to the Ruckus Wireless ZoneDirector 1200 Command Line Interface
ruckus> enable
ruckus# config
You have all rights in this mode.
ruckus(config)# ap 18:7c:0b:19:15:10
The AP '18:7c:0b:19:15:10' has been loaded. To save the AP, type 'end' or 'exit'
ruckus(config-ap)# devname AP1
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# description Backyard
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# end
The device information has been updated.
Your changes have been saved.
ruckus(config)# ap 58:b6:33:14:33:30
The AP '58:b6:33:14:33:30' has been loaded. To save the AP, type 'end' or 'exit'.
ruckus(config-ap)# devname AP2
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# description Garden
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# end
The device information has been updated.
Your changes have been saved.
========================================================
Command script format:
ap xx:xx:xx:xx:xx:xx
devname AP1
description Backyard
end
ap xx:xx:xx:xx:xx:yy
devname AP2
description Garden
end
.
.
.
ap xx:xx:xx:xx:xx:zz
devname AP3
description Reception
end
Add more entries like above and just copy paste it in ZD CLI (make sure you are in config mode before you paste).
Syamantak Omer
Sr.Staff TSE | CWNA | CCNA | RCWA | RASZA | RICXI
RUCKUS Networks, CommScope!
Follow me on LinkedIn
You can create a script (it is more of a copy paste job) and you can modify number of APs in one go (I will suggest to do 20-30 AP at a time).
Please follow the steps:
1- SSH into the ZD
2- Go to enable mode (enable)
3- Go to config mode (config)
4- Now use below command to enter into specific AP's configuration mode (where xx:xx:xx:xx:xx:xx is AP's MAC address)
ap xx:xx:xx:xx:xx:xx
5- Now modify AP's name
devname AP1
end
6- Change description
description Backyard
end
7- Now repeat the steps 4 to 6 to modify next AP and so on...
Note: Below AP details/configuration can be modified by above procedure.
devname
bonjour-gateway
bind a bonjour gateway policy
bonjour-fencing Contains commands that can be executed from within the context.
description
gps
Sets the GPS coordinates.
location
group Contains commands that can be executed from within the context.
ip Contains commands that can be executed from within the context.
ipv6 Contains commands that can be executed from within the context.
radio Contains commands that can be executed from within the context.
mesh Contains commands that can be executed from within the context.
maxhops
status-leds Contains commands that can be executed from within the context.
status-lacp Contains commands that can be executed from within the context.
usb-port Contains commands that can be executed from within the context.
poe-out Contains commands that can be executed from within the context.
external-antenna Contains commands that can be executed from within the context.
spectra-analysis Contains commands that can be executed from within the context.
internal-heater Contains commands that can be executed from within the context.
cband-channels Contains commands that can be executed from within the context.
cband-license Contains commands that can be executed from within the context.
usb-software
Sets VID-PID and VERSION of the AP USB Software Pacakge.
port-setting Configures the AP port and overrides the global AP mode configuration.Enters
ruckus(config-ap-model)#
ipmode
radio-band
show Displays the Device's current settings.
venue-name Contains commands that can be executed from within the context.
lldp Contains commands that can be executed from within the context.
power-mode
802.3af-txchain
Sets the 2.4GHz radio transmit chains in 802.3af PoE mode of the AP.
======================================================
Example display:
Please login: admin
Password:
Welcome to the Ruckus Wireless ZoneDirector 1200 Command Line Interface
ruckus> enable
ruckus# config
You have all rights in this mode.
ruckus(config)# ap 18:7c:0b:19:15:10
The AP '18:7c:0b:19:15:10' has been loaded. To save the AP, type 'end' or 'exit'
ruckus(config-ap)# devname AP1
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# description Backyard
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# end
The device information has been updated.
Your changes have been saved.
ruckus(config)# ap 58:b6:33:14:33:30
The AP '58:b6:33:14:33:30' has been loaded. To save the AP, type 'end' or 'exit'.
ruckus(config-ap)# devname AP2
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# description Garden
The command was executed successfully. To save the changes, type 'end' or 'exit'.
ruckus(config-ap)# end
The device information has been updated.
Your changes have been saved.
========================================================
Command script format:
ap xx:xx:xx:xx:xx:xx
devname AP1
description Backyard
end
ap xx:xx:xx:xx:xx:yy
devname AP2
description Garden
end
.
.
.
ap xx:xx:xx:xx:xx:zz
devname AP3
description Reception
end
Add more entries like above and just copy paste it in ZD CLI (make sure you are in config mode before you paste).
Syamantak Omer
Sr.Staff TSE | CWNA | CCNA | RCWA | RASZA | RICXI
RUCKUS Networks, CommScope!
Follow me on LinkedIn

