Community Record
21
Posts
8
Kudos
0
Solutions
Badges
Sep 26 2024
9:09 AM
2 Kudos
Hi Matq, You can add the following to your script: import certifi cert_path = certifi.where() Then add this cert_path while creating AsyncDashboardAPI object: async with meraki.aio.AsyncDashboardAPI( api_key, maximum_concurrent_requests=3, maximum_retries=10, print_console=True, suppress_logging=False, certificate_path=cert_path, <<<<<< cert_path added here >>> requests_proxy=https_proxy_server ) as dashboard:
... View more
Aug 29 2024
9:26 PM
4 Kudos
Thanks, Would like to Thank Gandhi Racharla and Niraj Gadhe (from Cisco) for helping on this.
... View more
Aug 29 2024
9:22 PM
2 Kudos
Hi Philip, Thanks for the response. The issue got resolved after adding certificate_path async with meraki.aio.AsyncDashboardAPI(api_key, maximum_concurrent_requests=1, maximum_retries=4, print_console=True, suppress_logging=False, certificate_path='certificate/path' It seems that the issue is related to this bug - aiohttp module -https://github.com/aio-libs/aiohttp/issues/955 Thanks & Regards, Lalana
... View more
Aug 28 2024
7:10 AM
Hi KH, From postman it works fine, we are using a python script which uses async api calls, pasting the code snippet here: async def main_async(api_key, ORG_ID, operations, tag😞 global DEVICES, NETWORKS, TEMPLATES async with meraki.aio.AsyncDashboardAPI(api_key, maximum_concurrent_requests=1, maximum_retries=4, print_console=True, suppress_logging=False) as dashboard: # Backup org await asyncio.gather(backup_org(dashboard, ORG_ID, operations), backup_devices(dashboard, ORG_ID, operations, DEVICES), backup_networks(dashboard, ORG_ID, operations, NETWORKS + TEMPLATES), backup_mr_ssids(dashboard, operations, ORG_ID, NETWORKS + TEMPLATES))
... View more
Aug 28 2024
2:59 AM
Hi Team, We are getting the following errors for the Meraki API endpoint GET calls. I am posting some of the sample calls here. INFO - GET https://api.meraki.com/api/v1/organizations/1413157 WARNING - organizations, getOrganization > https://api.meraki.com/api/v1/organizations/1413157 - Cannot connect to host api.meraki.com:443 ssl:default [Network is unreachable], retrying in 1 second INFO - GET https://api.meraki.com/api/v1/organizations/1413157 WARNING - organizations, getOrganization > https://api.meraki.com/api/v1/organizations/1413157 - Cannot connect to host api.meraki.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')], retrying in 1 second INFO - GET https://api.meraki.com/api/v1/organizations/1413157 WARNING - organizations, getOrganization > https://api.meraki.com/api/v1/organizations/1413157 - Cannot connect to host api.meraki.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')], retrying in 1 second can anyone help to resolve this issue? Thanks & Regards, Lalana
... View more
Jul 10 2024
4:20 AM
Currently, we are trying to filter out the error messages—specifically 400 Bad Requests that contain keywords like "not support," "unsupported," "not enabled," and "This endpoint only supports," as well as 404 Not Found and 403 Forbidden errors, since these are expected. Our goal is to identify errors related to missing parameters and similar issues since the customer is concerned about them. Once we have that, I will post them here.
... View more
Jul 10 2024
3:46 AM
Thanks for the response John. The APIs I posted are just examples; there are hundreds of APIs that are failing for the customer organization, and we're trying to determine the reasons at the same time struggling to understand the reason. During such widespread failures, it can be challenging to read through the entire documentation unless the necessary information/mandatory fields are clearly listed in the mandatory fields section. This is just my perspective as a new user of Meraki and its API. Nevertheless, we are in the process of evaluating each API failure and will decide which ones require support tickets once we have reviewed all the failures.
... View more
Jul 9 2024
2:59 AM
If productType is mandatory for multiple devices, then it should be mentioned under the mandatory field for more clarity, I believe. Because that's where those who are new to Meraki API typically look first.
... View more
Jul 9 2024
2:38 AM
I was checking the comment that smarui mentioned. Thank you all for the responses. However, I believe that the API documentation should be updated to cover all scenarios and clearly mention the mandatory fields required to get the necessary information and make the API call successful. This would help avoid confusion.
... View more
Jul 8 2024
10:54 PM
Thank you for the detailed explanation. However, on the UI, I tried the same path: [Network-wide] -> [Monitor] -> [Event log], and by default it is set to Access point -> Any , Event type include -> All, Client -> Any, etc. It does not throw any error even if there is no event log or something, but that isn't the same behavior while using the API. Not sure if I am checking the correct path on the UI.
... View more
Jul 8 2024
5:27 AM
Thank you. But isn't it supposed to fetch the network events for all the devices associated with that networkId in bulk instead of asking for producttype etc?
... View more
Jul 8 2024
12:14 AM
Hi Team, Regarding the 400 Bad Request errors encountered while trying to perform GET operations on the following Meraki APIs: getNetworkPiiPiiKeys - 400 Bad Request, {'errors': ['Please provide exactly one of username, email, mac, serial, imei, bluetoothMac']} As per the documentation mentioned here - https://developer.cisco.com/meraki/api-v1/get-network-pii-pii-keys/, the only mandatory parameter is networkid, which we are already passing. However, the command is returning an error, expecting additional query parameters. Is this expected behavior from the API, and is the documentation not up to date, or is this a bug on the API front? getNetworkEvents - 400 Bad Request, {'errors': ['productType is required']} As per the documentation mentioned here - https://developer.cisco.com/meraki/api-v1/get-network-events/, the only mandatory parameter is networkId. However, the command is returning an error, stating that productType is required.
... View more
Mar 3 2024
8:48 PM
Hi Philip, Thank you so much. I will check this out.
... View more
Mar 1 2024
9:23 AM
Thank you both, but somehow https://apps.meraki.io/en-US/listing?cat=106403 these apps are not available or visible in my country. So looks like the only option I have is to refer to https://developer.cisco.com/meraki/api-v1/create-organization/ and https://github.com/meraki/automation-scripts/tree/master/backup_configs these contents and code similarly for restoring the devices and entire organization.
... View more
Mar 1 2024
4:39 AM
okay Thank you.
... View more
Mar 1 2024
4:25 AM
Thank you, will check that out. But does taking backup of networks and restoring makes sense? If not the whole organization?
... View more
Mar 1 2024
4:12 AM
Thanks again, that is the requirement/use case from one of our customer. But I am new to Meraki as well, can you please elaborate more on this statement please "all the settings are stored in the Meraki cloud?"
... View more
Mar 1 2024
4:05 AM
Thank you for the quick response. Set of API's you mean set of python modules from this Link -> https://developer.cisco.com/meraki/api-v1/create-organization/ right?
... View more
Mar 1 2024
2:52 AM
Hi Team, I was looking at this Git repository for Meraki backup and restore functionality (https://github.com/meraki/automation-scripts/tree/master/backup_configs). However, I noticed that the restore script only restores networks. Do we have any repository or script to restore the complete configuration in order? For example, restoring the entire organization by first restoring networks, then claiming devices into inventory, and finally the organization itself. Looking for some assistance and help. Thanks in advance.
... View more
My Top Kudoed Posts
Subject | Kudos | Views |
---|---|---|
4 | 1997 | |
2 | 1567 | |
2 | 2001 |