08-29-2013 07:21 AM - edited 03-16-2019 07:06 PM
Hi,
I'm rying to set up a Monitoring System that shows me the number of active calls per serial interface.
Currently I'm able to get the number of all active calls on the Voice Gateway (using the OID 1.3.6.1.4.1.9.10.19.1.1.4.0) but I would like to have the statistics more detailed.
My preferred method is to gather the data via SNMP.
I've searched through the MIB and the Community but couldn't find an answer to my question.
Does anyone of you know if it's possible to get this information and how?
Thanks, david.
Solved! Go to Solution.
09-03-2013 07:33 AM
Hi,
For your question I did a little test w.r.t the history of calls:
The CISCO-CALL-HISTORY MIB and IF MIB can be used to get what you would like to do: you will need to build
a shell, perl, python,... script to extract the correct values:
1.3.6.1.4.1.9.9.27.1.1.3.1.4 -> "ciscoCallHistoryCalledNumber" "1.3.6.1.4.1.9.9.27.1.1.3.1.4"
/usr/bin/snmpwalk -v 1 -c
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069195477.158880 = STRING: "6900"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069199472.158881 = STRING: "6901"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069223577.158882 = STRING: "6223"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069241550.158883 = STRING: "6259"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069247704.158884 = STRING: "91763812"
then use e.g. 158880 as an index in the following list to find the interface number
"ciscoCallHistoryInterfaceNumber" "1.3.6.1.4.1.9.9.27.1.1.3.1.5"
/usr/bin/snmpwalk -v 1 –c
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069195477.158880 = INTEGER: 35
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069199472.158881 = INTEGER: 35
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069223577.158882 = INTEGER: 84
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069241550.158883 = INTEGER: 35
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069247704.158884 = INTEGER: 84
The interface number can be found polling
"ifName" "1.3.6.1.2.1.31.1.1.1.1"
/usr/bin/snmpwalk -v 1 -c
[snip]
.1.3.6.1.2.1.31.1.1.1.1.35 = STRING: Se1/0:23
.1.3.6.1.2.1.31.1.1.1.1.84 = STRING: Se1/1:23
[snip]
giving you the possibility to find the interface used by the call.
I presume that you can do the same for active calls, but I couldn't test it.
Hope this helps,
Jan
09-02-2013 02:53 AM
Hi.
IOS Version / Platform ?
Carlo
Please rate all helpful posts
"The more you help the more you learn"
09-02-2013 02:57 AM
show voice connection summary?
show voice call status
09-03-2013 07:33 AM
Hi,
For your question I did a little test w.r.t the history of calls:
The CISCO-CALL-HISTORY MIB and IF MIB can be used to get what you would like to do: you will need to build
a shell, perl, python,... script to extract the correct values:
1.3.6.1.4.1.9.9.27.1.1.3.1.4 -> "ciscoCallHistoryCalledNumber" "1.3.6.1.4.1.9.9.27.1.1.3.1.4"
/usr/bin/snmpwalk -v 1 -c
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069195477.158880 = STRING: "6900"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069199472.158881 = STRING: "6901"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069223577.158882 = STRING: "6223"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069241550.158883 = STRING: "6259"
.1.3.6.1.4.1.9.9.27.1.1.3.1.4.1069247704.158884 = STRING: "91763812"
then use e.g. 158880 as an index in the following list to find the interface number
"ciscoCallHistoryInterfaceNumber" "1.3.6.1.4.1.9.9.27.1.1.3.1.5"
/usr/bin/snmpwalk -v 1 –c
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069195477.158880 = INTEGER: 35
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069199472.158881 = INTEGER: 35
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069223577.158882 = INTEGER: 84
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069241550.158883 = INTEGER: 35
.1.3.6.1.4.1.9.9.27.1.1.3.1.5.1069247704.158884 = INTEGER: 84
The interface number can be found polling
"ifName" "1.3.6.1.2.1.31.1.1.1.1"
/usr/bin/snmpwalk -v 1 -c
[snip]
.1.3.6.1.2.1.31.1.1.1.1.35 = STRING: Se1/0:23
.1.3.6.1.2.1.31.1.1.1.1.84 = STRING: Se1/1:23
[snip]
giving you the possibility to find the interface used by the call.
I presume that you can do the same for active calls, but I couldn't test it.
Hope this helps,
Jan
09-05-2013 01:40 AM
Hi Jan,
that sounds very interesting. Thank you for your post.
I will do some testing and give you a feedback if this is what I'm looking for.
Best regards, david.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide