cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
785
Views
0
Helpful
1
Replies

EoX API fails to return coverage data for device, but https://cway.cisco.com/sncheck/ shows the device is covered

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:

 

Contract

Status Covered until 2020-06-09 Number XXXX2600 Type SOLN SUPP 24X7X4OS

And for the second device returns this:

 

Contract

Status Covered until 2020-03-31 Number XXXX2600 Type SOLN SUPP 24X7X4OS
1 Reply 1

kcolberg
Cisco Employee
Cisco Employee

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.

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: