Category Archives: Scripts

CUCM SIP Normalization and Transparency Scripting Example

Purpose: The purpose of this document is to describe handling, pass through and manipulation of SIP Alert-Info header information from 3rd party alerting systems or SIP enabled nurse calling systems such as Rauland Responder 5.  The Alert-Info header can be leveraged to play an alternative ringtone on the end device signaling a call that has a higher importance than typical calls.  A differentiated ringtone can indicate call urgency without the end user having to unclip a wireless phone from his/her belt to answer or otherwise address the call while occupied with another critical task. Challenges: CUCM acts as a back … Continue reading

Posted in Collaboration, Scripts, Telephony | Tagged , , , , , , | Leave a comment

Collecting CLI Data from Cisco Devices Via HTTP

I always try to approach technical challenges with the thought that “just because something can’t be done doesn’t mean it can’t be done”.   Sure enough I had a problem like this cross my desk again the other day.   I wanted a simple way to get the number of active calls on a handful of MGCP PRI gateway routers.  Unfortunately I couldn’t find a single SNMP data point for this information.  I knew IOS routers had an HTTP interface so I started checking around to see how easy it would be to script against. Sure enough, it really wasn’t all that … Continue reading

Posted in Networking, PHP | Tagged , , | Leave a comment

Best PHP 101 Function

I was explaining to a friend the other day how to best debug PHP scripts. There are of course debugging modules that can be bolted in or other specialty IDE tools. However, since this guy was new to the language and to programming in general I figured I would cut all of that out and make it simple and easy. With PHP the alternative is to dump information out to the screen and read it from there. I shared with him my all time favorite, most used, yet simplest PHP function for doing this. It looks something like this: Continue reading

Posted in PHP | Tagged | Leave a comment

Cisco Configuration “Expect” Backup Script

I was recently tasked with backing up switch configurations automatically. No problem, right? Wrong. There was nothing to spend on this project so it was up to me and whatever I could do with a script. I had made a telnet script in the past but was not crazy about passwords flying around in plain text. I really have very little scripting experience so many of you will find this very easy to understand and follow since there is nothing complicated about my scripting skills.
Continue reading

Posted in Networking, Scripts, Shell | Tagged , , , , , | 1 Comment