<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieve associatedDevices with listLine in Management</title>
    <link>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513848#M1420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I can confirm that&lt;/P&gt;&lt;P&gt;- 1st request doesn't works for user with just an UDP.&lt;/P&gt;&lt;P&gt;- 2nd request provide inconsistent result.&lt;/P&gt;&lt;P&gt;- 3rd request works well for user with only a CSF, only a UDP, a CSF and a UDP (with same or different number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for records if it can help someone else in the future&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;SELECT numplan.dnorpattern, device.name, enduser.userid FROM numplan INNER JOIN devicenumplanmap ON numplan.pkid=devicenumplanmap.fknumplan INNER JOIN device ON devicenumplanmap.fkdevice=device.pkid INNER JOIN enduserdevicemap ON device.pkid=enduserdevicemap.fkdevice INNER JOIN enduser ON enduserdevicemap.fkenduser=enduser.pkid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems the best in a CFS+EM environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Nov 2015 12:20:09 GMT</pubDate>
    <dc:creator>lpsnetwork</dc:creator>
    <dc:date>2015-11-06T12:20:09Z</dc:date>
    <item>
      <title>Retrieve associatedDevices with listLine</title>
      <link>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513844#M1416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing the following request&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&lt;SPAN&gt;&amp;lt;soapenv:Envelope xmlns:soapenv="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://schemas.xmlsoap.org/soap/envelope/" rel="nofollow" target="_blank"&gt;http://schemas.xmlsoap.org/soap/envelope/&lt;/A&gt;&lt;SPAN&gt;" xmlns:ns="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.cisco.com/AXL/API/8.5" rel="nofollow" target="_blank"&gt;http://www.cisco.com/AXL/API/8.5&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Header/&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;soapenv:Body&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ns:listLine&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;searchCriteria&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;routePartitionName&amp;gt;DN_W&amp;lt;/routePartitionName&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/searchCriteria&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;returnedTags&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;associatedDevices&amp;gt;&amp;lt;/associatedDevices&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;pattern&amp;gt;&amp;lt;/pattern&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/returnedTags&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/ns:listLine&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/soapenv:Body&amp;gt;&lt;/P&gt;&lt;P style="font-size: 10px; font-family: Monaco; color: #ffffff; background-color: #000000;"&gt;&amp;lt;/soapenv:Envelope&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does return all the DN with the pattern field, but I don't get the list of associatedDevices, I also tried&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ffffff; font-family: Monaco; font-size: 10px; background-color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;associatedDevices&amp;gt;&amp;lt;device&amp;gt;&amp;lt;/device&amp;gt;&amp;lt;/associatedDevices&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goals is to get all numbers with associate device (UDP in my case), then for each UDP use getDeviceProfile to retrieve the login associated to the phone number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be it could be easier with a SQL Query but I've no idea of which table I could use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 19:34:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513844#M1416</guid>
      <dc:creator>lpsnetwork</dc:creator>
      <dc:date>2015-11-05T19:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve associatedDevices with listLine</title>
      <link>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513845#M1417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm getting the same results you are.&amp;nbsp; I think you may have stumbled on a defect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to look into how to do it with a SQL query and get back to you.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 20:56:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513845#M1417</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-11-05T20:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve associatedDevices with listLine</title>
      <link>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513846#M1418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hopefully this query showing the relationships between tables will get you started.&amp;nbsp; Here's a query to find the device name for the line pattern "3000".&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select name from device INNER JOIN devicenumplanmap ON devicenumplanmap.fkdevice=device.pkid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN numplan ON devicenumplanmap.fknumplan=numplan.pkid&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE numplan.dnorpattern='3000'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 22:18:01 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513846#M1418</guid>
      <dc:creator>npetrele</dc:creator>
      <dc:date>2015-11-05T22:18:01Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve associatedDevices with listLine</title>
      <link>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513847#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been able to retrieve link between numbers and user with the three following requests&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT numplan.dnorpattern, device.name, enduser.userid FROM numplan INNER JOIN devicenumplanmap ON numplan.pkid=devicenumplanmap.fknumplan INNER JOIN device ON devicenumplanmap.fkdevice=device.pkid INNER JOIN enduser ON device.fkenduser=enduser.pkid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT numplan.dnorpattern, enduser.userid FROM numplan INNER JOIN endusernumplanmap ON numplan.pkid=endusernumplanmap.fknumplan INNER JOIN enduser ON endusernumplanmap.fkenduser=enduser.pkid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT numplan.dnorpattern, device.name, enduser.userid FROM numplan INNER JOIN devicenumplanmap ON numplan.pkid=devicenumplanmap.fknumplan INNER JOIN device ON devicenumplanmap.fkdevice=device.pkid INNER JOIN enduserdevicemap ON device.pkid=enduserdevicemap.fkdevice INNER JOIN enduser ON enduserdevicemap.fkenduser=enduser.pkid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first one seems to return only DN of users with CSF or DN associate to a phone. If I remove "INNER JOIN enduser ON device.fkenduser=enduser.pkid" I do get both device (CSF &amp;amp; UDP - when both exist of course) but the fkenduser=NULL on the UDP. May be it's because we use EM. So it doesn't seems to be a good idea as I guess I would miss numbers if i have user without CSF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second one seems to work well for my particular need. I'm not sure how the link is performed and what could be the result if a user has only a CSF or only a UDP. And what would be the result if a user has different number on CSF &amp;amp; UDP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The third one seems the most complete and return a line by CSF &amp;amp; UDP. So i guess it works 100% even if one user has different number on CSF &amp;amp; UDP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll make more test tomorrow to test my hypothesis and result with different kind of users (UDP only, CSF only, different number on UDP &amp;amp; CSF). In the meantime if you have any advice you're very welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: for the listLine not returning the devices, do you suggest to open a ticket to TAC ?&lt;/P&gt;&lt;P&gt;(not sure if they will process as we don't have any devnet subscription)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 00:24:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513847#M1419</guid>
      <dc:creator>lpsnetwork</dc:creator>
      <dc:date>2015-11-06T00:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve associatedDevices with listLine</title>
      <link>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513848#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I can confirm that&lt;/P&gt;&lt;P&gt;- 1st request doesn't works for user with just an UDP.&lt;/P&gt;&lt;P&gt;- 2nd request provide inconsistent result.&lt;/P&gt;&lt;P&gt;- 3rd request works well for user with only a CSF, only a UDP, a CSF and a UDP (with same or different number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for records if it can help someone else in the future&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial; font-size: 12px;"&gt;SELECT numplan.dnorpattern, device.name, enduser.userid FROM numplan INNER JOIN devicenumplanmap ON numplan.pkid=devicenumplanmap.fknumplan INNER JOIN device ON devicenumplanmap.fkdevice=device.pkid INNER JOIN enduserdevicemap ON device.pkid=enduserdevicemap.fkdevice INNER JOIN enduser ON enduserdevicemap.fkenduser=enduser.pkid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems the best in a CFS+EM environment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Nov 2015 12:20:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/retrieve-associateddevices-with-listline/m-p/3513848#M1420</guid>
      <dc:creator>lpsnetwork</dc:creator>
      <dc:date>2015-11-06T12:20:09Z</dc:date>
    </item>
  </channel>
</rss>

