Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CiscoSE/merakiquery
This general python script will query the Cisco Meraki Dashboard for all the users attached to the networks.
https://github.com/CiscoSE/merakiquery
Last synced: 3 months ago
JSON representation
This general python script will query the Cisco Meraki Dashboard for all the users attached to the networks.
- Host: GitHub
- URL: https://github.com/CiscoSE/merakiquery
- Owner: CiscoSE
- License: other
- Created: 2016-12-15T19:05:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-05T12:39:08.000Z (almost 6 years ago)
- Last Synced: 2024-08-03T01:14:09.756Z (6 months ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 7
- Watchers: 4
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-merakiapis - merakiquery - This general python script will query the Cisco Meraki Dashboard for all the users attached to the networks. (Administration / Contents)
README
# merakiquery.py
## Description
This code will leverage python to query the Meraki Dashboard for information about the clients attached to the Meraki cloud for a particular organization## Requirements and Prerequisites
### Meraki API Access
For more information on the Meraki API, you can consult https://create.meraki.io/. You will need to generate an API Key in your dashboard so that the information can be accessible from the calls to the API.For more infomation on creating a API key, go to the following: https://documentation.meraki.com/zGeneral_Administration/Other_Topics/The_Cisco_Meraki_Dashboard_API
### package_config.ini
The code uses a file called the package_config.ini to house the information about the connection to meraki application uses. In the repository, there is a ```package_config.ini.sample``` that you should rename to ```package_config.ini```. Then modify the package_config.ini to reflect the following information* serveraddress - The IP or DNS name for the meraki dashboard. This should normally be *dashboard.meraki.com*
* merakiAPIkey - This item is the meraki API Key. Within the Meraki dashboard, select organization->settings and enable the "Dashboard API access"
* organization - This item is the organization id that the queries will be executed from. You can leave this item blank the first time you run it, the application will display all the organization ids associated with the above merakiAPIkey### python
This demo example is based on Python 2.7 and was tested successfully under that version.There are two main requirements for external libraries:
* requests
* configparserYou can install these prerequisites by the following commands:
```
pip install requests
pip install configparser
```