<?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: Swichport RSTP State in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433652#M5444</link>
    <description>&lt;P&gt;I don't know the answer.&lt;/P&gt;&lt;P&gt;This seems the closest - but it doesn't show that field in the example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports-statuses" target="_self" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports-statuses&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It does have an "Errors" and "Warnings" array - perhaps it might appear in there.&lt;/P&gt;&lt;P&gt;The other potential - ugly - way might be to retrieve the event log.  Look for a log entry saying the port is blocked, that is not matched by a more recent entry saying that it is forwarding again.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 19:19:17 GMT</pubDate>
    <dc:creator>Philip D'Ath</dc:creator>
    <dc:date>2023-03-29T19:19:17Z</dc:date>
    <item>
      <title>Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433647#M5439</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Is it possible via any endpoint to get the RSTP state ?&lt;/P&gt;&lt;P&gt;I can see it from the dashboard : &lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaphaelL_0-1680115072428.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263003i2D391E3747574BE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;( Which should be Discarding and not Blocking since this is based on RSTP and not 802.1D &lt;SPAN class="lia-unicode-emoji" title=":thinking_face:"&gt;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/SPAN&gt; ) &lt;/P&gt;&lt;P&gt;The only way I was able to get something similar is via the port status Warnings : 'BPDU guard activated, STP &lt;STRONG&gt;discarding&lt;/STRONG&gt; packets'&lt;/P&gt;&lt;P&gt;Thanks ! &lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 18:39:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433647#M5439</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2023-03-29T18:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433648#M5440</link>
      <description>&lt;P&gt;What device is connected to that port? Because rstp can fall back to stp&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:00:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433648#M5440</guid>
      <dc:creator>ww^</dc:creator>
      <dc:date>2023-03-29T19:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433649#M5441</link>
      <description>&lt;P&gt;For purposes , I have looped my own switch. Eg : Port 2 into Port 3&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:01:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433649#M5441</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2023-03-29T19:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433650#M5442</link>
      <description>&lt;P&gt;Hmm i thought it might be a indication of that. &lt;/P&gt;&lt;P&gt;But apparently not &lt;SPAN class="lia-unicode-emoji" title=":face_with_tongue:"&gt;&lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:07:47 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433650#M5442</guid>
      <dc:creator>ww^</dc:creator>
      <dc:date>2023-03-29T19:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433651#M5443</link>
      <description>&lt;P&gt;A couple of calls return at least enabled state true/false, for instance &lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports&lt;/A&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;...
    "rstpEnabled": true,
    "stpGuard": "disabled",
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Might be worth trying it to see what you get, as the documentation often shows just a limited example of possible return data.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:11:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433651#M5443</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2023-03-29T19:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433652#M5444</link>
      <description>&lt;P&gt;I don't know the answer.&lt;/P&gt;&lt;P&gt;This seems the closest - but it doesn't show that field in the example:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports-statuses" target="_self" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-device-switch-ports-statuses&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It does have an "Errors" and "Warnings" array - perhaps it might appear in there.&lt;/P&gt;&lt;P&gt;The other potential - ugly - way might be to retrieve the event log.  Look for a log entry saying the port is blocked, that is not matched by a more recent entry saying that it is forwarding again.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:19:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433652#M5444</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-03-29T19:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433653#M5445</link>
      <description>&lt;P&gt;It returns the actual configuration of the RSTP instead of the status &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But tbh I do think that Meraki is presenting the RSTP state on the dashboard at the wrong place. It is shadowing the configuration with the status : &lt;/P&gt;&lt;DIV class=""&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaphaelL_1-1680118684309.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263008i7589DD007A50AD43/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So that's maybe why there are no endpoints that returns that info.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:38:49 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433653#M5445</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2023-03-29T19:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Swichport RSTP State</title>
      <link>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433654#M5446</link>
      <description>&lt;P&gt;That is actually the most clever ( and only ) way that I have found so far ! &lt;/P&gt;&lt;P&gt;I'm trapping these cases with the switch port statuses endpoint at the moment.&lt;/P&gt;&lt;P&gt;Warnings:[ 'BPDU guard activated, STP discarding packets']&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 19:40:06 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/swichport-rstp-state/m-p/5433654#M5446</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2023-03-29T19:40:06Z</dc:date>
    </item>
  </channel>
</rss>

