<?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: Prime 3.1 - Inventory CSV in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/prime-3-1-inventory-csv/m-p/3538575#M1754</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;&lt;/P&gt;&lt;P&gt;May I know how to export all scheduled report CSV file via CLI is there any step by step guide on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 07:43:20 GMT</pubDate>
    <dc:creator>Kram</dc:creator>
    <dc:date>2018-04-17T07:43:20Z</dc:date>
    <item>
      <title>Prime 3.1 - Inventory CSV</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-1-inventory-csv/m-p/3538574#M1753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in order to easily export a list of all devices/modules within a network containing the product ID and serial number we have the option to leverage the reports available within Prime Infrastructure. However sometimes it is easier to just go through the API and extract the relevant information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below you will find a short example doing exactly this. It will create a CSV containing device name, IP, product id, serial number of your inventory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Requirements:&lt;/P&gt;&lt;P&gt;- python 2&lt;/P&gt;&lt;P&gt;- requests, jsonpath, logging (&lt;SPAN style="font-family: courier new,courier;"&gt;pip2 install requests jsonpath logging&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tested with Prime 3.1.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;python GenericReportRunner.py -u root -p password mypiserverip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Result will be a deviceInventory&amp;lt;timestamp&amp;gt;.csv file in the subfolder 'reports' with following content&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;deviceId,productFamily,deviceName,ipAddress,modelNr,udiSerialNr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;123123,"Switches and Hubs","lab6880-core","10.10.10.1","C6800IA-48FPD","FOC1234567"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 16:48:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-1-inventory-csv/m-p/3538574#M1753</guid>
      <dc:creator>Stefan Honeder</dc:creator>
      <dc:date>2017-01-24T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Prime 3.1 - Inventory CSV</title>
      <link>https://community.cisco.com/t5/controllers/prime-3-1-inventory-csv/m-p/3538575#M1754</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;&lt;/P&gt;&lt;P&gt;May I know how to export all scheduled report CSV file via CLI is there any step by step guide on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 07:43:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/prime-3-1-inventory-csv/m-p/3538575#M1754</guid>
      <dc:creator>Kram</dc:creator>
      <dc:date>2018-04-17T07:43:20Z</dc:date>
    </item>
  </channel>
</rss>

