<div dir="ltr">Anthony, from my understanding, that's exactly what Variphy is doing, doing database correlation on the collected CDR records. Variphy pulls in all CDR records into a mysql database and runs queries locally vs doing any queries back to CUCM for this info.<div><br></div><div>Registered vs Unregistered info is good, but the info to gain when a phone was last used or how much usage it gets is a commonly requested feature I've seen from customers. They don't want an unused resource sitting on a desk for months on end.</div><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 13, 2017 at 12:58 PM, Anthony Holloway <span dir="ltr"><<a href="mailto:avholloway+cisco-voip@gmail.com" target="_blank">avholloway+cisco-voip@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The problem with CDR searches is that unless you script/program something, you cannot ask SQL (that I know of) for something that's not there. I.e., Show me all the records in the table you don't have a record for in the last 90 days.<div><br></div><div>So then, you would either need to do one of three things, in my estimation:</div><div><br></div><div><br></div><div>1) Search SQL one device at a time</div><div><br></div><div>Example:<br><div><br></div><div><font face="monospace">run sql car select datetimestamporigination, origdevicename, destdevicename from tbl_billing_data where date(datetimestamporigination) >= today-90 and (origdevicename = "SEP000000000001" or destdevicename = "SEP000000000001")</font></div><div><br></div><div><br></div><div>2) Dump all CDR records for phones in the last 90 days, then do a vlookup in excel on an export of your devices to see whose in the CDR report</div><div><br></div><div>Example:<br></div><div><br></div><div><u>CDR</u></div><div><font face="monospace">run sql car select datetimestamporigination, origdevicename, destdevicename from tbl_billing_data where date(datetimestamporigination) >= today-90 and (origdevicename like 'SEP%' or destdevicename like 'SEP%')</font><br></div><div><br></div><div><u>Devices</u></div><div><font face="monospace">run sql select name from device where name like "SEP%"</font></div><div><br></div><div><u>Excel</u> </div><div>Assuming you pasted CDR in columns A - C, skipped column D, and pasted Devices in column E, then used this formula in column F (headers on row 1):</div><div><br></div><div><font face="monospace">=IFNA(VLOOKUP($E2, $B:$B, 1, FALSE), VLOOKUP($E2, $C:$C, 1, FALSE))</font><br></div><div><br></div><div>The result in column F will either be the device name, if it was involved in a call in the last 90 days, or #N/A if it wasn't.</div><div><br></div><div>3) Write some code that does all the fancy bits for you </div><div><br></div><div>Sorry, no example. :(</div><div><br><div class="gmail_quote"><div><div class="h5"><div dir="ltr">On Tue, Sep 12, 2017 at 11:46 AM Ben Amick <<a href="mailto:bamick@humanarc.com" target="_blank">bamick@humanarc.com</a>> wrote:<br></div></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_4719214449112297132m_-7176045578862279216WordSection1">
<p class="MsoNormal">I assume it essentaly just goes back and finds the last record in the table relevant to that extension/device in the CDR records, right?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What’s the ballpark cost of that Variphy look like? We already have a number of custom SQL reports we export our CDR into so I don’t think I’d be able to get it for my org unless I were to front it myself or find a considerable ROI to pull
out of it. <u></u><u></u></p></div></div><div lang="EN-US" link="blue" vlink="purple"><div class="m_4719214449112297132m_-7176045578862279216WordSection1">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:#595959">Ben Amick<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:#595959">Unified Communications Analyst<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div></div><div lang="EN-US" link="blue" vlink="purple"><div class="m_4719214449112297132m_-7176045578862279216WordSection1"><p class="MsoNormal"><b>From:</b> Charles Goldsmith [mailto:<a href="mailto:wokka@justfamily.org" target="_blank">wokka@justfamily.org</a>]
<br>
<b>Sent:</b> Tuesday, September 12, 2017 12:39 PM<br>
<b>To:</b> Ben Amick <bamick@HumanArc.com><br>
<b>Cc:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> Re: [cisco-voip] Inactive Device Query?<u></u><u></u></p></div></div></div></div><div lang="EN-US" link="blue" vlink="purple"><div class="m_4719214449112297132m_-7176045578862279216WordSection1"><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Ben, you can glean this info via CDR if you archive those, but not an easy task. Variphy has a report to pull this type of info from CDR and is quite handy.<u></u><u></u></p>
</div>
</div></div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div><div><div class="h5">
<p class="MsoNormal">On Tue, Sep 12, 2017 at 11:31 AM, Ben Amick <<a href="mailto:bamick@humanarc.com" target="_blank">bamick@humanarc.com</a>> wrote:<u></u><u></u></p>
</div></div><blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div>
<div><div><div class="h5">
<p class="MsoNormal">So is there any solution for pre-12 instances for this scenario? Specifically, 9.X.<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">(That said, there’s some nifty features in v12, notably the message archiving enforcement that will be very helpful to my org)<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="color:#595959">Ben Amick</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#595959">Unified Communications Analyst</span><u></u><u></u></p>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Matthew Loraditch [mailto:<a href="mailto:MLoraditch@heliontechnologies.com" target="_blank">MLoraditch@<wbr>heliontechnologies.com</a>]
<br>
<b>Sent:</b> Tuesday, September 12, 2017 12:07 PM<br>
<b>To:</b> Ben Amick <<a href="mailto:bamick@HumanArc.com" target="_blank">bamick@HumanArc.com</a>>;
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> RE: Inactive Device Query?<u></u><u></u></p>
</div>
</div>
</div></div><div>
<div><div><div class="h5">
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Segoe UI Symbol",sans-serif;color:#1f497d"><a href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/rel_notes/12_0_1/cucm_b_release-notes-for-cucm-imp-1201/cucm_b_release-notes-for-cucm-imp-1201_chapter_00.html" target="_blank">https://www.cisco.com/c/en/us/<wbr>td/docs/voice_ip_comm/cucm/<wbr>rel_notes/12_0_1/cucm_b_<wbr>release-notes-for-cucm-imp-<wbr>1201/cucm_b_release-notes-for-<wbr>cucm-imp-1201_chapter_00.html</a></span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Segoe UI Symbol",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Segoe UI Symbol",sans-serif;color:#1f497d">Scroll to this section:
</span><u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:6.0pt;background:white;vertical-align:baseline">
<span style="font-size:18.0pt;font-family:"Arial",sans-serif;color:#39393b">New Columns to Manage Devices Efficiently</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Segoe UI Symbol",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-family:"Segoe UI Symbol",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
</div></div><div><div><div class="h5">
<p class="MsoNormal"><span style="font-size:10.0pt;color:#1f497d">Matthew G. Loraditch – CCNP-Voice, CCNA-R&S, CCDA<br>
Network Engineer<br>
Direct Voice: <a href="tel:(443)%20541-1518" target="_blank">443.541.1518</a></span><span style="color:#1f497d"><br>
</span></p></div></div><img src="cid:15e7b89ebc44ce8e91" alt="image001.jpg" style="max-width:100%"><u></u><u></u><p></p>
<p class="MsoNormal"><span style="color:#1f497d"><a href="http://cp.mcafee.com/d/k-Kr3x8Sy_tZdBdxyVKVJ55BZBcsehd79J55BZBcsY-Orhhpvuv7ffK6Qkn3hOqerTKzsSgRmlyEa9JGX3oSVsSjrlS6NJOVIsOVtUwqen-LObMUsCOUVRXBQSm4uphu76zBdN_G8FHnjlKC_OEuvkzaT0QSyrvdTVdWUVBAQsIfTdTdAVPmEBC5etSTAaRaYLxfPVlxfX4Okvte9DCRjWNR2kX4MkjY-loj-Ne5jWApvjBPqqb9EVjdwIqid40r3rjApYQg1TCpmYQg0eTYiN8SCUrW7EB_X22fW0z" target="_blank"><span style="font-size:8.0pt">Facebook</span></a></span><span style="font-size:8.0pt;color:#1f497d">
| </span><span style="color:#1f497d"><a href="http://cp.mcafee.com/d/FZsS720wrhvK-COCMNsTsSyyO-OCe78CzASyyO-OCeuvpdEEILLfzDDT3qabxEVd7dXThKr8qHaNk54SRtxIrsKr9JGX3oSVsSepsKYgd7b_nV5UsejpssWZOWrb2fcEL3zhOCU_R4kRHFGTjvVkffGhBrwqrjdLCXYCZssOOqem7XCXCOsVHkiP9C9jDYunMb-vaI0jZypJk-ItgBeNc54_fBm4_Ijxk-F6nQVsSCyOqekPob6Azh06MSQV6vd40tVClLd403J_4IidFK6-LcV0kM-0aB" target="_blank"><span style="font-size:8.0pt">Twitter</span></a></span><span style="font-size:8.0pt;color:#1f497d">
| </span><span style="color:#1f497d"><a href="http://cp.mcafee.com/d/FZsS92hJ5-XWrar35PtPqabbXaoUsyqejqabbXaoVVZASyyO-Y-euvsdEEK6zAQsTLt6VIxGIH5gkjrlS6NJOVICSHIdzrBPoVBOXN0QsLZvAnxMVdBNPHTbFII8YOyYed7arz_khjmKCHtd_BgY-F6lK1FJAS-rLOrRNPb9EVovKrKr9PCJhbcasva1nQ9gVv5RJwmMDVYGMbP-Ne5jWApvgBe9kWtlxm6ChkDlnPqFZoWxatyoa9-vaI9_oD2FZicLFOVJd5AQsFCMmd96y0dxJFOc-q80XPcHuq807r-9oArjsdARtndHh-RNMW" target="_blank"><span style="font-size:8.0pt">LinkedIn</span></a></span><span style="font-size:8.0pt;color:#1f497d">
| </span><span style="color:#1f497d"><a href="http://cp.mcafee.com/d/avndy0w738OrhvK-COCMNsTsSyyO-OCe78CzASyyO-OCeuvpdEEILLfzDDT3qabxEVd7dXThKr8qHaNk54SRtxIrsKr9JGX3oSVsSepsKYgd7b_nV5UsejpssWZOWrb2fcEL3zhOCU_R4kRHFGTjvVkffGhBrwqrodLCXYCZssOOqem7XCXCOsVHkiP5zSWshHkyv_bUQ1z3882_DOH2vS9MGvkzbWoJmAW6RjWNR2kX4MkjY-loj-Ne5jWApvjBPqqb9EVjdwIqid40r3rjApYQg1TCpmYQg0eTYiN8SCUrf6Dk" target="_blank"><span style="font-size:8.0pt">G+</span></a></span><u></u><u></u></p>
</div><span class="">
<p class="MsoNormal"><span style="font-family:"Segoe UI Symbol",sans-serif;color:#1f497d"> </span><u></u><u></u></p>
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> cisco-voip [<a href="mailto:cisco-voip-bounces@puck.nether.net" target="_blank">mailto:cisco-voip-bounces@<wbr>puck.nether.net</a>]
<b>On Behalf Of </b>Ben Amick<br>
<b>Sent:</b> Tuesday, September 12, 2017 11:56 AM<br>
<b>To:</b> <a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<b>Subject:</b> [cisco-voip] Inactive Device Query?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">I haven’t seen it mentioned before, but I feel like it’s a common thing to go through an audit old phones in the environment, but other than looking through lists of terminated
users and cross referencing active users, I can’t think of any good way to audit phones to see if they’re alive anymore, especially with softphones.
<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">In AD I would just pull a report with powershell of users/computers not logged in for >90 days, is there any comparable option in CUCM for inactive phones that you could audit against?
Like last registration date or some such?<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="color:#595959">Ben Amick</span><u></u><u></u></p>
<p class="MsoNormal"><span style="color:#595959">Unified Communications Analyst</span><u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is
not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received
this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you
</span><u></u><u></u></p>
</span></div>
</div>
</div>
</div><span class="">
<div>
<div>
<p class="MsoNormal"><br>
Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is
not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received
this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you
<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
______________________________<wbr>_________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="http://cp.mcafee.com/d/2DRPoQ96QnXLFIIcLf6XCQkmnSkNMV4QsCQkmnSkNPPX9J55BZVYsY-Urhhsd79EVLuWdPp3lpmawECSHIdzrBPpdJnor6TbCSk4bL43hO_R-j78CzB5CXTnKnjjd7d-ohsjsKqeneEyyJtdmXb_axVZicHs3jq9JMTvAhPXWrXOarxKVIDeqR4INpKNnwqj-f0T1dnoovaAVgtHBFkJkKpH9oSoGlaW2x5KATtlAumU02rjojovdwLQzh0qmXiFqFsPmiNFtd40r3rjApYQg1TCpmYQg0eTYiN8SOqejqELBb0S7zGXm" target="_blank">https://puck.nether.net/<wbr>mailman/listinfo/cisco-voip</a><u></u><u></u></p>
</span></blockquote>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div>
<br>
Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you
______________________________<wbr>_________________<span class=""><br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net" target="_blank">cisco-voip@puck.nether.net</a><br>
<a href="https://puck.nether.net/mailman/listinfo/cisco-voip" rel="noreferrer" target="_blank">https://puck.nether.net/<wbr>mailman/listinfo/cisco-voip</a><br>
</span></blockquote></div></div></div></div>
</blockquote></div><br></div></div></div>