Giter VIP home page Giter VIP logo

Comments (8)

mpapazog avatar mpapazog commented on August 21, 2024 1

@Semperverus I submitted a new version of the script. Please check if it fixes the issue of having to use quotes on your API key.

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Hi,

Are you still facing this issue?

That error message means that the script cannot find an organization with the name that was specified in command line parameter "-o < org name >". Please note that the script needs an organization name and not an organization ID.

Could you copy here the exact command line syntax you use to run the script?

Regards,
Mihail

from automation-scripts.

undrwatr avatar undrwatr commented on August 21, 2024

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Is "423733" the name of your organization, or is it the Organization ID? If it is the ID, you will need to replace it with the name.

from automation-scripts.

undrwatr avatar undrwatr commented on August 21, 2024

from automation-scripts.

Semperverus avatar Semperverus commented on August 21, 2024

Hello, I am trying to use this script and getting the same issue, but I am indeed using my organization name and NOT the ID.

I am typing python mxfirewallcontro.py -k <my_api_key_here> -o "My Organization Inc." -c create-backup and it spits back:

@ ERROR 46: Fetching source organization ID failed

Is this script too old at this point? It shouldn't matter since the API hasn't changed, it's still using v0.

Tried on Windows 10 with Python 3.5.3 and 3.7.2

from automation-scripts.

undrwatr avatar undrwatr commented on August 21, 2024

from automation-scripts.

Semperverus avatar Semperverus commented on August 21, 2024

I figured it out. The key needs to be put in quotes as well (this was not specified in the documentation).

Documentation:

Script usage
To run the script, run the command “python mxfirewallcontrol.py” in the directory where the script
resides, followed by the correct command-line arguments:
python mxfirewallcontrol.py -k <key> -o <org> [-f <filter>] [-c <command>] [-m <mode>]
Elements marked represent values that need to be entered. Arguments in brackets [] are optional.
Here is an example of running the script:
python mxfirewallcontrol.py -k 1234 -o “Meraki Inc” -c create-backup
That command would run the script with API key 1234, find an organization named Meraki Inc and create
a local backup copy of the MX Layer 3 firewall rules for all of its configuration templates. You can find more
information on the available command line arguments in the Command line arguments section of this
manual.
Running the script with no arguments will print the help text.

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.