<?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: getDeviceSwitchPortsStatusesPackets - counters seems strange in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397476#M32</link>
    <description>&lt;P&gt;We know it's not realtime data, but some cached values held in Dashboard, perhaps in 5 minute buckets.&lt;/P&gt;&lt;P&gt;The switches will be reporting the Dashboard at some rate/latency, but that timing is not specified in the documentation.&lt;/P&gt;&lt;P&gt;Is it the switches that update Dashboard strictly every 5 minutes? or is it that Dashboard gets data from switches 'whenever', and updates the bucket values ever five minutes? how big are the buckets? are they aligned to some epoch? or do they wobble around? It's unclear.&lt;/P&gt;&lt;P&gt;In general I find it best not to rely on data for a recent point in time, or for any short period of time, like less than hours, as there's too much uncertainly, mainly due to lack of precise definitions in the documentation.&lt;/P&gt;&lt;P&gt;But as you are getting a response that less happened between now and 35 minutes ago, than happened in a 15 minute sub-interval of that 35 minutes, it seems like reason to open a support case!&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2025 18:46:04 GMT</pubDate>
    <dc:creator>sungod</dc:creator>
    <dc:date>2025-02-06T18:46:04Z</dc:date>
    <item>
      <title>getDeviceSwitchPortsStatusesPackets - counters seems strange</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397475#M31</link>
      <description>&lt;P&gt;I'm trying to understand the way the API `getDeviceSwitchPortsStatusesPackets` works.&lt;/P&gt;&lt;P&gt;I found this topic &lt;A href="https://community.meraki.com/t5/Developers-APIs/How-frequently-are-switch-port-status-packets-updated/m-p/76423" target="_blank"&gt;https://community.meraki.com/t5/Developers-APIs/How-frequently-are-switch-port-status-packets-updated/m-p/76423&lt;/A&gt; which says the counter are updated about every 5m.&lt;/P&gt;&lt;P&gt;I run a script which send request with timespan=900 for 5 times, with 15m delay between them (total time is 1h). &lt;/P&gt;&lt;P&gt;Right after it finish, the scripts run request with timespan of 1500, 1800, 2100, 2400, 2700, 3000, 3600.&lt;/P&gt;&lt;P&gt;Here is the results of the total counters from my lab:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;         Total   Sent   Received&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-------- ------ ------ ----------&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;900 #1     4208   2677       1531&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;900 #2     4283   2726       1557&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;900 #3     4197   2704       1493&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;900 #4     3807   2479       1328&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;900 #5     4201   2679       1522&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;BR /&gt;1500 25m   3989   2622       1367&lt;BR /&gt;1800 30m   3989   2622       1367&lt;BR /&gt;2100 35m   3989   2622       1367&lt;BR /&gt;2400 40m  15755  10293       5462&lt;BR /&gt;2700 45m  15755  10293       5462&lt;BR /&gt;3000 50m  15755  10293       5462  &lt;BR /&gt;3600 60m  15755  10293       5462 &lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I expected that the [&lt;FONT face="courier new,courier"&gt;1800 30m&lt;/FONT&gt;] will the summarize of [&lt;FONT face="courier new,courier"&gt;900 #4&lt;/FONT&gt;] and [&lt;FONT face="courier new,courier"&gt;900 #5&lt;/FONT&gt;], but it doesn't. It's not even close. Pay attention that the last [&lt;FONT face="courier new,courier"&gt;2100 35m&lt;/FONT&gt;] are less than the last 15m [&lt;FONT face="courier new,courier"&gt;900 #5&lt;/FONT&gt;]. &lt;STRONG&gt;Is it possible!? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I expected that the [&lt;FONT face="courier new,courier"&gt;3600 60m&lt;/FONT&gt;] will the summarize of [&lt;FONT face="courier new,courier"&gt;900 #2&lt;/FONT&gt;] till [&lt;FONT face="courier new,courier"&gt;900 #5&lt;/FONT&gt;], but it doesn't. It close, but not exactly.&lt;/P&gt;&lt;P&gt;I tested it several times, and it always strange. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Am I missing something?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 18:08:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397475#M31</guid>
      <dc:creator>Yaakov Neuman at NetOp AI</dc:creator>
      <dc:date>2025-02-06T18:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: getDeviceSwitchPortsStatusesPackets - counters seems strange</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397476#M32</link>
      <description>&lt;P&gt;We know it's not realtime data, but some cached values held in Dashboard, perhaps in 5 minute buckets.&lt;/P&gt;&lt;P&gt;The switches will be reporting the Dashboard at some rate/latency, but that timing is not specified in the documentation.&lt;/P&gt;&lt;P&gt;Is it the switches that update Dashboard strictly every 5 minutes? or is it that Dashboard gets data from switches 'whenever', and updates the bucket values ever five minutes? how big are the buckets? are they aligned to some epoch? or do they wobble around? It's unclear.&lt;/P&gt;&lt;P&gt;In general I find it best not to rely on data for a recent point in time, or for any short period of time, like less than hours, as there's too much uncertainly, mainly due to lack of precise definitions in the documentation.&lt;/P&gt;&lt;P&gt;But as you are getting a response that less happened between now and 35 minutes ago, than happened in a 15 minute sub-interval of that 35 minutes, it seems like reason to open a support case!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 18:46:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397476#M32</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2025-02-06T18:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: getDeviceSwitchPortsStatusesPackets - counters seems strange</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397477#M33</link>
      <description>&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;So actually, do you recommend to use this API only once for a hour?&lt;/P&gt;&lt;P&gt;In the beginning I thought to use it every 30m.&lt;/P&gt;&lt;P&gt;If only Meraki could support intervals for those counters... &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;By the way, I forgot to mention that I'm using REST API, not the meraki package. Does it matter?&lt;/P&gt;&lt;P&gt;p.s. I'm new here. Is there a guide how to &lt;SPAN&gt;open a support case?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 21:03:24 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397477#M33</guid>
      <dc:creator>Yaakov Neuman at NetOp AI</dc:creator>
      <dc:date>2025-02-06T21:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: getDeviceSwitchPortsStatusesPackets - counters seems strange</title>
      <link>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397478#M34</link>
      <description>&lt;P&gt;I've not used that endpoint, but I'd guess it's like others where using shorter time periods can sometimes give odd numbers.&lt;/P&gt;&lt;P&gt;Using endpoints direct or with the library should make no difference, the library is just a 'wrapper' around the same endpoints.&lt;/P&gt;&lt;P&gt;You open a support case from the Dashboard... click on ? at the top-right of the page, click "Get help &amp;amp; cases", click on the "API and webhooks" button, and there's a button on that page to submit a case.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 11:33:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/getdeviceswitchportsstatusespackets-counters-seems-strange/m-p/5397478#M34</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2025-02-07T11:33:23Z</dc:date>
    </item>
  </channel>
</rss>

