cucm-service-param-name-mapper

Overview

Sample script that scrapes Cisco Unified Communications Manager admin UI pages to map service parameter UI labels with their programmatic IDs.

Results are output to JSON and markdown formatted files. Example JSON output files for CUCM versions 12.5(1)SU6/ 14 / 14SU3 are included.

Screen Shot

Uses:

Tested with:

  • Ubuntu 23.04
  • Python 3.11.4
  • CUCM 12.5(1)SU6 / 14 / 14SU3

DevNet sandboxes with CUCM instances are available for testing, e.g. Collaboration / Collaboration 14.0: DevNet Sandboxes

Pre-requisites

  • Python 3.8+
  • CUCM admin UI user credentials, with AXL read permissions

Getting started

  • Create/activate a Python virtual environment, e.g.:

    python3 -m venv venv
    source venv/bin/activate
  • Install needed dependency packages:

    pip install -r requirements.txt
  • Rename .env_example to .env, and edit to specify your CUCM host address and admin/AXL credentials.

    Notes:

    • CUCM hostname is case sensitive - use exactly what appears in CUCM admin List / Server.
    • The CUCM admin user must have AXL read permission.

    Be sure to save the file!

  • To run the sample, use the following command:

    python map_param_names.py

    or if editing the project in Visual Studio Code, just press F5

Caveats

  • This sample is likely to work against any fairly recent CUCM version - however, as it is implemented via scraping of HTML pages, cosmetic changes to the admin UI service parameter pages (which could happen for any major/minor/SU/ES version) may break parsing.
View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.