cancel
Showing results for 
Search instead for 
Did you mean: 

Complete Combined Network Configuration using script

Conversationalist

Complete Combined Network Configuration using script

Hi Everyone

 

I wanted to configure the entire Network using scripts. We have clients which we are providing services through Meraki Network. Intent is, if we ask client to give few basic requirements mentioned below. Can we create a automatic script which communicate with Meraki Devices using API's and dashboard has been automatically configured. 

 

If we have two MX device, MS device and MR AP's and all details like

1. WAN IP's for uplink configuration.

2.MX IP's, VLAN Information,

3.DHCP Server IP for relay agent.

4.Firewall rules can be copied from some template or we can create a file for Firewal rules. 

5. Firewall Polcy configuration from template. 

 

 

 

 

Br-

Hitesh 

3 REPLIES 3
Head in the Cloud

Re: Complete Combined Network Configuration using script

I would actually love to see if that works. I haven't messed much with API's but would love to know if it works out for you. I will stay posted to this thread.

Kind of a big deal

Re: Complete Combined Network Configuration using script

Yes.  You use the provisioning APIs.

https://dashboard.meraki.com/api_docs

 

A long time ago I wrote a script that can backup and restore Meraki organisations offline.  The restore script is actually a Python script you can just edit and run.

http://www.ifm.net.nz/cookbooks/meraki-backup.html

 

So if you wanted to get started you could set it up how you want, run the backup script, and then start with the restore script to form the basis of what you want going forward.

Kind of a big deal

Re: Complete Combined Network Configuration using script

Have a look at the dashboard api:

https://create.meraki.io/build/meraki-postman-collection-getting-started/

 

I think it can handle all of your points.

 

Keep in mind that this means that the devices should have cloud connectivity at the start of the deployment (via dhcp) ... and keep it throughout the script too. If they lose connectivity during one of the steps they will roll back to the last safe configuration. When restricting vlans on trunks this can cause issues so the order of the steps is important.

 

So thoroughly test your script before rollout.

Welcome to the Meraki Community!
To start contributing, simply sign in with your Cisco account. If you don't yet have a Cisco account, you can sign up.