DHCP Scopes in Meraki

DillonofAnch17
Getting noticed

DHCP Scopes in Meraki

Is there any way to pull all the DHCP scopes of your entire Organization and print those by themselves? Also is there any word of DCHP management coming to Meraki? Personally, I love the ability to have each network host its own DHCP but it really does bring the spreadsheet in play with managing the scopes as you go! 

 

Let me know if there are any good API's to use as I am not afraid to code something out either!

 

Thanks for the help!

2 Replies 2
jdsilva
Kind of a big deal

All the DHCP info is included in the "VLANs" API endpoint. You'll have to filter the stuff you don't want, but this is where I would grab it from.

 

https://api.meraki.com/api_docs#list-the-vlans-for-an-mx-network

 

 

Jason-907
Getting noticed

The workhorse for gathering the information will be the following command.

myvlans = meraki.getvlans(apikey, networkid, suppressprint=False)

You'll want it to loop through the networks you have and then loop through the VLANs that this command pulls. The reservations you have set are based on MAC rather than IP, which can introduce some interesting issues depending on what you are doing with this data.

 

Why Meraki (who allow you to upload reservations via CSV file) don't allow you to download existing reservations via a CSV file is beyond me.

 

Good luck!

Get notified when there are additional replies to this discussion.
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.
Labels