Command line batch DPSK generation

  • 1
  • Question
  • Updated 4 years ago
Is there a way to generate batch DPSKs via command line?

Thanks
Photo of William Fowler

William Fowler

  • 18 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Keith - Pack Leader

Keith - Pack Leader

  • 860 Posts
  • 51 Reply Likes
(there is, we're running into trouble posting the answer because it contains a code example that's being interpreted as HTML - stay tuned)
Photo of Vincent Larue

Vincent Larue, Employee

  • 2 Posts
  • 0 Reply Likes
William,

You cannot do it directly from the SSH CLI interface, but you can use the Northbound Portal Interface.

To enable the Northbound Portal Interface, go into /configure/sytem/Network Management/Northbound Portal interface.

You can then use the curl command from Linux or MacOS shell in order to generate DPSKs. Below is a sample of such command.

curl -k -d "<ruckus><req-password>ruckus123</req-password><version>1.0</version><command cmd="generate-dpsk"><dpsk expiration="24" key-length="20" user="OpenDPSK" mac="7c:d1:c3:6c:8c:3a" vland-id="1" wlan="BigDogs" /></command></ruckus>" https://192.168.120.240/admin/_portalintf.jsp
Photo of William Fowler

William Fowler

  • 18 Posts
  • 0 Reply Likes
I will give it a try.

Thanks!
Photo of William Fowler

William Fowler

  • 18 Posts
  • 0 Reply Likes
Is there documentation for Northbound Portal Interface XML API?

I would like to know about other commands that are also available.

Thanks,
Photo of Vincent Larue

Vincent Larue, Employee

  • 2 Posts
  • 0 Reply Likes
William,

You can find some documentation on the below link:
http://a030f85c1e25003d7609-b98377aee...

There are also some discussions on this forum, look for secure hotspot.

Regards,

Vincent
Photo of William Fowler

William Fowler

  • 18 Posts
  • 0 Reply Likes
Thanks!