<?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: Network client bandwidth usage via API in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448064#M7484</link>
    <description>&lt;P&gt;Hmm, that's quite an old issue in the post you linked, I'm surprised it's not fixed yet.&lt;/P&gt;&lt;P&gt;I suggest open a support case - if it is still not fixed, perhaps they can advise a better workaround.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2024 14:12:41 GMT</pubDate>
    <dc:creator>sungod</dc:creator>
    <dc:date>2024-10-23T14:12:41Z</dc:date>
    <item>
      <title>Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448061#M7481</link>
      <description>&lt;P&gt;Hi everyone&lt;BR /&gt;&lt;BR /&gt;I've been trying to get each network's last day bandwidth usage with &lt;SPAN&gt;&lt;STRONG&gt;getNetworkClientsBandwidthUsageHistory(NetworkId)&lt;/STRONG&gt; and &lt;U&gt;it returns a list of dict where every element represents a capture of a 20 minutes slot (73 elements for a 24h timespan)&lt;/U&gt; and if i want to get the total of upstream, downstream and total i need to sum each key of the 73 dicts to get a unique one with the 24h sum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Example: &lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[
    {
        "ts": "2024-10-21T15:40:00.000Z",
        "total": 13.733489583333334,
        "upstream": 3.972428385416667,
        "downstream": 9.761061197916666
    },
    {
        "ts": "2024-10-21T16:00:00.000Z",
        "total": 11.941809895833334,
        "upstream": 3.28517578125,
        "downstream": 8.656634114583333
    },
    {
        [...]
    },
]&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I've also tried using &lt;STRONG&gt;getOrganizationSummaryTopNetworksByStatus(OrganizationId)&lt;/STRONG&gt; that runs at an organization level and that also gives me other information i need for other functions beside the last 7 days bandiwth&lt;/P&gt;&lt;P&gt;Example from DevNet:&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;[
    {
        "networkId": "N_24329156",
        "name": "Main Office",
        "url": "https://n1.meraki.com//n//manage/nodes/list",
        "tags": [ "tag1", "tag2" ],
        "clients": {
            "counts": { "total": 72 },
            "usage": {
                "upstream": 3732658.44,
                "downstream": 983732658.87
            }
        },
        "statuses": {
            "overall": "online",
            "byProductType": [
                {
                    "productType": "wireless",
                    "counts": {
                        "online": 2,
                        "offline": 1,
                        "alerting": 0,
                        "dormant": 3
                    }
                }
            ]
        },
        "devices": {
            "byProductType": [
                {
                    "productType": "wireless",
                    "url": "https://n1.meraki.com//n//manage/nodes/new_list/000000000000"
                }
            ]
        },
        "productTypes": [
            "appliance",
            "switch",
            "wireless"
        ]
    }&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The fact is that i need to run these calls for more than three thousands networks and it takes too much time to process, expecially the one that runs at an Organization level&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;&lt;STRONG&gt;Do you know any other API I can use to get each network's banwidth usage?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 15:52:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448061#M7481</guid>
      <dc:creator>umbertocalo</dc:creator>
      <dc:date>2024-10-22T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448062#M7482</link>
      <description>&lt;P&gt;It depends on what you mean by 'network', and where you want to measure usage.&lt;/P&gt;&lt;P&gt;If, for instance, each 'network' has an MX or Z with one or more WAN connections, and you want the send/receive usage on those WAN connections, then you can use...&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-organization-appliance-uplinks-usage-by-network/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-organization-appliance-uplinks-usage-by-network/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 16:58:38 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448062#M7482</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2024-10-22T16:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448063#M7483</link>
      <description>&lt;P&gt;Hi sungod, thanks&lt;/P&gt;&lt;P&gt;I've just tried using this API since i have at least 1x MX in every network but i receive a timeout error;&lt;/P&gt;&lt;P&gt;I found this post in the community where it's suggested to use the node/shard FQDN of the client but nothing seems to change.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.meraki.com/t5/Developers-APIs/Meraki-API-timeout-after-120-seconds/m-p/130458" target="_blank"&gt;Meraki API timeout after 120 seconds - The Meraki Community&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I've also tried using the same API on another client's Org but that client had also two thousand networks and it returned the timeout error too..&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 09:29:52 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448063#M7483</guid>
      <dc:creator>umbertocalo</dc:creator>
      <dc:date>2024-10-23T09:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448064#M7484</link>
      <description>&lt;P&gt;Hmm, that's quite an old issue in the post you linked, I'm surprised it's not fixed yet.&lt;/P&gt;&lt;P&gt;I suggest open a support case - if it is still not fixed, perhaps they can advise a better workaround.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 14:12:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448064#M7484</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2024-10-23T14:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448065#M7485</link>
      <description>&lt;P&gt;You could alternatively calculate the total usage by multiplying the "average" usage with the "counts" value from this operation: &lt;A href="https://developer.cisco.com/meraki/api-v1/get-network-clients-overview/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-network-clients-overview/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;x = counts.total = total number of clients&lt;/P&gt;&lt;P&gt;y = usages.average = average usage per client&lt;/P&gt;&lt;P&gt;x * y = total client usage&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 22:56:15 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448065#M7485</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2024-10-24T22:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448066#M7486</link>
      <description>&lt;P&gt;Just dropping this here, I have a client where we connected SolarWinds to Meraki, and that's a report right out of box. It's kind of neat-o Meraki and SolarWinds work together with an API.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 22:58:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448066#M7486</guid>
      <dc:creator>Jamiegprice15</dc:creator>
      <dc:date>2024-10-24T22:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448067#M7487</link>
      <description>&lt;P&gt;HI, thanks for your reply&lt;BR /&gt;&lt;BR /&gt;It's actually a good idea but the numbers don't add up:&lt;/P&gt;&lt;P&gt;I'm collecting an &lt;STRONG&gt;11.62Mbps&lt;/STRONG&gt; usage via &lt;STRONG&gt;getNetworkClientsBandwidthUsageHistory&lt;/STRONG&gt;&lt;BR /&gt;But if i multiply &lt;SPAN&gt;&lt;STRONG&gt;getNetworkClientsOverview &lt;/STRONG&gt;&lt;/SPAN&gt;clients and average i obtain different values (13*96734)&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="umbertocalo_0-1729850097607.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/264066i212E2C526A6A0420/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;BR /&gt;&lt;BR /&gt;We also noticed that within the dashboard itself &lt;STRONG&gt;bandwidth's usage is different based on where you look for it&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="umbertocalo_0-1729872915371.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/264067iAC6080D928DE64A3/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;</description>
      <pubDate>Fri, 25 Oct 2024 16:17:18 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448067#M7487</guid>
      <dc:creator>umbertocalo</dc:creator>
      <dc:date>2024-10-25T16:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Network client bandwidth usage via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448068#M7488</link>
      <description>&lt;P&gt;I'm not sure how closely those numbers &lt;EM&gt;should &lt;/EM&gt;align, because I'm not familiar with the methods that produce the data. But it is something that you can review with Support, if you're interested.&lt;/P&gt;&lt;P&gt;If you're comparing API with GUI, then you'll need to make sure that you're using the same timespan controls on the API as on the GUI, and it's possible that you'll need to map timezones if you want them to line up (API uses UTC, org-wide data in GUI typically uses UTC, network-specific data in GUI often uses the network's configured timezone).&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 16:39:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/network-client-bandwidth-usage-via-api/m-p/5448068#M7488</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2024-10-25T16:39:20Z</dc:date>
    </item>
  </channel>
</rss>

