Cisco OID for command "show call active voice compact&q

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Jarod
Posts: 3
Joined: Mon Aug 22, 2005 3:31 am

Cisco OID for command "show call active voice compact&q

Post by Jarod »

Hi all
I have spend all the days looking for an OID equivalent to the command
"show call active voice" on a cisco to get the number of the call-legs (devided by 2) , my aim is to get the number of VOIP calls on the AS.
someone can point to a source or simply help me ? .
have looked on cisco , google , and scanned all the MIB of cisco product (calltracker,dsp,voice-call.....)
thanks :oops:
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

I know this information can get gotten from the Command line interface on the voice router, but I don't know the OID.

Have you attempted to ask Cisco TAC for an answer?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Jarod
Posts: 3
Joined: Mon Aug 22, 2005 3:31 am

Post by Jarod »

thank u rony
gonna try this (I'm in hollydays for now)
yep the info can be retrieved by (sh call active voice compact) , with the OID in a AS who do only voice it give the same number ! but in an AS who do call&ppp it give strange number (due to the calltracker think) .
the OID was : .1.3.6.1.4.1.9.9.163.1.2.1 .
think that this topic will be moved in a cisco specific forum :)
m1z4rk
Posts: 13
Joined: Mon Aug 29, 2005 7:09 pm
Location: Cayman Islands

cisco voip snmp bad...

Post by m1z4rk »

I must have gone through 50 mibs looking for this one, still no luck. I'm considering using expect to pull VoIP counters and updating Cacti from there, although I'd love to leave all that work to good ol snmp.

Anyone out there using Cacti to pull VoIP call counters? codec counters? VoIP QOS data? T.38 fax data? I'm running a Voice ISP using a Cisco BTS, AS5400s, ITPs, IPIPGWs, IADs, and SIP residential endpoints (and CallManager internally) with a lovely mix of SIP, H323, MGCP, and skinny (thank you Cisco). Anyone gotten very far on the VoIP front with these guys?

I'll post any progress I make with these devices.

Mark
***
Please note: your dreams may vary from those of the Globex corporation, its subsidiaries and stockholders
***
m1z4rk
Posts: 13
Joined: Mon Aug 29, 2005 7:09 pm
Location: Cayman Islands

bad news from TAC

Post by m1z4rk »

TAC case results posted below. I'm as TAC-weary as anyone, but she seemed pretty sure. Wouldn't an SNMP counter for "how many VoIP calls is my VoIP gateway handling" be nice? Looks like expect script time...


----------------------
Hi Mark ,

Understand you need OID that will tell the current number of connected voip calls.

There is not a single MIB variable to get the number of active calls. You will have to correlate OIDs from different MIB to get the number you want. Here is how to find the number of active calls on a particular gateway:

1. The simplest way is to poll cvVoIPCallActiveTable from CISCO-VOICE-DIAL-CONTROL-MIB, and count the number of entries that you get.

2. However, this may not be very accurate. It will be good to verify that
for each entry in cvVoIPCallActiveTable, there is an entry in
callActiveTable from DIAL-CONTROL-MIB. If not, drop those ones from the count.

3. To further refine this to distinguish between calls that are in connecting, connected or active state, you can use the callActiveCallState in callActiveTable.

This is the only way we have for now, and SNMP is only a subset of all the CLI command thus there is no total number of current connected voip calls. If you feel that this feature is very important to you, what you can do is file an enhancement request thorugh your account manager for adding this one OID in the tree.

---------------------
***
Please note: your dreams may vary from those of the Globex corporation, its subsidiaries and stockholders
***
Jarod
Posts: 3
Joined: Mon Aug 22, 2005 3:31 am

Post by Jarod »

Code: Select all

#!/bin/bash
all=`snmpwalk -v1 -c cacti 10.32.5.100 .1.3.6.1.4.1.9.9.163.1.2.1 | awk -F ':' '{print $4}'`
#echo "TOTAL : "
#echo $all
ppp=`snmpwalk -v1 -c cacti 10.32.5.100 .1.3.6.1.4.1.9.10.19.1.1.5.0 | awk -F ':' '{print $4}'`
#echo "PPP: "
#echo $ppp

call=`expr $all - $ppp `
echo $call
I know it's durty :) , I take the number in the active table then I sub the number of the active ppp session .guess that I'll not have an accurate result (session diconnecting during the script excution or call connecting ..and so on) .
If you feel that I'm wrong ........
m1z4rk
Posts: 13
Joined: Mon Aug 29, 2005 7:09 pm
Location: Cayman Islands

Post by m1z4rk »

Jarod -

My first script looked much like yours - pretty straightforward. I will add to it whenever I have extra time and post what I come up with.

Thanks,
Mark

For anyone as new to this as I was $1 is the first variable input from the
"data input method" (in this case the IP address of the as5400), $2 is the
second variable (snmp comm string), etc, etc. You can probably avoid the variable assignment and just return the value via whatever command you run, but I decided to "echo" because I will reuse the "calls" variable.

#!/bin/sh
calls=`/usr/bin/snmpwalk -On -v 1 -c $2 $1 1.3.6.1.4.1.9.9.63.1.3.2 | /bin/grep Hex | /usr/bin/wc -l`
echo "$calls"
***
Please note: your dreams may vary from those of the Globex corporation, its subsidiaries and stockholders
***
vnraic
Posts: 1
Joined: Tue Mar 27, 2012 5:20 pm

Re:

Post by vnraic »

Guys,

I know its been sometime, but your help on this thread has been much appreciated, really helped me in graphing active SIP calls.
Just a note though i used a slightly different OID -
m1z4rk wrote:Jarod -
#!/bin/sh
calls=`/usr/bin/snmpwalk -On -v 1 -c $2 $1 1.3.6.1.4.1.9.9.63.1.3.2 | /bin/grep Hex | /usr/bin/wc -l`
echo "$calls"
I found it best to use 1.3.6.1.4.1.9.9.63.1.3.2.1.1 and divide the vlaue by two bc each active call equals two entires (A & B end)..
I also corresponded this to 1.3.6.1.2.1.10.21.1.3.1.1 which more or less worked out the same..

thanks,

ivan
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests