<?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: Interface configuration in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539376#M1576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The port channel exists on the switch, not in Prime.&lt;/P&gt;&lt;P&gt;go to the switch and run the following&lt;/P&gt;&lt;P&gt;sh interface description (if it was labeled with description)&lt;/P&gt;&lt;P&gt;sh etherchannel summary (to see what port channel the interfaces belong to ad what the port channel number is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 18:04:08 GMT</pubDate>
    <dc:creator>vrostowsky</dc:creator>
    <dc:date>2017-04-17T18:04:08Z</dc:date>
    <item>
      <title>Interface configuration</title>
      <link>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539375#M1575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm working with the api of the cisco prime and I need to get the number of a port-channel that a physical interface is on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interface GigabitEthernet1/1&lt;/P&gt;&lt;P&gt; switchport&lt;/P&gt;&lt;P&gt; switchport trunk encapsulation dot1q&lt;/P&gt;&lt;P&gt; switchport trunk allowed vlan 11,99,254,425-427,500,600&lt;/P&gt;&lt;P&gt; switchport mode trunk&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #ff0000;"&gt;channel-group 10 mode active&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been looking the cisco prime api documentation and I haven't found any way to get this information. Does anyone know how to get it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 15:28:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539375#M1575</guid>
      <dc:creator>tmkobayashi</dc:creator>
      <dc:date>2017-04-17T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interface configuration</title>
      <link>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539376#M1576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The port channel exists on the switch, not in Prime.&lt;/P&gt;&lt;P&gt;go to the switch and run the following&lt;/P&gt;&lt;P&gt;sh interface description (if it was labeled with description)&lt;/P&gt;&lt;P&gt;sh etherchannel summary (to see what port channel the interfaces belong to ad what the port channel number is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vince&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 18:04:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539376#M1576</guid>
      <dc:creator>vrostowsky</dc:creator>
      <dc:date>2017-04-17T18:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Interface configuration</title>
      <link>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539377#M1577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thiago,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe the API has a resource that returns this information unfortunately.&amp;nbsp; I've forwarded your feature request to our product management team &lt;IMG src="https://community.cisco.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 17:10:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539377#M1577</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2017-04-19T17:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Interface configuration</title>
      <link>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539378#M1578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't work for Cisco so I'm not sure if I can post but here so far it's letting me so I'll keep going.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way of getting that port-channel number would be to extract the switch config and parse the info yourself, using regex to match that config line.&lt;/P&gt;&lt;P&gt;If you want to do it that way, use the ConfigVersions API with the deviceName of the switch (or whatever other identifier) to get the config ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-link-external-small"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;primeUrl&amp;gt;/webacs/api/v1/data/ConfigVersions?deviceName=&amp;lt;deviceName&amp;gt;&amp;amp;isLast=true&amp;amp;.full=true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "isLast=true" part will get the most recently collected config in the instance there are multiple stored configs.&lt;/P&gt;&lt;P&gt;If your configs are being saved by Prime, your returned tree data should include fileInfos like the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;fileInfos&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileInfo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileId&amp;gt;4742337804&amp;lt;/fileId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileState&amp;gt;STARTUPCONFIG&amp;lt;/fileState&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileType&amp;gt;TEXT&amp;lt;/fileType&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fileInfo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileInfo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileId&amp;gt;4742337803&amp;lt;/fileId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileState&amp;gt;RUNNINGCONFIG&amp;lt;/fileState&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;fileType&amp;gt;TEXT&amp;lt;/fileType&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/fileInfo&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/fileInfos&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The "fileInfos" contain the fileIds of the running and startup configs. Grab the number of whichever you'd prefer and then use that with the extractSanitizedFile API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="jive-link-external-small"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;primeUrl&amp;gt;/webacs/api/v1/op/configArchiveService/extractSanitizedFile?fileId=4742337804&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The returned fileData is a straight text dump of the device's config. You can download it yourself as XML by default or JSON if you add ".json" to the url's path. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So &lt;/SPAN&gt;&lt;SPAN class="jive-link-external-small"&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;primeUrl&amp;gt;/webacs/api/v1/op/configArchiveService/extractSanitizedFile.json?fileId=4742337804&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 04:36:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/interface-configuration/m-p/3539378#M1578</guid>
      <dc:creator>leesa9char</dc:creator>
      <dc:date>2017-05-04T04:36:13Z</dc:date>
    </item>
  </channel>
</rss>

