<?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: Need to find phones that never got removed from the system in Management</title>
    <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021899#M4189</link>
    <description>&lt;P&gt;I am a Unix guy, so I parsed the data with awk. I don't recall that there were commas in the risport output. You might have better luck making it a txt file and importing it to excel by defining the columns as fixed.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Feb 2024 13:18:38 GMT</pubDate>
    <dc:creator>Elliot Dierksen</dc:creator>
    <dc:date>2024-02-21T13:18:38Z</dc:date>
    <item>
      <title>Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5011036#M4180</link>
      <description>&lt;P&gt;We have a lot of phones in our system that never got removed. These were phones that got replaced for one reason or another. I would like to be able to get a list of all these phones so I can begin cleaning up the system. They appear as below. I wasn't sure if this would be some sort of Axl query to get a list of these devices or a Risport query. I'd appreciate any guidance that I can get on this.&lt;/P&gt;&lt;P&gt;Real-time Device Status&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;Registration:&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;Unknown&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;IPv4 Address:&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;None&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 01 Feb 2024 12:57:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5011036#M4180</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2024-02-01T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5014261#M4181</link>
      <description>&lt;P&gt;I'm assuming this may not be possible with no responses.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 14:49:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5014261#M4181</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2024-02-07T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5014292#M4182</link>
      <description>&lt;P&gt;The phone registration and last IP can be queried via the Risport API: &lt;A href="https://developer.cisco.com/docs/sxml/#!risport70-api" target="_blank"&gt;https://developer.cisco.com/docs/sxml/#!risport70-api&lt;/A&gt;&lt;BR /&gt;However, that data there is a bit ephemeral, I believe accumuted over the last couple of days only.&amp;nbsp; For example, if you restart the cluster and check before any phones register, they would all show Unknown/None.&amp;nbsp; Or, if you used your phone 3 days ago but unplugged it, it might show as Unknown/None.&lt;BR /&gt;If you can come up with some additional criteria for how to discriminate unused/unremoved/orphan devices that may be helpful, for example phones that have no lines assigned, or no end user associated, or certain old/obsolete models, etc.&amp;nbsp; To query those details, you would be looking at the AXL API: &lt;A href="https://developer.cisco.com/docs/axl/" target="_blank"&gt;https://developer.cisco.com/docs/axl/&lt;/A&gt;&lt;BR /&gt;In a perfect world, you could maintain a database of phone registrations/sightings from Risport over some length of time (weeks), and correlate that with clues from the database/AXL to come up with a list of candidate devices for removal - that would keep false positives to a minimum.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 15:59:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5014292#M4182</guid>
      <dc:creator>dstaudt</dc:creator>
      <dc:date>2024-02-07T15:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5014368#M4183</link>
      <description>&lt;P&gt;I haven't tried the RISPORT API. When I had to do this, I used a python script to log in to the CLI of all the CM nodes, collect a risport query, and then parsed it with some shell scripts. It was a bit clunky, but it worked.&lt;/P&gt;
&lt;P&gt;Edit: this the thread where this was discussed. &lt;A href="https://community.cisco.com/t5/management/sql-for-last-known-ip/td-p/4971079" target="_self"&gt;https://community.cisco.com/t5/management/sql-for-last-known-ip/td-p/4971079&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Feb 2024 18:50:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5014368#M4183</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-02-07T18:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021581#M4188</link>
      <description>&lt;P&gt;I did a risport query on phone. Is there any reason why alot of the data is ending up under the wrong column? I copied the output from the cli into notepad and then gave it the csv extension and when I open it in Excel, I have alot of data that appears to be under the wrong column.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 23:59:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021581#M4188</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2024-02-20T23:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021899#M4189</link>
      <description>&lt;P&gt;I am a Unix guy, so I parsed the data with awk. I don't recall that there were commas in the risport output. You might have better luck making it a txt file and importing it to excel by defining the columns as fixed.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 13:18:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021899#M4189</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-02-21T13:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021902#M4190</link>
      <description>Ok, thanks for the help.&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Feb 2024 13:20:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5021902#M4190</guid>
      <dc:creator>dhoskins</dc:creator>
      <dc:date>2024-02-21T13:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find phones that never got removed from the system</title>
      <link>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5022720#M4191</link>
      <description>&lt;P&gt;I just looked at my script and there are commas in the risdb output. The problem is that the phone descriptions can have commas in them. I did some non-trivial data bludgeoning in my awk script to figure out where the values were that I needed.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 14:25:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/management/need-to-find-phones-that-never-got-removed-from-the-system/m-p/5022720#M4191</guid>
      <dc:creator>Elliot Dierksen</dc:creator>
      <dc:date>2024-02-22T14:25:02Z</dc:date>
    </item>
  </channel>
</rss>

