Giter VIP home page Giter VIP logo

Comments (18)

mpapazog avatar mpapazog commented on August 21, 2024

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.

systemfailx avatar systemfailx commented on August 21, 2024

I just sent that over to you. Thanks!

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Please check if this updated version fixes the issue for you: https://github.com/meraki/automation-scripts/blob/master/manageadmins.py

from automation-scripts.

systemfailx avatar systemfailx commented on August 21, 2024

This took care of it. Thank you very much!

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

@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.

Christopher020 avatar Christopher020 commented on August 21, 2024

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.

mpapazog avatar mpapazog commented on August 21, 2024

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.

Christopher020 avatar Christopher020 commented on August 21, 2024

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.

mpapazog avatar mpapazog commented on August 21, 2024

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.

Christopher020 avatar Christopher020 commented on August 21, 2024

Yes it is configured for api access

from automation-scripts.

Christopher020 avatar Christopher020 commented on August 21, 2024

How do i install the latest requests?
I am using python 3.10.8

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

You can find instructions here: https://pypi.org/project/requests/

from automation-scripts.

Christopher020 avatar Christopher020 commented on August 21, 2024

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.

mpapazog avatar mpapazog commented on August 21, 2024

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.

Christopher020 avatar Christopher020 commented on August 21, 2024

Simply not produce any output at all..... Would it be possible to connect with you privately?

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

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.

mpapazog avatar mpapazog commented on August 21, 2024

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.

Christopher020 avatar Christopher020 commented on August 21, 2024

Okay Thanks a lot for your help, I'd get back to you if anything.

from automation-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.