<?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: show deployed epgs using cobra in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/4075001#M105</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/54827"&gt;@Alberto Seg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting scenario. I tried using moquery to get the data, however, I get the an error even for a single port:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;apic# moquery -c l1PhysIf -d  "topology/pod-1/node-101/sys/phys-[eth1/23]" -x "target-path=l1EthIfToEPg&amp;amp;rsp-subtree-include=full-deployment"
Error: too many values to unpack&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative to this, although not optimal - since is going the reverse way EPG -&amp;gt; port mapping, and also kinda incomplete: You can use the static path &lt;STRONG&gt;fvRsPathAtt&lt;/STRONG&gt; class, but this will only show a section of the EPGs, basically the ones which are using static mapping, and you will be missing the EPGs associated to VMM domains, or through AAEP. So you will need to cover these two corner cases individually if you have them in your environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Sergiu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 16:01:42 GMT</pubDate>
    <dc:creator>Sergiu.Daniluk</dc:creator>
    <dc:date>2020-04-27T16:01:42Z</dc:date>
    <item>
      <title>show deployed epgs using cobra</title>
      <link>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/4074954#M104</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m trying to get using a cobra python script to obtain info about deployed EPGs for a physical port on ACI fabric.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ACI GUI you can see this information for deployed EPG under fabric inventory &amp;gt; node &amp;gt; phys port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reverse engineered from the web GUI that is can be done for a single port with this call:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://{apic_address}/api/node/mo/{port_dn}.json?rsp-subtree-include=full-deployment&amp;amp;target-node=all&amp;amp;target-path=l1EthIfToEPg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see that the real information is stored in a pconsResourceCtx record, but pcons seems acording to docs "generated and used by internal processes"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to get info for this class but I cannot get anything, apic said "No Mos found"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anyone can help me?&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 15:04:56 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/4074954#M104</guid>
      <dc:creator>Alberto Seg</dc:creator>
      <dc:date>2020-04-27T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: show deployed epgs using cobra</title>
      <link>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/4075001#M105</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/54827"&gt;@Alberto Seg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting scenario. I tried using moquery to get the data, however, I get the an error even for a single port:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;apic# moquery -c l1PhysIf -d  "topology/pod-1/node-101/sys/phys-[eth1/23]" -x "target-path=l1EthIfToEPg&amp;amp;rsp-subtree-include=full-deployment"
Error: too many values to unpack&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alternative to this, although not optimal - since is going the reverse way EPG -&amp;gt; port mapping, and also kinda incomplete: You can use the static path &lt;STRONG&gt;fvRsPathAtt&lt;/STRONG&gt; class, but this will only show a section of the EPGs, basically the ones which are using static mapping, and you will be missing the EPGs associated to VMM domains, or through AAEP. So you will need to cover these two corner cases individually if you have them in your environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;Sergiu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 16:01:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/4075001#M105</guid>
      <dc:creator>Sergiu.Daniluk</dc:creator>
      <dc:date>2020-04-27T16:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: show deployed epgs using cobra</title>
      <link>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/5011209#M3260</link>
      <description>&lt;P&gt;&lt;a href="https://community.cisco.com/t5/user/viewprofilepage/user-id/54827"&gt;@Alberto Seg&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still facing the issue?All sorted?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:43:31 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/show-deployed-epgs-using-cobra/m-p/5011209#M3260</guid>
      <dc:creator>Ruben Cocheno</dc:creator>
      <dc:date>2024-02-01T15:43:31Z</dc:date>
    </item>
  </channel>
</rss>

