Community Record
17
Posts
4
Kudos
0
Solutions
Badges
Feb 7 2024
4:23 AM
Is there a way to check the temperature of the switch via API ? I could not find it in the latest collection
... View more
Oct 17 2023
2:06 AM
I am trying to update an attributes of an SSID, i am getting this error - Failed to create the new SSID. Status code: 404 Response content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Page not found - Cisco Meraki</title> <style type="text/css"> body { .... i have verified the URL which i am trying in a browser, & it works . This means the URL is correct. https://api.meraki.com/api/v1/networks/{{networkId}}/wireless/ssids/4 import requests import json # Define the URL for creating a new SSID in your Meraki network. url = "https://api.meraki.com/api/v1/networks/{{networkId}}/wireless/ssids/4" # Replace YOUR_NETWORK_ID with your actual network ID. # Define your Meraki API key. api_key = {{key}} # Replace with your Meraki API key. # Define the headers for the request. headers = { "Content-Type": "application/json", "X-Cisco-Meraki-API-Key": api_key } # Define the JSON payload as you provided. payload = { "number": 4, "name": "test", "enabled": True, "splashPage": "Sponsored guest", "ssidAdminAccessible": False, "authMode": "open", "ipAssignmentMode": "Bridge mode", "useVlanTagging": True, "defaultVlanId": 55, "adminSplashUrl": "", "splashTimeout": "10080 minutes", "walledGardenEnabled": False, "splashGuestSponsorDomains": [ "yyy.com" ], "minBitrate": 12, "bandSelection": "Dual band operation with Band Steering", "perClientBandwidthLimitUp": 51200, "perClientBandwidthLimitDown": 51200, "perSsidBandwidthLimitUp": 0, "perSsidBandwidthLimitDown": 0, "mandatoryDhcpEnabled": False, "lanIsolationEnabled": False, "visible": True, "availableOnAllAps": True, "availabilityTags": [], "speedBurst": { "enabled": True } } # Send a POST request to create the new SSID. response = requests.post(url, headers=headers, json=payload) # Check the response status and content. if response.status_code == 201: print("New SSID created successfully.") else: print("Failed to create the new SSID. Status code:", response.status_code) print("Response content:", response.text)
... View more
Oct 16 2023
5:33 AM
I noticed we have an API to update an SSID {{base URL}}/networks/:networkid/wireless/ssids/:number :number , we need to specify the number of SSID in a scenario where an SSID exists. What should be the API call if needto create a new SSID ?
... View more
Aug 15 2023
7:00 AM
Thanks Mate, worked like a charm, i had to choose the ID's from available versions which i get it from the GET same API. sample output - : 29.6.1"}},"availableVersions":[{"id":"2369","firmware":"wireless-29-4-1","releaseType":"stable","releaseDate":"2022-10-14T18:32:32Z","shortName":"MR 29.4.1"},{"id":"2510","firmware":"wireless-29-6-1","releaseType":"stable","releaseDate":"2023-05-25T23:23:29Z","shortName":"MR 29.6.1"},{"id":"2592","firmware":"wireless-29-7","releaseType":"candidate","releaseDate":"2023-08-09T16:34:29Z","shortName":"MR 29.7"},{"id":"2537","firmware":"wireless-30-3","releaseType":"beta","releaseDate":"2023-07-07T19:41:16Z","shortName":"MR 30.3"}],"participateInNextBetaRelease":false}},"timezone":"US/Central","upgradeWindow":{"dayOfWeek":"Tue","hourOfDay":"9:00"}}' My next test would be to apply it for all networks in a single python script where i would use the get network IDS function & use it in a loop with the same API call, The only doubt i have is the timezone, since i would only keep 1 timezone, i think it should work & not require the timezone for each network since they are on diff timezones.
... View more
Aug 14 2023
2:20 AM
API Call - https://api.meraki.com/api/v1/networks/{NETWORK_ID}/firmwareUpgrades" Sample PayLoad - : payload = { "upgradeWindow": { "dayOfWeek": "monday", "hourOfDay": "5:00" }, "products": { "wireless": { "nextUpgrade": { "toVersion": { "id": "MR 29.4.1" } } }, "appliance": { "nextUpgrade": { "toVersion": { "id": "MX 17.10.8" }, "time": "" } } }, "timezone": "America/Chicago" # Corrected timezone format b'{"errors":["Unable to find version with ID: MR 29.4.1","Unable to find version with ID: MX 17.10.8"]}' Process finished with exit code 0
... View more
Jul 4 2023
4:38 AM
1 Kudo
Thanks , checking it now. I may have to set up Flask in our environment, i was looking for an API or maybe using mutiple API's but its fine. I ll learn new stuff. Anyways if you find something else please let me know
... View more
Jul 4 2023
4:13 AM
I recently encountered a very irritating issue. Users were getting disconnected for 15-20 secs atleast 3-4 times in 1 hour. Its the same with LAN & WLAN, Corp or guest network. I checked all event logs and nothing unusual was found. IDP was set to Mode - Prevention & Ruleset - Balanced. As soon as i disabled the IDP there was no issue anymore. i had encountered an issue 1.5 years back related a specific snort rule that it was blocking all M365 Traffic. But meraki announced it globally & specified which snort rule was causing this issue. But this time the meraki support has no clue about which snort rule is casing this issue or its the IDP service itself causing this issue. Friends, may you please suggest as per experience what should be my next steps as i dont want to disable it completely or change the ruleset to connectivity
... View more
Jul 4 2023
4:03 AM
Hi All, I am trying create a backup of a network with the below API . I am getting a 404. API Key, org ID & net ID are correct. Is this the correct API. may you please suggest. import requests # Define API endpoint and parameters url = "https://api.meraki.com/api/v1/organizations/{org_id}/networks/{network_id}/snapshot" headers = { "X-Cisco-Meraki-API-Key": "YOUR_API_KEY", "Content-Type": "application/json" } # Send API request response = requests.post(url, headers=headers) # Check response if response.status_code == 201: print("Backup created successfully.") # Access the backup URL from the response backup_url = response.json()["url"] print("Backup URL:", backup_url) else: print("Failed to create backup. Status code:", response.status_code)
... View more
Feb 27 2023
11:36 PM
Hi Fam, I trying to build a script which would notify me for any specific events occurred in a network. Any suggestions what event logs i should be looking for. I have a full stack meraki env with MX, MS & MR. i would like to avoid the the events which we already get notified with the meraki internal alerts. Thanks.
... View more
Feb 20 2023
12:55 AM
Hi All, I am trying to create a script to measure packet loss for from WAN links in python. The script is ready & already deployed working as expected with the logic given. In the output there are 0-4 'timeSeries'. I am a bit confused which 'timeSeries' to pick for packet loss & which is accurate. This data will shown in a graph later used for long term analysis. API - https://api.meraki.com/api/v0/organizations/{{}}/uplinksLossAndLatency?uplink=wan1&ip=8.8.8.8 Sample output - [{"networkId":"", "serial":"", "uplink":"wan1", "ip":"8.8.8.8", "timeSeries":[{"ts":"2023-01-31T11:38:20Z", "lossPercent":0.0, "latencyMs":5.7}, {"ts":"2023-01-31T11:39:20Z", "lossPercent":0.0, "latencyMs":5.9}, {"ts":"2023-01-31T11:40:19Z", "lossPercent":0.0, "latencyMs":5.8}, {"ts":"2023-01-31T11:41:20Z", "lossPercent":0.0, "latencyMs":5.9}, {"ts":"2023-01-31T11:42:20Z", "lossPercent":0.0, "latencyMs":6.1}]}
... View more
Nov 24 2020
5:31 AM
Hi All, I am very new to Dev Ops. I recently installed Postman & imported the collection & environment suggested in Learning Hubs in Cisco. https://github.com/CiscoDevNet/meraki-code Currently i have a task in hand to change the SSID password of 1 or multiple networks in the same Org. May you please suggest an API for this task?
... View more
Labels:
- Labels:
-
Dashboard API
My Top Kudoed Posts
Subject | Kudos | Views |
---|---|---|
1 | 3318 |