<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic EoX API fails to return coverage data for device, but https://cway.cisco.com/sncheck/ shows the device is covered in Services Discussions</title>
    <link>https://community.cisco.com/t5/services-discussions/eox-api-fails-to-return-coverage-data-for-device-but-https-cway/m-p/3927305#M590</link>
    <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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)&lt;/PRE&gt;&lt;P&gt;The code above returns this for these 2 serial numbers (FDO21142F89 and FDO21142GGU)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;('FDO21142F89', ', ', '', ', ', '', ', ', '', ', ', '', ', ', '', ', ', '')

('FDO21142GGU', ', ', 'N9K-C9372PX-E', ', ', '2018-10-30', ', ', '2019-10-30', ', ', '2019-10-30', ', ', '2023-01-25', ', ', '2023-10-31')&lt;/PRE&gt;&lt;P&gt;The first SN returns nothing, yet &lt;A href="https://cway.cisco.com/sncheck/" target="_blank" rel="noopener"&gt;https://cway.cisco.com/sncheck/&lt;/A&gt; returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="row base-margin-top base-margin-bottom"&gt;&lt;DIV class="col-md-4"&gt;&lt;H4&gt;Contract&lt;/H4&gt;Status &lt;SPAN class="ng-scope"&gt;&lt;SPAN class="ng-binding ng-scope"&gt;Covered until &lt;/SPAN&gt;&lt;SPAN class="ng-binding"&gt;2020-06-09&lt;/SPAN&gt; &lt;/SPAN&gt;Number XXXX2600 Type SOLN SUPP 24X7X4OS&lt;/DIV&gt;&lt;DIV class="col-md-4"&gt;&lt;P&gt;And for the second device returns this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="col-md-4"&gt;&lt;H4&gt;Contract&lt;/H4&gt;Status &lt;SPAN class="ng-scope"&gt;&lt;SPAN class="ng-binding ng-scope"&gt;Covered until &lt;/SPAN&gt;&lt;SPAN class="ng-binding"&gt;2020-03-31&lt;/SPAN&gt; &lt;/SPAN&gt;Number XXXX2600 Type SOLN SUPP 24X7X4OS&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 19 Sep 2019 22:22:57 GMT</pubDate>
    <dc:creator>SteveJennings8788</dc:creator>
    <dc:date>2019-09-19T22:22:57Z</dc:date>
    <item>
      <title>EoX API fails to return coverage data for device, but https://cway.cisco.com/sncheck/ shows the device is covered</title>
      <link>https://community.cisco.com/t5/services-discussions/eox-api-fails-to-return-coverage-data-for-device-but-https-cway/m-p/3927305#M590</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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)&lt;/PRE&gt;&lt;P&gt;The code above returns this for these 2 serial numbers (FDO21142F89 and FDO21142GGU)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;('FDO21142F89', ', ', '', ', ', '', ', ', '', ', ', '', ', ', '', ', ', '')

('FDO21142GGU', ', ', 'N9K-C9372PX-E', ', ', '2018-10-30', ', ', '2019-10-30', ', ', '2019-10-30', ', ', '2023-01-25', ', ', '2023-10-31')&lt;/PRE&gt;&lt;P&gt;The first SN returns nothing, yet &lt;A href="https://cway.cisco.com/sncheck/" target="_blank" rel="noopener"&gt;https://cway.cisco.com/sncheck/&lt;/A&gt; returns:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="row base-margin-top base-margin-bottom"&gt;&lt;DIV class="col-md-4"&gt;&lt;H4&gt;Contract&lt;/H4&gt;Status &lt;SPAN class="ng-scope"&gt;&lt;SPAN class="ng-binding ng-scope"&gt;Covered until &lt;/SPAN&gt;&lt;SPAN class="ng-binding"&gt;2020-06-09&lt;/SPAN&gt; &lt;/SPAN&gt;Number XXXX2600 Type SOLN SUPP 24X7X4OS&lt;/DIV&gt;&lt;DIV class="col-md-4"&gt;&lt;P&gt;And for the second device returns this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="col-md-4"&gt;&lt;H4&gt;Contract&lt;/H4&gt;Status &lt;SPAN class="ng-scope"&gt;&lt;SPAN class="ng-binding ng-scope"&gt;Covered until &lt;/SPAN&gt;&lt;SPAN class="ng-binding"&gt;2020-03-31&lt;/SPAN&gt; &lt;/SPAN&gt;Number XXXX2600 Type SOLN SUPP 24X7X4OS&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 19 Sep 2019 22:22:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/eox-api-fails-to-return-coverage-data-for-device-but-https-cway/m-p/3927305#M590</guid>
      <dc:creator>SteveJennings8788</dc:creator>
      <dc:date>2019-09-19T22:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: EoX API fails to return coverage data for device, but https://cway.cisco.com/sncheck/ shows the device is covered</title>
      <link>https://community.cisco.com/t5/services-discussions/eox-api-fails-to-return-coverage-data-for-device-but-https-cway/m-p/3928790#M592</link>
      <description>&lt;P&gt;EOX API gives you end of life info for the product, not coverage info. Try &lt;A href="https://developer.cisco.com/docs/support-apis/#serial-number-to-information" target="_self"&gt;SN2INfo API&lt;/A&gt; if you want to know whether a particular device is under a service contract.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 17:20:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/services-discussions/eox-api-fails-to-return-coverage-data-for-device-but-https-cway/m-p/3928790#M592</guid>
      <dc:creator>kcolberg</dc:creator>
      <dc:date>2019-09-23T17:20:23Z</dc:date>
    </item>
  </channel>
</rss>

