cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
468
Views
5
Helpful
2
Replies

IOS-XE | API script

mahnassa
Cisco Employee
Cisco Employee

Hello Everyone,

Can anyone help me with the API Script, that we can through change the PSK for one of the SSID on the 9800 WLC?

hope a great day for all of you

 

Best regards,

 

 

 

1 Accepted Solution

Accepted Solutions

Marcel Zehnder
Spotlight
Spotlight

Hi

Use RESTCONF and the  Cisco-IOS-XE-wireless-wlan-cfg module. To change the PSK for a specific profile, just PATCH https://{{WLC-IP}}/restconf/data/Cisco-IOS-XE-wireless-wlan-cfg:wlan-cfg-data/wlan-cfg-entries/wlan-cfg-entry={{PROFILE_NAME}} with the following payload:

 

{
    "Cisco-IOS-XE-wireless-wlan-cfg:wlan-cfg-entry": {
        "psk": "YOUR NEW PSK"
    }
}

 

HTH
Marcel

View solution in original post

2 Replies 2

Marcel Zehnder
Spotlight
Spotlight

Hi

Use RESTCONF and the  Cisco-IOS-XE-wireless-wlan-cfg module. To change the PSK for a specific profile, just PATCH https://{{WLC-IP}}/restconf/data/Cisco-IOS-XE-wireless-wlan-cfg:wlan-cfg-data/wlan-cfg-entries/wlan-cfg-entry={{PROFILE_NAME}} with the following payload:

 

{
    "Cisco-IOS-XE-wireless-wlan-cfg:wlan-cfg-entry": {
        "psk": "YOUR NEW PSK"
    }
}

 

HTH
Marcel

Hello Marcel,

thank you for your cooperation

Yes, I tried the provided script on my personal WLC and it worked fine.

thank you again

have a great day