<?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: Global dashboard search via API in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410798#M1920</link>
    <description>&lt;P&gt;To close this topic out, this is what I've done -&lt;/P&gt;&lt;P&gt;- create a python spark bot that's hosted on Google App Engine&lt;/P&gt;&lt;P&gt;- grabbed the Meraki python SDK from github&lt;/P&gt;&lt;P&gt;- mangled it a bit to run in python 2.7 instead of 3&lt;/P&gt;&lt;P&gt;- added data models and storage functions from GAE&lt;/P&gt;&lt;P&gt;- modified the Meraki SDK functions to check if the network/device/client they're retrieving already exists in the datastore&lt;/P&gt;&lt;P&gt;- created some jobs that run on a schedule in the background to renew the networks/devices/clients&lt;/P&gt;&lt;P&gt;- created some query functions that allow you to find a client's details by IP or MAC.&lt;/P&gt;&lt;P&gt;Now I can find a client's details from slack and response time is ~1 second from 12k+ clients, 20 networks and 345 devices.&lt;/P&gt;&lt;P&gt;Next on my list is to allow updating of the client's policy from slack.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2018 17:22:19 GMT</pubDate>
    <dc:creator>Dave Lewis</dc:creator>
    <dc:date>2018-02-22T17:22:19Z</dc:date>
    <item>
      <title>Global dashboard search via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410795#M1917</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've checked the dashboard API docs and searched on this forum but can't find a way of emulating the global search functionality of the HTTPS dashboard (where you can search for a client at the top of the dashboard across all networks), has anyone managed this?&lt;/P&gt;&lt;P&gt;Currently my very clunky way of finding a client MAC via IP is:&lt;/P&gt;&lt;P&gt;1) Get list of networks&lt;/P&gt;&lt;P&gt;2) for each network get list of devices&lt;/P&gt;&lt;P&gt;3) for each device get list of clients&lt;/P&gt;&lt;P&gt;Obviously I could cache these results and refresh them periodically.&lt;/P&gt;&lt;P&gt;Which is very slow in comparison to the global search. &lt;/P&gt;&lt;P&gt;I tried inspecting the calls and results that the dashboard makes when you search (e.g. &lt;SPAN&gt;&lt;A href="https://dashboard.meraki.com/o/XXYYZZ/manage/dashboard/live_search_react?query=%2F00c0) " target="_blank" rel="nofollow noopener noreferrer"&gt;https://dashboard.meraki.com/o/XXYYZZ/manage/dashboard/live_search_react?query=%2F00c0) &lt;/A&gt;&lt;/SPAN&gt;and replicated in postman but it just returns the login page.&lt;/P&gt;&lt;P&gt;So has anyone got any suggestions on implementing a global search or a faster way of finding a client's MAC address from their IP in any network?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:19:08 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410795#M1917</guid>
      <dc:creator>Dave Lewis</dc:creator>
      <dc:date>2018-02-13T14:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard search via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410796#M1918</link>
      <description>&lt;P&gt;Dave-&lt;/P&gt;&lt;P&gt;I have a script that will find users based on MAC or IP address.  Its slow, but if you are going network by network in the dashboard, this is easier.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/steinbep/Meraki-API---Python/blob/master/find_machine.py" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/steinbep/Meraki-API---Python/blob/master/find_machine.py&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:06:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410796#M1918</guid>
      <dc:creator>psteinbe</dc:creator>
      <dc:date>2018-02-13T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard search via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410797#M1919</link>
      <description>&lt;P&gt;Thanks for this, it looks like you're following the same process of searching networks then devices and finally clients. Maybe that is the only option so I'll have to look at storing the data and refreshing periodically.&lt;/P&gt;&lt;P&gt;I might also try setting the timestamp to 8 hours instead of 24 to speed things up.&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:19:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410797#M1919</guid>
      <dc:creator>Dave Lewis</dc:creator>
      <dc:date>2018-02-13T15:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard search via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410798#M1920</link>
      <description>&lt;P&gt;To close this topic out, this is what I've done -&lt;/P&gt;&lt;P&gt;- create a python spark bot that's hosted on Google App Engine&lt;/P&gt;&lt;P&gt;- grabbed the Meraki python SDK from github&lt;/P&gt;&lt;P&gt;- mangled it a bit to run in python 2.7 instead of 3&lt;/P&gt;&lt;P&gt;- added data models and storage functions from GAE&lt;/P&gt;&lt;P&gt;- modified the Meraki SDK functions to check if the network/device/client they're retrieving already exists in the datastore&lt;/P&gt;&lt;P&gt;- created some jobs that run on a schedule in the background to renew the networks/devices/clients&lt;/P&gt;&lt;P&gt;- created some query functions that allow you to find a client's details by IP or MAC.&lt;/P&gt;&lt;P&gt;Now I can find a client's details from slack and response time is ~1 second from 12k+ clients, 20 networks and 345 devices.&lt;/P&gt;&lt;P&gt;Next on my list is to allow updating of the client's policy from slack.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 17:22:19 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410798#M1920</guid>
      <dc:creator>Dave Lewis</dc:creator>
      <dc:date>2018-02-22T17:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard search via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410799#M1921</link>
      <description>&lt;P&gt;For posterity: &lt;A href="https://developer.cisco.com/meraki/api-v1/#!get-organization-clients-search" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/#!get-organization-clients-search&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 19:37:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410799#M1921</guid>
      <dc:creator>John-on-API</dc:creator>
      <dc:date>2022-03-01T19:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Global dashboard search via API</title>
      <link>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410800#M1922</link>
      <description>&lt;P&gt;I rewrited python script for search asset by IP in 2024: &lt;A href="https://github.com/ilcomix/meraki_search_from_ip/blob/main/meraki_search_from_ip.py" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/ilcomix/meraki_search_from_ip/blob/main/meraki_search_from_ip.py&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 16:16:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/global-dashboard-search-via-api/m-p/5410800#M1922</guid>
      <dc:creator>andrea-comignani</dc:creator>
      <dc:date>2024-09-26T16:16:43Z</dc:date>
    </item>
  </channel>
</rss>

