Closed rhinbourgeois closed 3 years ago
As documented by the original creator of that script, "report_statuses.py" should be used instead, as "uplink.py" is deprecated. Added command line option "-o /all" to "report_statuses.py" that iterates through all organizations accessible by the given API key.
Please test and let me know if this achieves what you are looking for.
Thanks mpapazog. That script is bugged for me with the following:
'base_url': 'https://api.meraki.com/api/v1', '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, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None}
2020-12-11 10:27:11 meraki: INFO > GET https://api.meraki.com/api/v1/organizations//all/appliance/uplink/statuses
2020-12-11 10:27:12 meraki: ERROR > appliance, getOrganizationApplianceUplinkStatuses - 404 Not Found, b' '
Traceback (most recent call last):
File "report_statuses.py", line 121, in
I believe it has to do with the -o /all
Look here:
GET https://api.meraki.com/api/v1/organizations//all/appliance/uplink/statuses
Which would explain the 404 error, because the page doesn't exist. I also looked at the code and don't see a note about the -o /all
My command looked like this:
python report_statuses.py -k 1234 -o /all
Is there another switch for the all portion I should be using? Thanks for your help. I really appreciate your patience.
Sounds like an older version of the script. Could you please make sure you are using the latest one: https://raw.githubusercontent.com/meraki/automation-scripts/master/report_statuses.py
mpapazog, sorry for the delay. The newer version worked. It's weird because I don't loaded the script back about a week back and I assumed everything in there was up to date. Sorry about that, and it is greatly appreciated that you pointed me in the right direction. This issue is closed.
The feature was added just for you, following your support request. ;)
Is it possible to update the script uplink.py to poll multiple orgs instead of just one at a time?