Skip to content

Flask web app that display several information details about all the phone endpoints from your CUCM environment

License

Notifications You must be signed in to change notification settings

gve-sw/cisco_cucm_AXL_phone_inventory_flask_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cucm_phone_inventory

Flask web app that displays several information details about all the phone endpoints from your CUCM environment

In this sample, you will be able to see an example of a front-end and back-end solution that utilizes the Administrative XML Layer (AXL) API and Risport (realtimeservice) API for Cisco Unified Communications Manager with python to view a list of all your phone endpoints.

Author:


Important Notes

  • The two test files are include to explore the responses that the api calls returns for the phones
  • The serial number will only display for phones that have a routable ip address from which this flask server will be running on.
  • The method this script is using, is grabbing the ip address for the phone, and then web scraping the phone's web page to grab the serial numbter.
  • If phone does not have an IP address, the serial number will show as "unassigned" and if the ip address is unreachable from the hosted server, the serial number will show as "unaccessible"

Prerequisites

Setup instructions

  1. Go to CUCM admin page and retrieve the AXL toolkit files from your environment.

1a. Click on Applications and then plugins. alt text

1b. Search for AXL and install the AXL toolkit alt text

  1. install and clone this repo onto a server that has python3 installed

  2. install and create a virtual environment for your project (https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/)

  3. enter the virtual environment by entering the terminal command

source (venv name)/bin/activate
  1. install dependencies by entering the terminal command
pip3 install -r requirements.txt file
  1. Edit user_env_default.py and add your CUCM environment and user details alt text

  2. After including your information on the user_env_default.py file, enter the terminal command

cp user_env_default.py user_env.py
  1. In main.py file, change to the desired ip address that is routable so people within the same network can visit the site. alt text

  2. Enter terminal command to start up flask server

python3 main.py
  1. If steps are complete and the flask server is up and running, user will be able to visit the page on port 5000 on the ip address that was provided.

Screenshots

alt text

API Reference/Documentation (VERY USEFUL TO CHECK OUT!):

License

Provided under Cisco Sample Code License, for details see LICENSE

Code of Conduct

Our code of conduct is available here

Contributing

See our contributing guidelines here

DISCLAIMER:

Please note: This script is meant for demo purposes only. All tools/ scripts in this repo are released for use "AS IS" without any warranties of any kind, including, but not limited to their installation, use, or performance. Any use of these scripts and tools is at your own risk. There is no guarantee that they have been through thorough testing in a comparable environment and we are not responsible for any damage or data loss incurred with their use. You are responsible for reviewing and testing any scripts you run thoroughly before use in any non-testing environment.

About

Flask web app that display several information details about all the phone endpoints from your CUCM environment

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published