Scripting commands in the CLI

  • 2
  • Question
  • Updated 4 months ago
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?
Photo of CFJ

CFJ

  • 1 Post
  • 0 Reply Likes

Posted 2 years ago

  • 2
Photo of James Britt

James Britt

  • 2 Posts
  • 0 Reply Likes
I see there are no replies here.  I would interested in the same thing.  I assume the answer is no?
Photo of tjeerd kootstra

tjeerd kootstra

  • 6 Posts
  • 1 Reply Like
maybe not perfect but...
from the ssh shell to the controller i could do :
- remote ap-cli 0C:F4:D5:19:92:60 "set device-name abc"

now... all we need is a way to copy multiple lines to an ssh shell.. but have a few sec delay between each line

you can find the commands between the quotes by accessing an ap directly thru ssh
Photo of James Britt

James Britt

  • 2 Posts
  • 0 Reply Likes
Thanks.  That will come in handy.
Photo of Okaho Xiti

Okaho Xiti

  • 1 Post
  • 0 Reply Likes
Use symbol ";" to separate your commands in one line.
How to set AP description?

Photo of Alex Scott

Alex Scott

  • 1 Post
  • 1 Reply Like
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