<?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 Devices in Projects - stale entries in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/devices-in-projects-stale-entries/m-p/3474062#M1124</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm writing a script which creates a PnP project populating it with devices based on assigned tags. You can't add a device to a project if it is present in an existing project, also the only way I can find to 'reset' a device and get it's state into PENDING is to delete the pnp-device object (there doesn't seem to be an applicable state you can assign via the PUT /pnp-device API call).&lt;/P&gt;&lt;P&gt;So after removing all my PnP projects and believing I have deleted all relevant PnP devices, I'm left in this strange state:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pnp.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/112473_pnp.png" style="width: 620px; height: 180px;" /&gt;&lt;/P&gt;&lt;P&gt;How can I have 50 devices in projects when none exist?&lt;/P&gt;&lt;P&gt;Clearly my API calls have caused some confusion to APIC-EM, but where does it get the number of 50 from?&lt;/P&gt;&lt;P&gt;Incidentally GET /pnp-device/count gives a result of 11, and listing them with GET /pnp-device , all of them were added to APIC-EM via discovery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Seb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:41:35 GMT</pubDate>
    <dc:creator>Seb Rupik</dc:creator>
    <dc:date>2019-03-01T12:41:35Z</dc:date>
    <item>
      <title>Devices in Projects - stale entries</title>
      <link>https://community.cisco.com/t5/controllers/devices-in-projects-stale-entries/m-p/3474062#M1124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm writing a script which creates a PnP project populating it with devices based on assigned tags. You can't add a device to a project if it is present in an existing project, also the only way I can find to 'reset' a device and get it's state into PENDING is to delete the pnp-device object (there doesn't seem to be an applicable state you can assign via the PUT /pnp-device API call).&lt;/P&gt;&lt;P&gt;So after removing all my PnP projects and believing I have deleted all relevant PnP devices, I'm left in this strange state:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pnp.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/112473_pnp.png" style="width: 620px; height: 180px;" /&gt;&lt;/P&gt;&lt;P&gt;How can I have 50 devices in projects when none exist?&lt;/P&gt;&lt;P&gt;Clearly my API calls have caused some confusion to APIC-EM, but where does it get the number of 50 from?&lt;/P&gt;&lt;P&gt;Incidentally GET /pnp-device/count gives a result of 11, and listing them with GET /pnp-device , all of them were added to APIC-EM via discovery.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Seb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:41:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/devices-in-projects-stale-entries/m-p/3474062#M1124</guid>
      <dc:creator>Seb Rupik</dc:creator>
      <dc:date>2019-03-01T12:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Devices in Projects - stale entries</title>
      <link>https://community.cisco.com/t5/controllers/devices-in-projects-stale-entries/m-p/3474063#M1125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've got a little further...&lt;/P&gt;&lt;P&gt;GET /pnp-search with a 'state': 'PENDING' parameter, shows me all 50 devices with a 'site' value refernecing a non-existent project.&lt;/P&gt;&lt;P&gt;Using the serialNumber of a device and GET /pnp-device I retrieve the pnp-device ID which I used with DELETE /pnp-device/{deviceId}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has done something to APIC-EM as after deleting one device it now looks like:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pnp2.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/112494_pnp2.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Still, it would be good if APIC-EM did a sanity check to see if projects referenced by pnp-device objects actually existed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 09:51:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/devices-in-projects-stale-entries/m-p/3474063#M1125</guid>
      <dc:creator>Seb Rupik</dc:creator>
      <dc:date>2017-10-25T09:51:18Z</dc:date>
    </item>
  </channel>
</rss>

