<?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 get-network-device-list.py tabulate issue with switch stack in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584094#M1137</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to the world of coding but have an extensive background with Cisco.&amp;nbsp; I've recently installed APIC-EM to see what it can do.&amp;nbsp; I found the 'get-network-device-list.py' in the learning labs to be very practical.&amp;nbsp; I tweaked the device_list within the python script to get '[item["hostname"],item["managementIpAddress"],item["serialNumber"],item["platformId"],item["softwareVersion"]' as these are values I'd like to see.&amp;nbsp; Using tabulate makes this information easily transportable to an excel doc. I was really excited about this until I added a switch stack.&amp;nbsp; No more nice columns.&amp;nbsp; Each switch in the stack provides a "serialNumber" along with "platformId" for that one respective device item.&amp;nbsp; This throws off the nice column flow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm posting here to see if anyone has run into this yet and/or can offer some advice to get me going in the correct direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any assistance!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 12:27:59 GMT</pubDate>
    <dc:creator>edward ventura</dc:creator>
    <dc:date>2019-03-01T12:27:59Z</dc:date>
    <item>
      <title>get-network-device-list.py tabulate issue with switch stack</title>
      <link>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584094#M1137</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to the world of coding but have an extensive background with Cisco.&amp;nbsp; I've recently installed APIC-EM to see what it can do.&amp;nbsp; I found the 'get-network-device-list.py' in the learning labs to be very practical.&amp;nbsp; I tweaked the device_list within the python script to get '[item["hostname"],item["managementIpAddress"],item["serialNumber"],item["platformId"],item["softwareVersion"]' as these are values I'd like to see.&amp;nbsp; Using tabulate makes this information easily transportable to an excel doc. I was really excited about this until I added a switch stack.&amp;nbsp; No more nice columns.&amp;nbsp; Each switch in the stack provides a "serialNumber" along with "platformId" for that one respective device item.&amp;nbsp; This throws off the nice column flow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm posting here to see if anyone has run into this yet and/or can offer some advice to get me going in the correct direction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance for any assistance!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 12:27:59 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584094#M1137</guid>
      <dc:creator>edward ventura</dc:creator>
      <dc:date>2019-03-01T12:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: get-network-device-list.py tabulate issue with switch stack</title>
      <link>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584095#M1138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your code is fine, just resize you terminal window to make it wider&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 00:07:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584095#M1138</guid>
      <dc:creator>yawming</dc:creator>
      <dc:date>2016-04-29T00:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: get-network-device-list.py tabulate issue with switch stack</title>
      <link>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584096#M1139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmmm, I don't have a stack with which to test.&amp;nbsp; Can you post the output of the APIC-EM JSON (maybe from Swagger under the "API" link at the top of the APIC-EM pages) for such a network-device?&amp;nbsp; I think maybe you're saying the platformId is a list rather than one value?&amp;nbsp; The resulting output of your script showing the stack output would also be helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 00:24:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/get-network-device-list-py-tabulate-issue-with-switch-stack/m-p/3584096#M1139</guid>
      <dc:creator>Joe Clarke</dc:creator>
      <dc:date>2016-04-29T00:24:14Z</dc:date>
    </item>
  </channel>
</rss>

