Comments (18)
Hi,
Could you run this modified debug version of the script and send the output to me at [email protected]?
It looks like you have an admin account in your organization with no email defined, which does not make sense. I would like to understand why the script ends up in such a state.
The modified script can be found here: https://github.com/mpapazog/unfinished/blob/master/manageadmins_debug_2018-12-05_1.py
Regards,
Mihail
from automation-scripts.
I just sent that over to you. Thanks!
from automation-scripts.
Please check if this updated version fixes the issue for you: https://github.com/meraki/automation-scripts/blob/master/manageadmins.py
from automation-scripts.
This took care of it. Thank you very much!
from automation-scripts.
@enviex Could you copy paste here the exact syntax you use to run the script? Please mask any sensitive information, like email addresses and API keys. Do you try to run it using Python 2 (the default for some operating systems) or Python 3?
from automation-scripts.
i get this syntax error when i run the script in juypter and vs code
Cell In[3], line 1
pythonmanageadmins.py -k -o /all -c list
^
SyntaxError: invalid syntax
from automation-scripts.
i get this syntax error when i run the script in juypter and vs code
Cell In[3], line 1 pythonmanageadmins.py -k -o /all -c list ^ SyntaxError: invalid syntax
You seem to be missing a space between the word "python" and the name of the script. Not sure what the syntax needs to be in those tools, but if running it from the Windows command line, you run the script as:
python manageadmins.py
I assume you removed the API key from the copied command on purpose. If not, after "-k" you need to provide your Meraki Dashboard API key.
from automation-scripts.
okay, I was able to spot my error in your response and corrected it.
But now when I ran it again...... python manageadmins.py -k -o /all -c list, it listed nothing
from automation-scripts.
Troubleshooting checklist:
Do you have the latest Python 3 and Requests modules installed?
https://www.python.org/downloads/
https://pypi.org/project/requests/
Are you using the correct API key?
Are your organizations configured for API access?
https://documentation.meraki.com/General_Administration/Other_Topics/Cisco_Meraki_Dashboard_API
from automation-scripts.
Yes it is configured for api access
from automation-scripts.
How do i install the latest requests?
I am using python 3.10.8
from automation-scripts.
You can find instructions here: https://pypi.org/project/requests/
from automation-scripts.
I have installed it, yet still not seeing any out put..... do I need to upgrade my python to python3.11.1 or continue with the current version
from automation-scripts.
No need to upgrade. The script was developed a long time before either of those versions was released, so both should be equally well suited. Not sure what your issue is. For now, it does not seem to be a bug in the script though.
Does the script throw some sort of error, or simply not produce any output at all?
from automation-scripts.
Simply not produce any output at all..... Would it be possible to connect with you privately?
from automation-scripts.
For going over the basics of interacting with the Meraki Dashboard API using Python 3, it is a good idea to start with the relevant Cisco DevNet Learning Labs: https://developer.cisco.com/learning/tracks/meraki-devnet-express/
If you manage to run the examples of that learning module, you should be able to run scripts in this repository as well.
from automation-scripts.
Support for scripts in this repository is best-effort and only for fixing bugs. For more general guidance on how to run Python scripts that use API calls in your lab environment, please refer to other resources, such as the Learning Labs linked above.
from automation-scripts.
Okay Thanks a lot for your help, I'd get back to you if anything.
from automation-scripts.
Related Issues (20)
- cloneprovision has vlan bugs HOT 5
- Need API call for % devices offline in the network HOT 1
- Migrate code to new API HOT 4
- Merakilicensealert.py keeps returning TypeError: list indices must be integers or slices, not str HOT 5
- uplink.py multiple Orgs HOT 5
- "@ ERROR 09: Unable to contact Meraki cloud" for deviceupdownstatus.py HOT 2
- "mxfirewallcontrol.py" does not like "tag" filter HOT 4
- manageadmins.py not adding adminstrators HOT 6
- Rerwite of mxfirewallcontrol.py for Dashboard API v1 HOT 1
- <Tag> all ports with <type> HOT 10
- Rewrite scripts to use API key saved as environment variable HOT 8
- Terraform provider HOT 1
- Two seperate issues for mxfirewallcontrol.py HOT 7
- mxfirewallcontrol.py specify cellularFirewallRules HOT 1
- Single LAN is not available for networks in passthrough mode HOT 5
- Issue with csv writing HOT 4
- backup_configs - Operations CSV Files HOT 1
- migrate_cat3k.py question HOT 7
- AttributeError: 'DashboardAPI' object has no attribute 'mx_l3_firewall' HOT 3
- manageadmins.py stopped working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automation-scripts.