<?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 SQL for Last Known IP in Management</title>
    <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971079#M4161</link>
    <description>&lt;P&gt;Hi, I am trying to write a SQL query for the device name, last active, and last known IP address. However, IP address is not showing. The phones do show their IP addresses in CUCM. What can I do to fix this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tryingtodomyjob_0-1701708463176.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/204013iF973B9DDA849DDF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tryingtodomyjob_0-1701708463176.png" alt="tryingtodomyjob_0-1701708463176.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Dec 2023 16:49:39 GMT</pubDate>
    <dc:creator>tryingtodomyjob</dc:creator>
    <dc:date>2023-12-04T16:49:39Z</dc:date>
    <item>
      <title>SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971079#M4161</link>
      <description>&lt;P&gt;Hi, I am trying to write a SQL query for the device name, last active, and last known IP address. However, IP address is not showing. The phones do show their IP addresses in CUCM. What can I do to fix this?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tryingtodomyjob_0-1701708463176.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/204013iF973B9DDA849DDF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tryingtodomyjob_0-1701708463176.png" alt="tryingtodomyjob_0-1701708463176.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 16:49:39 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971079#M4161</guid>
      <dc:creator>tryingtodomyjob</dc:creator>
      <dc:date>2023-12-04T16:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971165#M4162</link>
      <description>&lt;P&gt;AFAIK the &lt;STRONG&gt;registrationdynamice&lt;/STRONG&gt; table is only supposed to work for IP addresses as of CUCM 12.5SU2+ (corrected)..even so I have not had much luck in getting it to show more than a few phone IPs.&lt;/P&gt;
&lt;P&gt;The Risport70 web API is designed for this kind of registration/IP query, and would be the route I would recommend, since it's supported for all extant CUCM versions: &lt;A href="https://developer.cisco.com/docs/sxml/#!risport70-api" target="_blank" rel="noopener"&gt;https://developer.cisco.com/docs/sxml/#!risport70-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Some samples in this repo: &lt;A href="https://github.com/CiscoDevNet/serviceability-python-zeep-samples" target="_blank" rel="noopener"&gt;https://github.com/CiscoDevNet/serviceability-python-zeep-samples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:47:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971165#M4162</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-12-04T19:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971166#M4163</link>
      <description>&lt;P&gt;According to this post,&amp;nbsp;&lt;A href="https://community.cisco.com/t5/management/which-table-of-cucm-db-store-the-ip-address-of-ip-phones/td-p/4093213" target="_blank"&gt;Solved: Which table of CUCM DB store the IP address of IP Phones？ - Cisco Community&lt;/A&gt;&amp;nbsp;It said 12.5SU2+.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:11:51 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971166#M4163</guid>
      <dc:creator>tryingtodomyjob</dc:creator>
      <dc:date>2023-12-04T19:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971184#M4164</link>
      <description>&lt;P&gt;Ah, you are correct...I've edited my post.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Dec 2023 19:48:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4971184#M4164</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-12-04T19:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4972439#M4165</link>
      <description>&lt;P&gt;I don't see&amp;nbsp;&lt;SPAN&gt;Risport70 web API able to search by and display the DevicePool information.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 14:40:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4972439#M4165</guid>
      <dc:creator>tryingtodomyjob</dc:creator>
      <dc:date>2023-12-06T14:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4972511#M4166</link>
      <description>&lt;P&gt;I have used the CLI commands "show risdb query [phone|gateway|sip]" and then scraped what I needed from the text output. That worked for me on CUCM 10.5 and 12.5.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 16:07:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4972511#M4166</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2023-12-06T16:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: SQL for Last Known IP</title>
      <link>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4972613#M4167</link>
      <description>&lt;P&gt;This is true...you would need to use AXL &lt;STRONG&gt;&amp;lt;getPhone&amp;gt;&lt;/STRONG&gt; to obtain the device pool of a given phone: &lt;A href="https://pubhub.devnetcloud.com/media/axl-schema-reference/docs/Files/AXLSoap_getPhone.html#Link698" target="_blank"&gt;https://pubhub.devnetcloud.com/media/axl-schema-reference/docs/Files/AXLSoap_getPhone.html#Link698&lt;/A&gt;&lt;BR /&gt;The AXL &lt;STRONG&gt;&amp;lt;listPhone&amp;gt;&lt;/STRONG&gt; request allows searching for phone by device pool: &lt;A href="https://developer.cisco.com/docs/axl-schema-reference/" target="_blank"&gt;https://developer.cisco.com/docs/axl-schema-reference/&lt;/A&gt;&lt;BR /&gt;So the workflow could be something like:&lt;BR /&gt;* Obtain a list of phones for a particular device pool via AXL &lt;STRONG&gt;&amp;lt;listPhone&amp;gt;&lt;/STRONG&gt;&lt;BR /&gt;* Retrieve the RIS status of the devices via Risport70 &lt;STRONG&gt;&amp;lt;SelectCmDeviceExt&amp;gt;&lt;/STRONG&gt;, with &lt;STRONG&gt;&amp;lt;SelectBy&amp;gt;Name&amp;lt;/SelectBy&amp;gt;&lt;/STRONG&gt; providing each phone device name as an &lt;STRONG&gt;&amp;lt;Item&amp;gt;&lt;/STRONG&gt; entry&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2023 18:54:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/sql-for-last-known-ip/m-p/4972613#M4167</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2023-12-06T18:54:55Z</dc:date>
    </item>
  </channel>
</rss>

