Update Template MX wireless settings and MR wireless password

Solved
Del_B
Conversationalist

Update Template MX wireless settings and MR wireless password

I'm trying to find a way using an API to update a Template's wireless setting under both the Security & SD-WAN->Wireless Settings and Wireless->SSID password(s).

 

I have one that updates the passwords for Wireless->SSID on the templates, but I don't see a way to also update the Security & SD-WAN->Wireless Settings in templates.

In a few months, we will be adding 1400+ Meraki sites, and most have MX68w and MX68cw.  Prefer not to add anymore templates

 

1 Accepted Solution
alemabrahao
Kind of a big deal
Kind of a big deal

Meraki does not currently support updating the "Security & SD-WAN → Wireless Settings" section of a template via API.

 

 

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.

View solution in original post

7 Replies 7
alemabrahao
Kind of a big deal
Kind of a big deal

Meraki does not currently support updating the "Security & SD-WAN → Wireless Settings" section of a template via API.

 

 

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Del_B
Conversationalist

So best to add a section to find MX68w and update those individually?  If so, would the Template override it?

alemabrahao
Kind of a big deal
Kind of a big deal

If they're in a template, you can't update the password individually, but you can update it through the template.
To update each one individually, you'd have to remove them from the template.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
PhilipDAth
Kind of a big deal
Kind of a big deal

You can treat the TemplateId the same as a NetworkId.

 

This is some sample code that I use that allows a user to specify either a network name OR a template name.

 

def getNetId(orgId, netName):
    netId = None

    # Search for the network
    for net in dashboard.organizations.getOrganizationNetworks(orgId):
        if net['name'] == netName:
            netId = net['id']
            break

    # If no network, search for a template
    if netId is None:
        for net in dashboard.organizations.getOrganizationConfigTemplates(orgId):
            if net['name'] == netName:
                netId = net['id']
                break

    # Nothing found matching at all
    if netId is None:
        print("Invalid network name supplied: " + netName)
        exit(-1)

    return netId

 

You can then use APIs like these to get and update the security appliance's WiFi settings.
https://developer.cisco.com/meraki/api-v1/get-network-appliance-ssid/

https://developer.cisco.com/meraki/api-v1/update-network-appliance-ssid/

 

alemabrahao
Kind of a big deal
Kind of a big deal

And will this really work? It seems like a hack. 🤣

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
PhilipDAth
Kind of a big deal
Kind of a big deal

Yes.  I would say nearly every large Meraki org I look after uses templates, and frequently the scripts I work on have to make changes to those templates.

alemabrahao
Kind of a big deal
Kind of a big deal

@Del_B  I think you should accept @PhilipDAth's answer as the solution.

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
Get notified when there are additional replies to this discussion.