SNMP Polling Cisco AS5300’s for E1 Channel Usage (with Cacti)

This post is as much a reference for myself as it is for others. I had a need today to start graphing E1/PRI channel usage on some Cisco AS5300’s. The current priority is a simple graphical representation of the actual usage:

AS5300 E1 Channels in Use

Hopefully at some point over the next couple of weeks I may expand this to other more interesting information such as average call duration, etc that can be useful to diagnosing issues almost as they happen.

The Cacti XML can be found here and I just posted the same to Cacti’s own forums here.

The CISCO-POP-MGMT-MIB provides the MIBs for this information and the ones I specifically used (for my AS5300 which are all identical with 4 E1/PRI ports) are cpmDS1ActiveDS0s.0.x (or .1.3.6.1.4.1.9.10.19.1.1.9.1.3.0.x). Replace x with the appropriate port number (0-3) as required.

Explore the available information yourself with:

$ snmpwalk -Os -c <community> <host> .1.3.6.1.4.1.9.10.19

The Not So Short Introduction to LaTeX

Following a recent thread on ILUG, I was reminded of what I consider an invaluable resource for LaTeX: The Not So Short Introduction to LaTeX (or LaTeX in 139 minutes – you’ll have to read it to discover why 139).

This document held a place of esteem on my desk during my research years in UCD and I am very grateful to its author, Tobias Oetiker. I think I still have a coffee stained version somewhere in the house…

VoIP Client Twinkles Brightly on Linux

A question came up today on ILUG regarding Skype on Linux which then spill-ed over onto a conversation about VoIP clients. KPhone was mentioned which is what I have been using to date with my Blueface VoIP account. Unfortunately I can’t give KPhone a good review as I have always found it buggy, unintuitive and it crashes regularly.

The conversation reminded me of a news bite I read on KDE.news about new Linux VoIP clients that are gaining momentum. One in particular looked very promising: Twinkle. The first version of Twinkle, 0.1, was only released last month but it’s already a formidable application when compared with KPhone.

Although Twinkleuses the cross platform application development framework known as Qt (which is also the foundation of KDE), it is only compatible with Linux’s audio system. Some of the features already completed include two lines, three-way conference calls, call redirection, DTMF sopport and the G.771 and GSM audio codecs.

Some obvious features that are currently missing but that the author plans to add include an address book, a history function to log incoming and outgoing calls, instant messaging and video support. So far I’m very impressed and I have already replaced KPhone with Twinkle.

The only negative comment I have to make, and it’s not really a reflection on Twinkle, is that although the author decided to use Qt it is really a shame he didn’t go the extra step and use the KDE application framework so that it would better integrate with that desktop environment and the other KDE PIM and networking applications. No doubt Michel de Boer, the author, has his reasons – perhaps he plans to extend Twinkle‘s compatibility to other operating systems.

Timing Work Periods with KDialog, DCOP and KAlarm

Mikolaj Machowski posted an nice example of using KDialog with DCOP to the KDE Developers mailing list a while back:


#!/bin/bash

PROGRESS=$(kdialog --icon kalarm --title "Short rest" \
    --progressbar "Take a break..." 30)

if [ $PROGRESS ]; then
  for (( i=0; i<30; i++ )); do     dcop $PROGRESS setProgress $i     sleep 1   done   dcop $PROGRESS close fi

The purpose of Mikolaj's post was to suggest a method of regimenting work periods - e.g. 20 minutes on, 5 minutes off - using the above script and KAlarm, a personal alarm message, command and email scheduler. But, more than that, it shows off one of the many hiddens treasures of KDE: KDialog, which allows shell scripts to take advantage of some of the KDE widget set, and DCOP, KDE's Desktop COmmunications Protocol.

More information and a tutorial can be found at:
http://developer.kde.org/documentation/tutorials/kdialog/t1.html

Easy Listening – KRadio

I often listen to the radio in the background while working/coding and in particular I’m a bit of a news talk junky. Generally I use my TV/radio tuner card with KRadio so I can control the channel and volumes with a few simple keystrokes. Of course there’s no explaining why someone always rings during a good Matt Cooper interview or while Vincent Browne is berating yet another politician for giving an answer that’s at a right-angle to the simple question asked – but now there’s a solution on the horizon:

Ernst Martin Witte has just released KRadio 1.0 beta with a new feature that looks very promising – the ability to pause radio playback and continue it later. This is still a beta version which may explain why I’m having some difficulty getting it to work properly. While I eagerly await the final release, the good news is that the normal recording function works perfectly so I won’t miss those interviews; and it supports both Ogg/Vorbis and MP3.