The Meraki Community
Register or Sign in
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • About DaveRey
DaveRey

DaveRey

Here to help

Member since May 30, 2019

‎02-17-2022
Kudos from
User Count
John-K
Meraki Employee John-K
1
CptnCrnch
Kind of a big deal CptnCrnch
1
jdsilva
jdsilva
1
View All

Community Record

15
Posts
4
Kudos
0
Solutions

Badges

First 5 Posts View All
Latest Contributions by DaveRey
  • Topics DaveRey has Participated In
  • Latest Contributions by DaveRey

Re: Meraki API - Update the policy assigned to a client on the network not ...

by DaveRey in Developers & APIs
‎02-03-2022 04:12 PM
‎02-03-2022 04:12 PM
Did you get it figured out?  It's just a POST in whatever language you are using. (I use perl/curl). You POST the data as shown, "0" being the first SSID in your list in the GUI as shown above, "1" being the second etc.  POST to the client provisioning api.  I use version0 for this, I'm not sure it works in the v1 api.   Perl might look something like this: $curlstring = 'curl -H X-Cisco-Meraki-API-Key:'.$KEY.' -H Content-Type:application/json -X POST --data-binary "{\\"mac\\":\\"'.$macaddress.'\\",\\"name\\":\\"'.$computername.'\\",\\"devicePolicy\\":\\"Per connection\\",\\"policiesBySsid\\":{\\"0\\":{\\"devicePolicy\\":\\"Blocked\\"},\\"1\\":{\\"devicePolicy\\":\\"Whitelisted\\"}}}" https://api.meraki.com/api/v0/networks/N_12345etc890/clients/provision'; $result = `$curlstring`; But what ever way you post it, just be sure to post it to the wireless network your client is in just as if you are "provisioning" it.   Don't know if that helps, or makes it worse 😋 Cheers ... View more

Re: Disable URL filter between VLANs?

by DaveRey in Security / SD-WAN
‎02-22-2021 04:27 AM
‎02-22-2021 04:27 AM
Well, the event log is telling me that it's dropping the connection due to user defined black list... so yeah, pretty sure. 🙂 I don't think there is anyway to fix this. IPS, URL filters and the like seem to apply to all traffic in all directions. I wish we could control these in the firewall policy.  I guess it's a feature request. ... View more

Disable URL filter between VLANs?

by DaveRey in Security / SD-WAN
‎02-19-2021 07:38 AM
‎02-19-2021 07:38 AM
I have a group policy that blocks * in the url filters and only allows specific urls. I have clients from VLAN2 and VLAN3 in that group policy. I need to allow IP Address based URLs between VLAN2 and VLAN3  I.e. http://1.2.3.4 OR,  disable the URL filter between the local vlans.   Any ideas? Thanks! ... View more

Re: Meraki API - Update the policy assigned to a client on the network not ...

by DaveRey in Developers & APIs
‎06-01-2020 06:24 PM
1 Kudo
‎06-01-2020 06:24 PM
1 Kudo
I don't know if this got solved for any of you folks, but I found the proper format to send a client per SSID policy. Maybe this will help someone that finds this... took me awhile to get it.    Make sure to have the correct number of SSIDs definded.   { "policiesBySsid": { "0": { "devicePolicy": "Blocked" }, "1": { "devicePolicy": "Whitelisted" }, "2": { "devicePolicy": "Blocked" } }, "mac": "00:aa:bb:11:22:aa", "name": "Test", "devicePolicy": "Per connection" }   ... View more

Re: Dashboard URLs

by DaveRey in Developers & APIs
‎02-27-2020 01:17 PM
‎02-27-2020 01:17 PM
Well... reply to my own reply... I see that I can get a list of all the network EID's but I can't figure out how to do it from a script/api. I use Perl and Curl for my api access and it works great for me, but I haven't been able to use it get things from the dashboard website itself. Meaning stuff you have to be logged in to get. So I have to log in to get the Org JSON data, then save that locally and use the local data for my scripts. So of course it will be out of date as soon as we add or remove a network in our org. I don't really want to switch to python if I don't have to. Remember when being a network admin/designer didn't require advanced knowledge of web scripting? 😉 ... View more

Re: Dashboard URLs

by DaveRey in Developers & APIs
‎02-26-2020 01:55 PM
1 Kudo
‎02-26-2020 01:55 PM
1 Kudo
Silly me... a little more searching and I would have found it... doh   https://developer.cisco.com/meraki/build/deep-links/   ... View more

Re: Dashboard URLs

by DaveRey in Developers & APIs
‎02-26-2020 01:48 PM
‎02-26-2020 01:48 PM
Did this ever get an answer?  I'd like to link to a device status page, but don't see any info about generating the URL. Cheers   ... View more

Re: API GET request include "Notes" property?

by DaveRey in Developers & APIs
‎07-12-2019 08:16 AM
‎07-12-2019 08:16 AM
Thanks for that! I'm using Perl with json module and cURL to get the data. So up until now I haven't been looking at the headers at all.   CURL -i  will show the headers and it does indeed have the link with the last tag. So I'll add that to the bag of tricks for any other pages that have the 1000 limit.  I've only come across it on the org/devices so far and I did notice that the last serial in the returned json array was the "marker" and if I asked for after that I got the next 1000.   Looking at the headers is something I didn't think of.   Cheers! ... View more

Re: API GET request include "Notes" property?

by DaveRey in Developers & APIs
‎07-04-2019 07:42 AM
‎07-04-2019 07:42 AM
Hi, and thanks.  Yes, I've got several scripts where I pull all the networks, or the inventory depending on what I'm doing with the script.  I was writing a script to show all the notes and reset them if I choose.  Pulling from the /devices endpoint I only had to do 1 get (or so I thought).  I'm using perl::json so it's super easy to just check to see if there are less than 1000 elements in the array and if so, do another get with the last serial number pulled.   It was just a surprise to see that by default, the get /devices didn't pull everything, and it makes me wonder if any other endpoints are like that. Just something to be watchful for.   Cheers!     ... View more

Re: API GET request include "Notes" property?

by DaveRey in Developers & APIs
‎07-03-2019 11:14 AM
‎07-03-2019 11:14 AM
I'm actually looking for info about the "perPage" issue with networks/{networkId}/devices It will only return 1000 devices. There is supposed to be  a way to ask for more pages, but with an API we shouldn't have to.   I'm also looking to mass edit notes and the /devices endpoint won't list them all (I have over 2000 devices).   --edit--   So there is a "startingAfter" parameter that will accept a serial number as an identifier. You just have to give it the last serial number in the previous GET and it will carry on from there... networks/{networkId}/devices?startingAfter=QABC-1234-5678   ... View more

Re: Last week this worked... UpdateGroupPolicies with ContentFiltering

by DaveRey in Developers & APIs
‎06-26-2019 08:43 AM
1 Kudo
‎06-26-2019 08:43 AM
1 Kudo
Awesome!  "Just keep swimming, just keep swimming.."  🙂 ... View more

Re: Last week this worked... UpdateGroupPolicies with ContentFiltering

by DaveRey in Developers & APIs
‎05-30-2019 10:15 AM
‎05-30-2019 10:15 AM
Yeah, I guess so.  It's too bad, it saved me a lot of clicks last time I had to up date all my GP's. ... View more

Re: Last week this worked... UpdateGroupPolicies with ContentFiltering

by DaveRey in Developers & APIs
‎05-30-2019 09:50 AM
‎05-30-2019 09:50 AM
Yes, I was able to apply content filtering settings to a numbered group policy.   *I never said it was documented. 😉    I just have a strong need for that, and it worked when I tried it.  I only tried it because when I did a GET on the group policies they DID include content filtering.  Now they don't.   This is what I got 2 weeks ago when I did the GET on /groupPolicies/100 {"groupPolicyId":100, "name":"Trust", "scheduling": {"enabled":false, "monday": {"active":true, "from":"00:00", "to":"24:00"}, "tuesday": {"active":true, "from":"00:00", "to":"24:00"}, "wednesday": {"active":true, "from":"00:00", "to":"24:00"}, "thursday": {"active":true, "from":"00:00", "to":"24:00"}, "friday": {"active":true, "from":"00:00", "to":"24:00"}, "saturday": {"active":true, "from":"00:00", "to":"24:00"}, "sunday": {"active":true, "from":"00:00", "to":"24:00"}}, "bandwidth": {"settings":"network default", "bandwidthLimits": {"limitUp":null, "limitDown":null}}, "firewallAndTrafficShaping": {"settings":"network default", "trafficShapingRules":[], "l3FirewallRules":[], "l7FirewallRules":[]}, "contentFiltering": {"allowedUrlPatterns": {"settings":"override", "patterns":["statflow.com", "google.com"' "yellowpages.ca", "411.ca"]}, "blockedUrlPatterns": {"settings":"override", "patterns":[".ca", ".com", ".pw"]}, "blockedUrlCategories": {"settings":"override", "categories":["meraki:contentFiltering/category/11", "meraki:contentFiltering/category/64", "meraki:contentFiltering/category/56", "meraki:contentFiltering/category/62", "meraki:contentFiltering/category/25"]}}}     ... View more

Re: Last week this worked... UpdateGroupPolicies with ContentFiltering

by DaveRey in Developers & APIs
‎05-30-2019 08:52 AM
‎05-30-2019 08:52 AM
Thanks, yes, I'm able to get and change the name of the GP, so my get and put are correct.   About 2 weeks ago, when I GOT my GP, it showed the content filtering allowed sites.   Now when I do the same GET it does not show those settings at all.  😞     ... View more

Last week this worked... UpdateGroupPolicies with ContentFiltering

by DaveRey in Developers & APIs
‎05-30-2019 08:30 AM
‎05-30-2019 08:30 AM
Last week I was able to update a group policy content filtering rule.  Either I have forgotten something over the weekend, or something changed?  This is the json I'm trying to get to work. {"groupPolicyId":101, "name":"test101", "contentFiltering":{ "allowedUrlPatterns":{"settings":"override","patterns":["whynot.com","shouldwork.org"]}, "blockedUrlPatterns":{"settings":"override","patterns":["frustrated.com","meraki.net"]} }, "blockedUrlCategories": {"settings":"override", "categories":["meraki:contentFiltering/category/11", "meraki:contentFiltering/category/64", "meraki:contentFiltering/category/56", "meraki:contentFiltering/category/62", "meraki:contentFiltering/category/59"] } } ... View more
Labels:
  • Labels:
  • Dashboard API
Kudos from
User Count
John-K
Meraki Employee John-K
1
CptnCrnch
Kind of a big deal CptnCrnch
1
jdsilva
jdsilva
1
View All
My Top Kudoed Posts
Subject Kudos Views

Re: Meraki API - Update the policy assigned to a client on the network not ...

Developers & APIs
1 2772

Re: Dashboard URLs

Developers & APIs
1 6213

Re: Last week this worked... UpdateGroupPolicies with ContentFiltering

Developers & APIs
1 2665
View All
Powered by Khoros
custom.footer.
  • Community Guidelines
  • Cisco Privacy
  • Khoros Privacy
  • Privacy Settings
  • Terms of Use
© 2023 Meraki