Giter VIP home page Giter VIP logo

ciscodevuc's Introduction

Cisco CUCM/CUC and other scripts for UC applications

These are various scripts used in my daily operations within a Cisco CUCM and CUC environment.
Other scripts may show up in here as well, but the bulk will be Cisco UC driven scripts.  I am hoping
this is a place for others like myself to learn how to interact with the powerful Cisco API

I'm fairly new at scripting.  So I always advise running scripts within a dev environment first.  Please
look at utilizing Cisco DevNET sandboxes to validate your scripts.  I am not responsible for your actions
within your production environments.  While I test all these scripts out on 12.x platform, I can not say they
will work or won't on your environment.

I use VS Code to edit in.  There's LOTS of stuff out there and everyone has their opinions.  VS Code was what I 
started with and have found to meet my needs.  And I can hook it up to Git/Azure just fine.  Link below to install
VS code if you want to give that a try.  The python you install for windows will have its own editors too.  If you use
VS Code I recommend going to file, preferences, settings and searching for "flake".  Under Python › Linting: Flake8 Args 
click add and put in this "python.linting.flake8Args": ["--max-line-length=120"] including all the quotes.  This will
get rid of all the weird errors that VS Code thinks your script has.  

If you see areas of improvements in scripts please don't hesitate to let me know at [email protected] as 
I'm always up for learning better ways to do things with Python.

Please review the stuff in Cisco Zeep Axl Examples GitHUB.  Link is below.  That is where I first discovered some 
great stuff to help me learn.  

Some helpful links:

Cisco DevNET Sandboxes: https://developer.cisco.com/site/sandbox/
Cisco Zeep Axl Examples: https://github.com/CiscoDevNet/axl-python-zeep-samples
Install VS Code: https://code.visualstudio.com/

Things you will need to run these scripts

You are going to need a few things to run any python scripts in your environments

Python (for windows): https://www.python.org/downloads/windows/
PIP (for installing modules): https://pip.pypa.io/en/stable/installation/
Python-DotENV: https://pypi.org/project/python-dotenv/
PySimpleGUI: https://pysimplegui.readthedocs.io/en/latest/ (If you plan on using the file open pop-up)
Git: https://git-scm.com/download/win

DotENV is a good one to get.  This is where you store sensitive information like passwords, login IDs, IP addresses that your
scripts can reference instead of putting the info directly into scripts.  This way if you sync to a repo, you don't sync sensitive
information for the public to exploit.  

In Cisco CUCM you will need to download the wsdl toolkit from the downloads page and put it somewhere on your local PC.  
From there you can point your scripts at that wsdl file like this: WSDL_FILE = 'C:/folder/AXLAPI.wsdl'

You will need to have a user in CUCM with 3rd party axl permissions.  This can be a regular user or application user.  Your
.env file should look like this:

AXL_USERNAME='CUCM_USER'
AXL_PASSWORD='PASSWORD'
CUCM_ADDRESS='10.1.1.1'

The .env file should be located at the root of your code folder structure and your .gitIgnore NEEDS TO include this .env file 
or it will sync to your repo and you don't want that.  When you want to access the file you simply
use os.getenv('CUCM_USER') for example. You must load the .env module at the beginning of your scripts along with the 
os module.  See my scripts for examples. 

ciscodevuc's People

Contributors

jfletcher76 avatar

Stargazers

 avatar

Watchers

 avatar

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.