Giter VIP home page Giter VIP logo

Comments (10)

mpapazog avatar mpapazog commented on August 21, 2024

So are you basically looking for a script to iterate through all MS switchports in an org and add a user defined tag to them?

from automation-scripts.

Nymdfaq avatar Nymdfaq commented on August 21, 2024

Not at all I want to add a user defined tag to all MS switchports with the type access or type trunk.

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Ah, the script I made was matching the requirements before the last edit of your response. Hold on...

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Please try the script now: https://github.com/meraki/automation-scripts/blob/master/tag_all_ports.py

from automation-scripts.

Nymdfaq avatar Nymdfaq commented on August 21, 2024

Sorry, I am out of Office, and need to test it on next Tuesday. Thank you a lot, i will let you know next week.

from automation-scripts.

Nymdfaq avatar Nymdfaq commented on August 21, 2024

Wanted to test it yesterday, but have trouble with the move of devices. Need to contact the support all time. Are you able to add a network filter?
for example:
python tag_all_ports.py -k <api_key> [-o <org_name>] [-n <network_name>] [-f ] -t

Sorry for the circumstances and thanks a lot.

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Do you need exact matches of network names, or partial ones?
For example if you have a network named "London data centre", an exact match filter would require to type the whole name and would match nothing else. A partial match filter for "London" would match your DC network, as well as all other nets with "London" in their names.
Which of the two would be more useful to you?

from automation-scripts.

Nymdfaq avatar Nymdfaq commented on August 21, 2024

An exact match of the network name would be the better filter for me. In case that i want to tag all ports of the organisation, I am able to not use the network filter, right?

from automation-scripts.

mpapazog avatar mpapazog commented on August 21, 2024

Check the latest version. Added 2 new optional parameters:
-n <network_name> If defined, will apply changes only to a network with a name that matches this parameter value. If omitted, all networks will be processed
-a <add/remove> Action to complete. Use value "add" to add the specified tag or "remove" to remove it. If omitted "add" is assumed

from automation-scripts.

Nymdfaq avatar Nymdfaq commented on August 21, 2024

Works great! :) Thanks :)

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.