Coder Social home page Coder Social logo

cdp_cucm's Introduction

Phone-Based Interface Descriptions

These scripts show an example of the following:

  1. How to interact with the HTTPS interface on Cisco switches.
  2. How to interact with the AXL/SOAP/XML API on Cisco Unified Communications Manager.

The only external module required is requests.

cdp_cucm.py

This script queries a Cisco switch for its CDP neighbor table and extracts the device names of the attached IP phones. Currently, the script will quit if it finds unregistered phones. If you want it to ignore unregistered phones, change the code so that it ignores regex match failures on the XML response.

It then uses the companion module cucm_query.py to query the CUCM database via its XML SOAP API for the descriptions of those phones.

Finally, it either:

a) interactively prints an interface configuration for the switch that uses the description field as an interface description (suitable for copy and paste), or

b) configures the switch with those interface descriptions via the switch HTTPS interface.

Thus, if a phone's description in the CUCM database is "Alice's Phone", the new interface configuration would be:

interface {type/number}
  description Alice's Phone

You need to set up your switch to allow configuration via the HTTPS interface, through whatever authentication mechanism your switch uses (TACACS+, etc.).

This has been tested only on reasonably recent versions of IOS for Catalyst 3560/3750 switches and CUCM 8.6.

cdp_cucm's People

Contributors

corvidtakeover avatar drkchiloll avatar jayswan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.