Graphing Pri Voice line usage on a Cisco 6513 running CatOS
Requires Net::Telnet::Cisco
There is no snmp command to show the number of lines being used on PRIs on a 6513 CatOS. The CatOS command to see this is
"show port voice active"
Since I am better at Shell scripts than PERL, I wrap my perl script in a shell script so I can awk the output and get the data I want. Feel free to email me a perl scrip that can do the awk for better efficiency, and I'll post it here.
Script locations: /opt/Scripts/
Script 1 (the Perl script)
Perl script to get data from 6513
Script 2 (the wrapper script)
This would be the script we run, that will run the perl script then parse the output for the data we want
Rename to voice-script.sh
Perl script to get data from 6513
MRTG cfg setup
#############################################################
# Voice Line usage
######
Title[192.168.99.120-pri]: Voice Line Usage
MaxBytes[192.168.99.120-pri]: 46
Options[192.168.99.120-pri]: gauge, nopercent, absolute, growright,noo
Target[192.168.99.120-pri]: `/opt/Scripts/voice-script.sh`
PageTop[192.168.99.120-pri]: Voice Line Usage on 2 PRI's (46 Calls Max)
YLegend[192.168.99.120-pri]: Calls active
ShortLegend[192.168.99.120-pri]: calls
WithPeak[192.168.99.120-pri]: ymwd
#-------------------------------------------------------------------
Note: We currently have 2 PRIs for voice, since each PRI gives us 23 voice lines (24-1 for control) that is 46 total. Feel free to modify this value to match your number of lines/PRIs
johnb at unixsamurai dot com