<?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 Adding a device in Managed state in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551566#M1352</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I developed some code &lt;SPAN style="font-size: 13.3333px;"&gt;to add devices using the PUT Bulk Import API back on product version 3.0. I just started testing that code with version 3.1 of the product where I discovered a new Admin State property. When I add a device with the API, it is always added in the Un-Managed state. As a consequence, none of the properties of the device are discovered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to add a device &lt;SPAN style="font-size: 13.3333px;"&gt;in a Managed state &lt;/SPAN&gt;with the API? If not, is there an API call I can make to change the Admin State from Un-Managed to Managed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Sep 2016 16:46:15 GMT</pubDate>
    <dc:creator>smp</dc:creator>
    <dc:date>2016-09-29T16:46:15Z</dc:date>
    <item>
      <title>Adding a device in Managed state</title>
      <link>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551566#M1352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I developed some code &lt;SPAN style="font-size: 13.3333px;"&gt;to add devices using the PUT Bulk Import API back on product version 3.0. I just started testing that code with version 3.1 of the product where I discovered a new Admin State property. When I add a device with the API, it is always added in the Un-Managed state. As a consequence, none of the properties of the device are discovered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to add a device &lt;SPAN style="font-size: 13.3333px;"&gt;in a Managed state &lt;/SPAN&gt;with the API? If not, is there an API call I can make to change the Admin State from Un-Managed to Managed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 16:46:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551566#M1352</guid>
      <dc:creator>smp</dc:creator>
      <dc:date>2016-09-29T16:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a device in Managed state</title>
      <link>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551567#M1353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This service behaves like the bulk import option available in the UI.&amp;nbsp; After providing the names, addresses, and credentials a job is created.&amp;nbsp; That job moves to successful completion once all of the devices are added.&amp;nbsp; Once a device is added, Prime Infrastructure will attempt to connect to the device, collect inventory, and manage it.&amp;nbsp; If this is successful, the device's admin status will move from Un-Managed to Managed.&amp;nbsp; However, if the device is unreachable, if the credentials are incorrect, or the device is unresponsive, it will remain in the Un-Managed state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To programmatically check the device's state, you can access the data/Devices resource.&amp;nbsp; The managementStatus response parameter will show MANAGED_AND_SYNCHRONIZED and the reachability response parameter will show REACHABLE when it's successful.&amp;nbsp; Otherwise, it could show MANAGED_BUT_CONFLICTINGCREDENTIALS or some other management state, and the collectionDetail response parameter will show the reason.&amp;nbsp; For example, I initiated a job via the API to add two devices, one being a reachable device with all the correct credentials, the other being reachable but I specified some of the wrong credentials.&amp;nbsp; For the first, it has a Managed admin status in the UI and shows as MANAGED_AND_SYNCHRONIZED via the UI.&amp;nbsp; For the second, the UI shows Un-Managed, and the API shows the collectionDetail as "CLI Failure: Invalid Enable password."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:38:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551567#M1353</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2016-09-29T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a device in Managed state</title>
      <link>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551568#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for the reply Spencer. It turned out that I am testing my code against our test instance of PI which has consumed all our licenses in that environment, so none of the collections are taking place. But I only figured this out by looking at the collectionDetail status of the device as you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The frustrating part about this is that nowhere in the product GUI was I able to find this answer. The only way I could find that answer is with the API, which many customers will not know how to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, thanks again for your reply and insight. You have been really great for this community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:07:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551568#M1354</guid>
      <dc:creator>smp</dc:creator>
      <dc:date>2016-09-29T18:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a device in Managed state</title>
      <link>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551569#M1355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to see this in the UI as well.&amp;nbsp; In the Device Work Center (or what used to be called the Device Work Center, Inventory &amp;gt; Device Management &amp;gt; Network Devices), there's a collection status column that show the same information that the API response parameter does.&amp;nbsp; You just have to click the little info icon.&amp;nbsp; I don't have an instance with license limitations, but here's an example of a different type of collection failure.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="collection_status.png" class="image-1 jive-image" src="https://community.cisco.com/legacyfs/online/fusion/100563_collection_status.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:14:34 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551569#M1355</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2016-09-29T18:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a device in Managed state</title>
      <link>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551570#M1356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That column was outside my visible view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sorry about that!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:19:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/adding-a-device-in-managed-state/m-p/3551570#M1356</guid>
      <dc:creator>smp</dc:creator>
      <dc:date>2016-09-29T18:19:58Z</dc:date>
    </item>
  </channel>
</rss>

