<?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 Switch Ports data via API in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/switch-ports-data-via-api/m-p/5429116#M4790</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there a way to get information about unicast packets for a specific switch port? &lt;/P&gt;&lt;P&gt;Via the "/devices/{serial}/switch/ports/statuses/packets" call, I can get information about total packets and also multicast and broadcast, but not about unicast. Will it always hold that the sum of unicast, broadcast and multicast will be equal to total, so can I just get it by subtracting those two from total, or is that not correct?&lt;BR /&gt;According to data collected by SNMP, it just seems to hold that unicast + multicast = total, and there are no broadcast packets reported.&lt;/P&gt;&lt;P&gt;Also, is there a way to get data for any time interval? According to API call, it should work for any interval, however it seems to work correctly only when the time interval is either 5 minutes, 15 minutes, 1 hour or 1 day and otherwise it rounds the interval to the closest one of these values..&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 07 May 2024 11:00:11 GMT</pubDate>
    <dc:creator>matusbzk_swi</dc:creator>
    <dc:date>2024-05-07T11:00:11Z</dc:date>
    <item>
      <title>Switch Ports data via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/switch-ports-data-via-api/m-p/5429116#M4790</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;is there a way to get information about unicast packets for a specific switch port? &lt;/P&gt;&lt;P&gt;Via the "/devices/{serial}/switch/ports/statuses/packets" call, I can get information about total packets and also multicast and broadcast, but not about unicast. Will it always hold that the sum of unicast, broadcast and multicast will be equal to total, so can I just get it by subtracting those two from total, or is that not correct?&lt;BR /&gt;According to data collected by SNMP, it just seems to hold that unicast + multicast = total, and there are no broadcast packets reported.&lt;/P&gt;&lt;P&gt;Also, is there a way to get data for any time interval? According to API call, it should work for any interval, however it seems to work correctly only when the time interval is either 5 minutes, 15 minutes, 1 hour or 1 day and otherwise it rounds the interval to the closest one of these values..&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2024 11:00:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/switch-ports-data-via-api/m-p/5429116#M4790</guid>
      <dc:creator>matusbzk_swi</dc:creator>
      <dc:date>2024-05-07T11:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Ports data via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/switch-ports-data-via-api/m-p/5429117#M4791</link>
      <description>&lt;P&gt;Unfortunately the answer is no to both. But in your place I would contact support to validate if there is any way to achieve what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 14:33:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/switch-ports-data-via-api/m-p/5429117#M4791</guid>
      <dc:creator>aleabrahao</dc:creator>
      <dc:date>2024-05-10T14:33:21Z</dc:date>
    </item>
  </channel>
</rss>

