Skip to content

A place to share my Cisco UC python scripts. Join the discord here if you have questions for me or just want to find a place to talk about Cisco UC stuff. https://discord.gg/buxvfQRwdP

Notifications You must be signed in to change notification settings

jfletcher76/CiscoDEVUC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 jasunfletcher@gmail.com 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. 

About

A place to share my Cisco UC python scripts. Join the discord here if you have questions for me or just want to find a place to talk about Cisco UC stuff. https://discord.gg/buxvfQRwdP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages