<div dir="ltr">Thanks for getting me going in the right direction Ryan.<div><br></div><div>Found this great blog:</div><div><a href="http://www.ucguerrilla.com/2012/03/cucm-sql-queries-series.html">http://www.ucguerrilla.com/2012/03/cucm-sql-queries-series.html</a><br>
</div><div><br></div><div>Command worked great for us:</div><div><br></div><div>run sql select <a href="http://lg.name">lg.name</a> as LineGroup, n.dnorpattern, dhd.hlog from linegroup as lg inner join linegroupnumplanmap as lgmap on lgmap.fklinegroup=lg.pkid inner join numplan as n on lgmap.fknumplan = n.pkid inner join devicenumplanmap as dmap on dmap.fknumplan=n.pkid inner join device as d on dmap.fkdevice=d.pkid inner join devicehlogdynamic as dhd on dhd.fkdevice=d.pkid order by <a href="http://lg.name">lg.name</a> <br>
</div><div><br></div><div>output ended up looking like this:</div><div><br></div><div><div>linegroup dnorpattern hlog</div><div>================================= =========== ====</div><div>3rd Floor C 3274 t</div>
<div>3rd Floor C 3274 t</div><div>3rd Floor C 3356 t</div><div>3rd Floor C 3035 t</div><div>3rd Floor C 3035 t</div>
<div>3rd Floor H 8448 f</div><div>3rd Floor H 8442 t</div><div>3rd Floor H 8836 f</div><div>3rd Floor H 8440 t</div>
<div>3rd Floor H 8407 f</div><div>EA 8231 f</div><div>EA 8832 f</div><div>EA 8832 f</div>
<div>EA 8164 t</div><div>EA 8164 f</div><div><br></div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 25, 2014 at 11:36 AM, Ryan Ratliff (rratliff) <span dir="ltr"><<a href="mailto:rratliff@cisco.com" target="_blank">rratliff@cisco.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Check out the devicehlogdynamic table.<br>
<span class="HOEnZb"><font color="#888888"><br>
-Ryan<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Mar 25, 2014, at 12:07 PM, Scott Voll <<a href="mailto:svoll.voip@gmail.com">svoll.voip@gmail.com</a>> wrote:<br>
<br>
is there a CLI SQL string that I can use to see who is "logged in" to there hunt group? We use hunt groups extensively (plus UCCx also) but they want a way to see who is logged in at any given time. Right now it's a very manual process.<br>
<br>
Thanks<br>
<br>
scott<br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>