Coder Social home page Coder Social logo

presidiocode / cucm-exporter Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 6.0 506 KB

A tool to help export information out of Cisco Unified Communications Manager CUCM)

License: MIT License

HTML 1.10% Python 98.90%
cisco cucm unified-communications-server unified-communications cisco-collaboration unified-communications-manager cisco-unified-communications collaboration

cucm-exporter's Introduction

CUCM Exporter utility

This tool was created in an effort to make exporting information from Cisco Unified Communications Manager (CUCM) easy. Some example use cases might include regularly exporting a user and phone number list to csv on a recurring schedule.

Usage

Now supporting full GUI via the amazing gooey python library. simply run the cucm-exporter without any following cli arguments. You can now run as a GUI or a CLI!

This tool will be packaged as a standalone executable file that can be used with syntax as seen below:

cucm-exporter --help                                                                                                  status: starting 2020-03-23 20:07:33.256787
usage: cucm-exporter.exe [-h] --address CUCM_ADDRESS [--version {8.0,10.0,10.5,11.0,11.5,12.0,12.5}] --username
                         CUCM_USERNAME --password CUCM_PASSWORD [--out FILENAME] [--timestamp]
                         [--export {users,phones}] [--smtpserver SMTPSERVER] [--mailto MAILTO]

optional arguments:
  -h, --help            show this help message and exit

cucm connection:
  --address CUCM_ADDRESS, -a CUCM_ADDRESS
                        specify cucm address
  --version {8.0,10.0,10.5,11.0,11.5,12.0,12.5}, -v {8.0,10.0,10.5,11.0,11.5,12.0,12.5}
                        specify cucm AXL version
  --username CUCM_USERNAME, -u CUCM_USERNAME
                        specify ucm account username with AXL permissions
  --password CUCM_PASSWORD, -p CUCM_PASSWORD
                        specify ucm account password
  --export {users,phones}, -e {users,phones}
                        specify what you want to export

output file:
  --out FILENAME, -o FILENAME
                        filename of export file (.csv format) - default="export.csv"
  --timestamp, -t       append filename with timestamp

email options:
  --smtpserver SMTPSERVER, -s SMTPSERVER
                        smtp server name or ip address
  --mailto MAILTO, -m MAILTO
                        send output to mail recipient

EXAMPLE 1 - running the executable

cucm-exporter -a 10.129.225.201 -v 11.0 -o "my file.csv" -u axlusername -p axlpassword -t --export users

EXAMPLE 2 - the raw python code can be run from source after installing dependencies pip install -r requirements.txt

python cucm-exporter.py -a 10.129.225.201 -v 11.0 -o "my file.csv" -u axlusername -p axlpassword -t --export users

cucm-exporter's People

Contributors

bradh11 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cucm-exporter's Issues

Python 2.7.13

root@server:/opt/cucm-exporter# python cucm-exporter.py -a 1.1.1.1 -v 11.5 -o "phones.csv" -u user -p pass -t --export phones
File "cucm-exporter.py", line 18
print(f"status: starting {start_time}")
^
SyntaxError: invalid syntax

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.