Python SDK for Cisco CUCM Servicability API

Servicability API Documentation

Use Cases

  • Retrieve status of services
  • Start/Stop/Restart a service
  • Activate/Deactivate a service

Notes

  • The API relies on Cisco Tomcat, so this is reset via SSH and requires osadmin privileges
  • SDK needs to be instanciated per CUCM node
  • ciscoaxl SDK can be used to list the process nodes

Instructions

  • git clone this repository
  • pip install -r requirements.txt

Examples

(ciscoservicability) jlevensailor in ~/Dev/ciscoservicability on master 🌮 python test.py

+----------------------------+--------------+---------+---------+
| Host                       | Service      | Status  | Uptime  |
+----------------------------+--------------+---------+---------+
| ccm-pub-srvr-01.cdpneighbors.com  | Cisco Tomcat | Started | 3:31:04 |
| ccm-sub-srvr-01.cdpneighbors.com  | Cisco Tomcat | Started | 3:40:13 |
| ccm-sub-srvr-02.cdpneighbors.com  | Cisco Tomcat | Started | 3:39:16 |
| ccm-sub-srvr-03.cdpneighbors.com  | Cisco Tomcat | Started | 3:36:11 |
| ccm-sub-srvr-04.cdpneighbors.com  | Cisco Tomcat | Started | 3:33:07 |
| ccm-tftp-srvr-01.cdpneighbors.com | Cisco Tomcat | Started | 3:38:16 |
| ccm-tftp-srvr-02.cdpneighbors.com | Cisco Tomcat | Started | 3:35:10 |
| ccm-tftp-srvr-03.cdpneighbors.com | Cisco Tomcat | Started | 0:36:54 |
+----------------------------+--------------+---------+---------+

For a complete list of examples, see examples.py

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.