How to create Cisco Wireless LAN controller and start AP discovery using the Spectrum REST API
search cancel

How to create Cisco Wireless LAN controller and start AP discovery using the Spectrum REST API

book

Article ID: 111462

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How to create a Cisco Wireless LAN Controller and start the access point discovery using the Spectrum REST API.

The customer is looking to automate the creation of Cisco Wireless LAN controllers and discover the access points using the Spectrum REST API.

Environment

Any Spectrum version

Resolution

1. Create the WLC controller using the following URL:

2. Use the following Spectrum REST API call to create the Cisco Wireless Lan Controller:

http://<OneClickServer>:<port>/spectrum/restful/model?agentport=<agentport>&commstring=<communityString>&ipaddress=<IP Address> 

Example:  http://<OCHostName>:80/spectrum/restful/model?agentport=161&commstring=public&ipaddress=10.241.250.42

2. Use the following Spectrum REST API call to send the Start_AP_Discovery action (0x00013340) to the Cisco_LWAPP_App model:

http://<OneClickServer>:<port>/spectrum/restful/action/0x00013340?mh=<MH of Cisco_LWAPP_App model>

Example: http://<OCHostName>:80/spectrum/restful/action/0x00013340?mh=0x500005f

This will successfully create the Cisco Wireless LAN controller model and discover the access points for the controller.