Using the API you can use this,
#! /usr/bin/env python3
import meraki
def main():
dashboard = meraki.DashboardAPI(
suppress_logging=True
)
OrgId = str(input("Organization ID: "))
SsidName = str(input("Target SSID: "))
NewPsk = str(input("New Psk: "))
Networks = dashboard.organizations.getOrganizationNetworks(OrgId)
Targets = {}
for network in Networks:
Ssids = dashboard.wireless.getNetworkWirelessSsids(network['id'])
for Ssid in Ssids:
if Ssid['name'] == SsidName:
Targets.append({
'name': network['name'],
'networkId': network['id'],
'SsidNumber': Ssid['number']
})
# Update PSK
for target in Targets:
print("Updating",network['name'])
response = dashboard.wireless.updateNetworkWirelessSsid(
target['networkId'], target['SsidNumber'],
psk=NewPsk
)
print("Done")
if __name__ == "__main__":
main()
LinkedIn :::
https://blog.rhbirkelund.dk/Like what you see? - Give a Kudo ## Did it answer your question? - Mark it as a Solution
🙂All code examples are provided as is. Responsibility for Code execution lies solely your own.