Meraki Usable IP Address Report!
This is a script that will pull all active WAN IP Addresses and Subnet Masks from your Meraki Organization. This will convert the results into usable IP Addresses.
My use case was to add all of our IP Addresses to Shodan to scan for vulnerabilites, and you had to enter single IP Addresses to scan.
To get Meraki API Key:
Step 1: Log into the Meraki dashboard.
Step 2: In the navigation panel click Organization > Settings.
Step 3: Under Dashboard API Access, check Enable access to the Cisco Meraki Dashboard API. Without this option, you cannot generate API keys to onboard MX devices to CDO.
Step 4: Click Save changes.
Step 5: On the Meraki dashboard, click on your username in the upper right corner of the screen and then click My Profile.
Step 6: Locate the API access header and click Generate new API key. Copy this API key. We recommend temporarily pasting it into a note until you are ready to use it. If you close the copy source before you paste the API key, you lose the copied API key.
Running the Script:
Once you have your API Key, add it to the script and then run "Meraki_Import.py". Once this finishes, run "IP_Conversion.py".
You should see the following files: 'meraki_ip_list_cidr.csv' & 'meraki_ip_list_usable.csv'
If you can help make this project better, help would be much appreciated!
Joshua Hughes