<div dir="ltr">Use the AXL API and the following SQL query to automate this:<div><br><div>select dnorpattern,description from numplan where tkpatternusage='2'</div></div><div><br></div><div>You can put "run sql" before the query to run via SSH to CUCM.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 30, 2017 at 4:45 PM, Tim Reimers <span dir="ltr"><<a href="mailto:treimers@ashevillenc.gov" target="_blank">treimers@ashevillenc.gov</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">Hi all-<div><br></div><div>In CUCM 9.12</div><div>I'm trying to figure out how to export just a few of the fields from the UCM database.</div><div>What we're after is simply the DN number, and the contents of the Description field associated with that DN</div><div><br></div><div>I've done a Phone export, and the resulting CSV is so huge it's unusable in Google Sheets.</div><div>I know I can set up an Export as a repeated schedule, but I have two questions.</div><div><br></div><div>- Can I somehow reduce the export query to a limited set of details about lines only. I don't need phone info particularly.</div><div>- Is there a way to transfer the file off the UCM environment automatically, so that it's available to another automated process that will automatically consume the resulting file and use that data? Right now, I have to manually download the export job file.</div><div><br></div><div>Thanks, Tim<br clear="all"><div><br></div>-- <br><div class="m_-4362294619693752590gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p><b><i><span lang="EN" style="color:blue;font-family:"Arial",sans-serif;font-size:10pt"><a href="https://en.wikipedia.org/wiki/Quis_custodiet_ipsos_custodes%3F" target="_blank"><span style="color:blue">Quis custodiet
ipsos </span></a></span></i></b><b><i><span style="color:blue;font-family:"Arial",sans-serif;font-size:10pt">opus
reticulatum</span></i></b><b><i><span style="color:blue;font-family:"Arial",sans-serif;font-size:10pt"></span></i></b></p>
<p>Tim Reimers</p>
<p>Network Administrator</p>
<p>I.T Services</p>
<p>City of Asheville </p>
<p><a href="mailto:treimers@ashevillenc.gov" target="_blank">treimers@ashevillenc.gov</a></p>
<p>(desk) <a href="tel:(828)%20259-5512" value="+18282595512" target="_blank">828-259-5512</a></p>
<p>(cell) <a href="tel:(828)%20552-1585" value="+18285521585" target="_blank">828-552-1585</a></p>
<p>Please do NOT use the contact information above for
unsolicited sales contacts. </p>
<p>All unsolicited sales calls > /dev/null</p></div></div></div></div>
</div></div>
<br>______________________________<wbr>_________________<br>
cisco-voip mailing list<br>
<a href="mailto:cisco-voip@puck.nether.net">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>
<br></blockquote></div><br></div>