I've updated the script a little. import meraki
## Assume MERAKI_API_ENV_KEY environment variable
dashboard = meraki.DashboardAPI()
OrgID = "xxx"
# Get Network IDs in Org
OrgNetworks = dashboard.organizations.getOrganizationNetworks(OrgID, total_pages='all')
# Initialise
NetworkSsids = []
NetworksWithOutdatedEncryption = []
for network in OrgNetworks:
# Test if network contains wireless
if "wireless" in network['productTypes']:
# Get SSIDs in network
NetworkSsids = dashboard.wireless.getNetworkWirelessSsids(network['id'])
# Traverse through SSIDs
for ssid in NetworkSsids:
# Initialise temporary dictionary
tempDict = {
'networkId': None,
'ssidNumber': []
}
# Test if WPA1 is contained in the Encprytion mode
if 'wpaEncryptionMode' in ssid.keys() and ssid['enabled']:
if "WPA1" in ssid['wpaEncryptionMode']:
# Store relevant parameters
tempDict['networkId'] = network['id']
tempDict['ssidNumber'].append(ssid['number'])
NetworksWithOutdatedEncryption.append(tempDict)
else:
continue
# Update Encprytion standard
for network in NetworksWithOutdatedEncryption:
UpdateSsid(network)
... View more