<?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 About Network usage in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449517#M7688</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have been collecting data usage using &lt;STRONG&gt;Meraki Dashboard API&lt;/STRONG&gt; for a month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the usage I collected is too different from Meraki Dashboard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which API should I use to get the usage on the two screens below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;  1) View all networks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;     &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gwangjin_0-1617695783174.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/262468i57E14CEE3AC3B44E/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;&lt;SPAN&gt;  2) Network-wide → Clients&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;     &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gwangjin_1-1617695824841.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/262469iA9F9BBCA40F5B060/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;&lt;SPAN&gt;The APIs I currently use are 'Get_Network_traffic' and 'Get_Network_Client'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can help me, please reply.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 07:57:48 GMT</pubDate>
    <dc:creator>gwangjin.park</dc:creator>
    <dc:date>2021-04-06T07:57:48Z</dc:date>
    <item>
      <title>About Network usage</title>
      <link>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449517#M7688</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have been collecting data usage using &lt;STRONG&gt;Meraki Dashboard API&lt;/STRONG&gt; for a month.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the usage I collected is too different from Meraki Dashboard.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Which API should I use to get the usage on the two screens below?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;  1) View all networks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;     &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gwangjin_0-1617695783174.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/262468i57E14CEE3AC3B44E/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;&lt;SPAN&gt;  2) Network-wide → Clients&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;     &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gwangjin_1-1617695824841.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/262469iA9F9BBCA40F5B060/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;&lt;SPAN&gt;The APIs I currently use are 'Get_Network_traffic' and 'Get_Network_Client'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you can help me, please reply.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 07:57:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449517#M7688</guid>
      <dc:creator>gwangjin.park</dc:creator>
      <dc:date>2021-04-06T07:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: About Network usage</title>
      <link>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449518#M7689</link>
      <description>&lt;P&gt;Based on what I see on some of our demo networks, the network usage figure on the Organization-&amp;gt;Overview is the sum of all traffic over seven days, probably a cached value rather than real time, i.e. updated on some schedule, not when the page is redrawn.&lt;/P&gt;&lt;P&gt;You could use &lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-network-traffic" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-network-traffic&lt;/A&gt; with timespan set to 604800 then simply sum the &lt;EM&gt;sent&lt;/EM&gt; and &lt;EM&gt;recv&lt;/EM&gt; for each application.&lt;/P&gt;&lt;P&gt;Note that this call requires traffic analysis with hostname visibility to be enabled on the network(s) you want to get data for.&lt;/P&gt;&lt;P&gt;I just tested it on one of our lab networks...&lt;/P&gt;&lt;P&gt;Sum of API data 48,986,330 KB&lt;/P&gt;&lt;P&gt;Figure in overview 46.84 GB, it's lower, but if it is a cached value that would be expected.&lt;/P&gt;&lt;P&gt;Btw my experience is that trying to externally match figures displayed by orchestrator screens (not only Meraki) is often futile...&lt;/P&gt;&lt;P&gt;i) The orchestrator is unlikely to be using the external API, nor the basis of internal calculations publicly documented.&lt;/P&gt;&lt;P&gt;ii) The orchestrator may not be showing the correct numbers anyway! There's a non-Cisco orchestrator that has been misreporting traffic for years, by &lt;EM&gt;huge&lt;/EM&gt; amounts, both in its user interface and in what is accessed via API, it took a while before the vendor accepted our evidence, even longer to find the cause and fix it.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 08:20:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449518#M7689</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2021-04-07T08:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: About Network usage</title>
      <link>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449519#M7690</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, should I understand that I can't get exactly the same value as Meraki Dashboard using API?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 02:41:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449519#M7690</guid>
      <dc:creator>gwangjin.park</dc:creator>
      <dc:date>2021-04-12T02:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: About Network usage</title>
      <link>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449520#M7691</link>
      <description>&lt;P&gt;Well, you &lt;EM&gt;could&lt;/EM&gt; get the same value, but to do that you would need to take your sample at the same time(s) that the Overview figures are calculated, I'd guess this is done daily. &lt;/P&gt;&lt;P&gt;But unless you happen to take a sample at the same time, the API will always get a result that is equal or greater than shown in Overview due to usage since the daily sample.&lt;/P&gt;&lt;P&gt;This assumes all my guesses about how it works are close enough &lt;SPAN class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 07:28:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/about-network-usage/m-p/5449520#M7691</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2021-04-12T07:28:20Z</dc:date>
    </item>
  </channel>
</rss>

