{"id":2336,"date":"2017-02-14T13:09:20","date_gmt":"2017-02-14T13:09:20","guid":{"rendered":"http:\/\/emtunc.org\/blog\/?p=2336"},"modified":"2017-02-14T13:09:20","modified_gmt":"2017-02-14T13:09:20","slug":"cucm-snmp-active-call-stats","status":"publish","type":"post","link":"https:\/\/emtunc.org\/blog\/02\/2017\/cucm-snmp-active-call-stats\/","title":{"rendered":"CUCM SNMP Active Call Stats"},"content":{"rendered":"<p>So the title is a bit misleading but I figured it&#8217;s what most people will search if they want to get active call stats from their Cisco Unified Communications infrastructure &#8211; it&#8217;s certainly what I searched when I wanted to achieve the same thing. Turns out you can only get active call stats via SNMP from the Cisco Unified Border Element (CUBE).<\/p>\n<p>I will show you how you can get the active\u00a0incoming\/outgoing and total <span style=\"text-decoration: underline;\">external<\/span>\u00a0calls and how you can use these in PRTG to get a nice graph going of <em>Active Calls Vs Bandwidth<\/em>.<\/p>\n<p>What you\u00a0<span style=\"text-decoration: underline;\">won&#8217;t<\/span> see is the number of\u00a0<span style=\"text-decoration: underline;\">internal<\/span> calls as we are only monitoring the CUBE. Internal calls don&#8217;t touch the CUBE and as far as my research went, the CUCM server doesn&#8217;t keep track of active calls&#8230; at least not without some manipulation of OIDs.<\/p>\n<p><!--more--><\/p>\n<ol>\n<li>First we need to SSH to the CUBE and enable SNMP\n<pre class=\"lang:default decode:true\">configure terminal\r\nsnmp-server community &lt;your-community-string&gt;\r\nsnmp-server location &lt;location of CUBE&gt;\r\nsnmp-server contact &lt;contact e-mail&gt;<\/pre>\n<\/li>\n<li>Next we need the dial-peer voice numbers\/tags for the inbound and outbound calls. Do a\u00a0<strong>show running-config<\/strong> on the CUBE and look for the sections labelled\u00a0<strong>dial-peer voice &lt;number&gt;<br \/>\n<\/strong><br \/>\nYou need to figure out which of your dial-peers&#8217; match up to inbound and outbound calls. In my set-up it looks like this:<\/p>\n<pre class=\"lang:default decode:true \">dial-peer voice 10 voip\r\ndescription Outbound Dial-peer to SIP Provider\r\ntranslation-profile outgoing Outbound\r\npreference 1\r\n[...]\r\n\r\ndial-peer voice 20 voip\r\ndescription Inbound Dial-peer to CUCM\r\ntranslation-profile outgoing Inbound\r\npreference 1\r\n[...]<\/pre>\n<p>So dial-peer 10 is outbound calls and dial-peer 20 for inbound calls.<\/p>\n<p>To confirm you have the right dial-peer numbers, you can do a SNMP walk against the following OID\u00a01.3.6.1.4.1.9.9.63.1.3.8.4.1.2 &#8211; you should see only a handful of sub-OID&#8217;s &#8211; start doing a few test outbound\/inbound calls and you should see the values change.<\/li>\n<li>In PRTG add a <strong>SNMP Custom<\/strong> sensor. We&#8217;ll create two of these &#8211; one for outbound calls and another for inbound.In the OID put the following:\n<p>1.3.6.1.4.1.9.9.63.1.3.8.4.1.2.&lt;dial-plan&gt;<\/p>\n<p>It should look something like this:<\/p>\n<p><a href=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-10_56_27-Calls_-Outbound-_-Sensor-Details-_-PRTG-Network-Monitor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2419\" src=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-10_56_27-Calls_-Outbound-_-Sensor-Details-_-PRTG-Network-Monitor.png\" alt=\"\" width=\"699\" height=\"775\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-10_56_27-Calls_-Outbound-_-Sensor-Details-_-PRTG-Network-Monitor.png 699w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-10_56_27-Calls_-Outbound-_-Sensor-Details-_-PRTG-Network-Monitor-271x300.png 271w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/a><\/p>\n<p>Now do the same for outbound calls.<\/li>\n<li>Now add a <strong>Sensor Factory<\/strong> sensor in PRTG.Follow the screenshot below but note that the sensor ID&#8217;s\u00a0<strong>will<\/strong> be different in your PRTG instance.\n<p>#1:Calls: Total [Calls] &#8211; all this does is label the axis<br \/>\nchannel(5469,0) + channel(5468,0) &#8211; these are the sensor ID&#8217;s for inbound and outbound calls. You can find the sensor ID&#8217;s in the URL of the sensor.<br \/>\n#2:CUBE: Total Bandwidth Utilisation &#8211; the other axis for bandwidth<br \/>\nChannel(5448,1) &#8211; This grabs the bandwidth sensor from the CUBE and uses channel 1 which equates to traffic out.<\/p>\n<p>So basically: Channel&lt;sensorID&gt;,&lt;channelID&gt;<\/p>\n<p><a href=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_02_05-Total-Calls-Vs-Bandwidth-_-Sensor-Details-_-PRTG-Network-Monitor.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2420\" src=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_02_05-Total-Calls-Vs-Bandwidth-_-Sensor-Details-_-PRTG-Network-Monitor.png\" alt=\"\" width=\"686\" height=\"833\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_02_05-Total-Calls-Vs-Bandwidth-_-Sensor-Details-_-PRTG-Network-Monitor.png 686w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_02_05-Total-Calls-Vs-Bandwidth-_-Sensor-Details-_-PRTG-Network-Monitor-247x300.png 247w\" sizes=\"auto, (max-width: 686px) 100vw, 686px\" \/><\/a><\/li>\n<\/ol>\n<p>That&#8217;s all there is to it. I&#8217;ve only demonstrated how to do Total Calls Vs Bandwidth but you could easily to Inbound Vs Outbound, etc by playing around with the\u00a0<em>Sensor Factory<\/em> in PRTG.<\/p>\n<p><a href=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_05_12-https___prtg.ram.ac_.uk_chart.svg_typegraphgraphid2width1500height500anim.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2421\" src=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_05_12-https___prtg.ram.ac_.uk_chart.svg_typegraphgraphid2width1500height500anim.png\" alt=\"\" width=\"1916\" height=\"653\" srcset=\"https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_05_12-https___prtg.ram.ac_.uk_chart.svg_typegraphgraphid2width1500height500anim.png 1916w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_05_12-https___prtg.ram.ac_.uk_chart.svg_typegraphgraphid2width1500height500anim-300x102.png 300w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_05_12-https___prtg.ram.ac_.uk_chart.svg_typegraphgraphid2width1500height500anim-768x262.png 768w, https:\/\/emtunc.org\/blog\/wp-content\/uploads\/2017\/02\/2017-02-14-11_05_12-https___prtg.ram.ac_.uk_chart.svg_typegraphgraphid2width1500height500anim-1024x349.png 1024w\" sizes=\"auto, (max-width: 1916px) 100vw, 1916px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>So the title is a bit misleading but I figured it&#8217;s what most people will search if they want to get active call stats from their Cisco Unified Communications infrastructure &#8211; it&#8217;s certainly what I searched when I wanted to achieve the same thing. Turns out you can only get active call stats via SNMP [&hellip;]<\/p>\n","protected":false},"author":32,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[1],"tags":[256,255,245],"class_list":["post-2336","post","type-post","status-publish","format-standard","hentry","category-tech","tag-cube","tag-cucm","tag-snmp"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1trTO-BG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/2336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/comments?post=2336"}],"version-history":[{"count":3,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/2336\/revisions"}],"predecessor-version":[{"id":2425,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/posts\/2336\/revisions\/2425"}],"wp:attachment":[{"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/media?parent=2336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/categories?post=2336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emtunc.org\/blog\/wp-json\/wp\/v2\/tags?post=2336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}