<?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: Find Network Client in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440396#M6328</link>
    <description>&lt;P&gt;It doesn't say you can &lt;STRONG&gt;&lt;EM&gt;search&lt;/EM&gt;&lt;/STRONG&gt; by MAC or IP.&lt;/P&gt;&lt;P&gt;What I see here...&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-network-client/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-network-client/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is "&lt;SPAN&gt;Return the client&lt;STRONG&gt; associated with the given identifier&lt;/STRONG&gt;. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You must give the client key as a mandatory argument&lt;/STRONG&gt;, you cannot give MAC or IP. I think the rest could be worded better.&lt;/P&gt;&lt;P&gt;Edit: re-reading, I think it reads ambiguously. I'm also on holiday now, so not really set up for testing, plus it's beer time &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt; I suggest do a search for the MAC of a current client you know to be active and if it isn't found, open a support case and ask.&lt;/P&gt;&lt;P&gt;As &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/13291"&gt;@Raphletourn&lt;/A&gt; says, if you want to search by MAC, use the other call, though MAC randomisation may mean some device families are not reliably identifiable this way.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2024 19:57:07 GMT</pubDate>
    <dc:creator>sungod</dc:creator>
    <dc:date>2024-07-30T19:57:07Z</dc:date>
    <item>
      <title>Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440390#M6322</link>
      <description>&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am testing out the Get Network Client option under networks - monitor - clients.&lt;/P&gt;&lt;P&gt;The only I can get this to work is if I search ID value which looks to be a system id. I tried IP (I have Track by IP selected), tried MAC address, and Description but all come back with Not Found error. Below is what I have which was cut and paste right from the API page.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-python"&gt;&lt;CODE&gt;import meraki

API_KEY = '&amp;lt;my API&amp;gt;'

dashboard = meraki.DashboardAPI(API_KEY)

network_id = '&amp;lt;my id&amp;gt;'

client_id = '10.204.14.95'

response = dashboard.networks.getNetworkClient(

    network_id, client_id

)

print(response)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Here is the output I get&lt;/P&gt;&lt;P&gt;2024-07-29 14:18:31 meraki: INFO &amp;gt; Meraki dashboard API session initialized with these parameters: {'version': '1.46.0', 'api_key': '************************************55b7', 'base_url': '&lt;A href="https://api.meraki.com/api/v1" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1&lt;/A&gt;', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'network_delete_retry_wait_time': 240, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None, 'use_iterator_for_get_pages': False}&lt;BR /&gt;2024-07-29 14:18:31 meraki: INFO &amp;gt; GET &lt;A href="https://api.meraki.com/api/v1/networks/N_755478837491402474/clients/10.204.14.95" target="_blank" rel="nofollow noopener noreferrer"&gt;https://api.meraki.com/api/v1/networks/N_755478837491402474/clients/10.204.14.95&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;2024-07-29 14:18:32 meraki: ERROR &amp;gt; networks, getNetworkClient - 404 Not Found, b'&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtm" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtm&lt;/A&gt;'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "/mnt/m2ssd/python/client_find_test.py", line 16, in &amp;lt;module&amp;gt;&lt;BR /&gt;response = dashboard.networks.getNetworkClient(&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/local/lib/python3.11/dist-packages/meraki/api/networks.py", line 473, in getNetworkClient&lt;BR /&gt;return self._session.get(metadata, resource)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/local/lib/python3.11/dist-packages/meraki/rest_session.py", line 306, in get&lt;BR /&gt;response = self.request(metadata, 'GET', url, params=params)&lt;BR /&gt;^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^&lt;BR /&gt;File "/usr/local/lib/python3.11/dist-packages/meraki/rest_session.py", line 300, in request&lt;BR /&gt;raise APIError(metadata, response)&lt;BR /&gt;meraki.exceptions.APIError: networks, getNetworkClient - 404 Not Found, &amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtmplease" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtmplease&lt;/A&gt; wait a minute if the key or org was just newly created.&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 18:20:17 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440390#M6322</guid>
      <dc:creator>Ed Roche</dc:creator>
      <dc:date>2024-07-29T18:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440391#M6323</link>
      <description>&lt;P&gt;If you are trying to find a client via it's MAC , you should use this endpoint : &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;&lt;P&gt;client_id is an ID used to identify a client. If you don't know the ID , you can't use getNetworkClient. You would have to use getNetworkClients to get a list of clients from that network.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 18:27:10 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440391#M6323</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2024-07-29T18:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440392#M6324</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/13291"&gt;@Raphletourn&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thanks for the response, the page for Get Network Client says we can search on MAC, IP or Client Key. Is that a miss print?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-29 143300.jpg" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpeg"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263954i1ED6511595E79104/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 18:33:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440392#M6324</guid>
      <dc:creator>Ed Roche</dc:creator>
      <dc:date>2024-07-29T18:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440393#M6325</link>
      <description>&lt;P&gt;Ummmm ! I'm not sure , I would have to test after my vacations. Maybe  our friend &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/1069"&gt;@jscorb&lt;/A&gt;  knows the answer for that one.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 19:32:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440393#M6325</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2024-07-29T19:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440394#M6326</link>
      <description>&lt;P&gt;So a bit of a bend on this one because I like using APIs... but just hooked up our Meraki to SolarWinds- it's looking pretty handy to look up mac addresses.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 20:58:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440394#M6326</guid>
      <dc:creator>Jamiegprice15</dc:creator>
      <dc:date>2024-07-29T20:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440395#M6327</link>
      <description>&lt;P&gt;&lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/40128"&gt;@Jamiegprice15&lt;/A&gt; yeah  unfortunately our branch offices have their routing done on the MX there so since MX don’t provide ARP info in SNMP we can’t get the full info for the desktop users at those locations. For our HQ users we can get that info but would love to just be able to have all out admin tasks in one big script. This will keep our desktop support and help desk out of some stuff they really don’t need access to.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 22:25:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440395#M6327</guid>
      <dc:creator>Ed Roche</dc:creator>
      <dc:date>2024-07-29T22:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440396#M6328</link>
      <description>&lt;P&gt;It doesn't say you can &lt;STRONG&gt;&lt;EM&gt;search&lt;/EM&gt;&lt;/STRONG&gt; by MAC or IP.&lt;/P&gt;&lt;P&gt;What I see here...&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.cisco.com/meraki/api-v1/get-network-client/" target="_blank" rel="noopener nofollow noreferrer"&gt;https://developer.cisco.com/meraki/api-v1/get-network-client/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is "&lt;SPAN&gt;Return the client&lt;STRONG&gt; associated with the given identifier&lt;/STRONG&gt;. Clients can be identified by a client key or either the MAC or IP depending on whether the network uses Track-by-IP.&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You must give the client key as a mandatory argument&lt;/STRONG&gt;, you cannot give MAC or IP. I think the rest could be worded better.&lt;/P&gt;&lt;P&gt;Edit: re-reading, I think it reads ambiguously. I'm also on holiday now, so not really set up for testing, plus it's beer time &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt; I suggest do a search for the MAC of a current client you know to be active and if it isn't found, open a support case and ask.&lt;/P&gt;&lt;P&gt;As &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/13291"&gt;@Raphletourn&lt;/A&gt; says, if you want to search by MAC, use the other call, though MAC randomisation may mean some device families are not reliably identifiable this way.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 19:57:07 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440396#M6328</guid>
      <dc:creator>sungod</dc:creator>
      <dc:date>2024-07-30T19:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440397#M6329</link>
      <description>&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-07-30 165325.jpg" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.jpeg"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/263957i56B074811BB88F3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.jpeg" alt="image.jpeg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;Yeah that works but the one reason I would this is to find were a certain device is plugged into a switch. I don't see that info in the output though.&lt;/P&gt;&lt;P&gt;*Edit&lt;/P&gt;&lt;P&gt;I found the field but it comes back as None.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2024 20:49:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440397#M6329</guid>
      <dc:creator>Ed Roche</dc:creator>
      <dc:date>2024-07-30T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440398#M6330</link>
      <description>&lt;P&gt;Looking at the output , this is expected since MX do not have "real" switchports &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;</description>
      <pubDate>Tue, 30 Jul 2024 22:16:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440398#M6330</guid>
      <dc:creator>Raphael_L</dc:creator>
      <dc:date>2024-07-30T22:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find Network Client</title>
      <link>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440399#M6331</link>
      <description>&lt;P&gt;That's true, our branches don't have Meraki switches yet but it does work when searching a MAC that is plugged into a Meraki switch. DUH&lt;SPAN class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 18:34:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/find-network-client/m-p/5440399#M6331</guid>
      <dc:creator>Ed Roche</dc:creator>
      <dc:date>2024-07-31T18:34:29Z</dc:date>
    </item>
  </channel>
</rss>

