09-19-2019 03:22 PM
Does EoX NOT show contract support information? I am trying to use EoX to determine support coverage, yet using the following code I get very odd results.
with open('/work/python3/Scripts/eox/prod/data/snBlank.txt') as file: sn_array = file.readlines() for x in range(len(sn_array)): try: sn = sn_array[x].strip() full_url = "https://api.cisco.com/supporttools/eox/rest/5/EOXBySerialNumber/1/"+sn+"?responseencoding=json" response = requests.post(full_url, headers=headers, verify=False) js=response.json() pid = (js['EOXRecord'][0]['EOLProductID']) eos = (js['EOXRecord'][0]['EndOfSaleDate']['value']) esm = (js['EOXRecord'][0]['EndOfSWMaintenanceReleases']['value']) erf = (js['EOXRecord'][0]['EndOfRoutineFailureAnalysisDate']['value']) esc = (js['EOXRecord'][0]['EndOfServiceContractRenewal']['value']) lds = (js['EOXRecord'][0]['LastDateOfSupport']['value']) tup=(sn, ", ", pid, ", ", eos, ", ", esm, ", ", erf, ", ", esc, ", ", lds) rec="".join(tup)+"\n" zap.write(rec)
The code above returns this for these 2 serial numbers (FDO21142F89 and FDO21142GGU)
('FDO21142F89', ', ', '', ', ', '', ', ', '', ', ', '', ', ', '', ', ', '') ('FDO21142GGU', ', ', 'N9K-C9372PX-E', ', ', '2018-10-30', ', ', '2019-10-30', ', ', '2019-10-30', ', ', '2023-01-25', ', ', '2023-10-31')
The first SN returns nothing, yet https://cway.cisco.com/sncheck/ returns:
And for the second device returns this:
09-23-2019 10:20 AM
EOX API gives you end of life info for the product, not coverage info. Try SN2INfo API if you want to know whether a particular device is under a service contract.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide