cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
301
Views
5
Helpful
10
Replies

Getting Software Product Id installed on Cisco IOS devices

jaypathompong
Level 1
Level 1

Hi all,

I'm trying to get End Of Life dates for IOS software. I'm using Support API in order to do so. From what I understand, I can use Software Product Id to query for this information.

For example, when I use "XR-NC5A1-P-7.11" with Support API, I can get End Of Life dates and a link to this bulletin https://www.cisco.com/c/en/us/products/collateral/ios-nx-os-software/ios-xr-software/ios-xr-software-release-7-11-eol.html

However, I don't know how to get software product id from IOS devices. I'd really appreciate it if anyone can point me in the right direction.

 

1 Accepted Solution

Accepted Solutions

Hmm does not look like an easy way unless i am missing something here, i would either open a tac case and ask them to provide the recommended steps or contact the team supportapis-help@cisco.com

Hope one way or another you get a correct way of doing this.

 

 

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

View solution in original post

10 Replies 10

Jesus Illescas
Cisco Employee
Cisco Employee

Just a tip, there is a dedicated community for the support API - https://community.cisco.com/t5/services-discussions/bd-p/j-disc-dev-services
Maybe there you can get how to find product IDs.

You should be able to pull this from the device with show version or inventory? https://developer.cisco.com/docs/support-apis/eox/#get-eox-by-product-ids 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thank you for the reply. Unfortunately, software product id is not in the output from show version or inventory.

show inventory
NAME: "c38xx Stack", DESCR: "c38xx Stack"
PID: WS-C3850-24T-E    , VID: V07  , SN: XX

NAME: "Switch 1", DESCR: "WS-C3850-24T-E"
PID: WS-C3850-24T-E    , VID: V07  , SN: XX

NAME: "Switch 1 - Power Supply B", DESCR: "Switch 1 - Power Supply B"
PID: PWR-C1-350WAC     , VID: V02  , SN: XX


C3850#
show version
Cisco IOS XE Software, Version 16.12.12
Cisco IOS Software [Gibraltar], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.12.12, RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2024 by Cisco Systems, Inc.
Compiled Thu 12-Sep-24 03:45 by mcpre


Cisco IOS-XE software, Copyright (c) 2005-2024 by cisco Systems, Inc.
All rights reserved.  Certain components of Cisco IOS-XE software are
licensed under the GNU General Public License ("GPL") Version 2.0.  The
software code licensed under GPL Version 2.0 is free software that comes
with ABSOLUTELY NO WARRANTY.  You can redistribute and/or modify such
GPL code under the terms of GPL Version 2.0.  For more details, see the
documentation or "License Notice" file accompanying the IOS-XE software,
or the applicable URL provided on the flyer accompanying the IOS-XE
software.


ROM: IOS-XE ROMMON
BOOTLDR: CAT3K_CAA Boot Loader (CAT3K_CAA-HBOOT-M) Version 6.08, RELEASE SOFTWARE (P)

C3850 uptime is 5 weeks, 5 days, 5 hours, 43 minutes
Uptime for this control processor is 5 weeks, 5 days, 5 hours, 45 minutes
System returned to ROM by Reload Command
System image file is "flash:packages.conf"
Last reload reason: Reload Command



This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.


Technology Package License Information: 

------------------------------------------------------------------------------
Technology-package                                     Technology-package
Current                        Type                       Next reboot  
------------------------------------------------------------------------------
ipservicesk9        	Smart License                 	 ipservicesk9        
None                	Subscription Smart License    	 None                          


Smart Licensing Status: UNREGISTERED/EVAL EXPIRED

cisco WS-C3850-24T (MIPS) processor (revision AB0) with 794817K/6147K bytes of memory.
Processor board ID FOC2107L004
1 Virtual Ethernet interface
28 Gigabit Ethernet interfaces
4 Ten Gigabit Ethernet interfaces
2048K bytes of non-volatile configuration memory.
4194304K bytes of physical memory.
250456K bytes of Crash Files at crashinfo:.
1609272K bytes of Flash at flash:.
0K bytes of WebUI ODM Files at webui:.

Base Ethernet MAC Address          : 70:d3:79:10:07:00
Motherboard Assembly Number        : 73-16297-05
Motherboard Serial Number          : FOC2106557P
Model Revision Number              : AB0
Motherboard Revision Number        : A0
Model Number                       : WS-C3850-24T
System Serial Number               : XX


Switch Ports Model              SW Version        SW Image              Mode   
------ ----- -----              ----------        ----------            ----   
*    1 32    WS-C3850-24T       16.12.12          CAT3K_CAA-UNIVERSALK9 INSTALL


Configuration register is 0x102

C3850#

Jesus Illescas
Cisco Employee
Cisco Employee

@jaypathompong on the show inventory output you have the PID, which stands for Product ID. Is this PID not working for you?

Not really, WS-C3850-24T-E gives me End of Life of the hardware itself with a link to the bulletin at https://www.cisco.com/c/en/us/products/collateral/switches/catalyst-3850-series-switches/eos-eol-notice-c51-743072.html

However, I like to get End of Life of IOSXE 16.12.12 for this device.

So it sounds like you want EoL for software? I think this comes under EOX API https://developer.cisco.com/docs/support-apis/#!eox/features  nice blog on this here https://www.yaklin.ca/2021/02/07/guide-to-cisco-support-apis-part-2.html

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Thank you for your reply. I think the correct link is https://www.yaklin.ca/2021/02/07/a-guide-to-cisco-support-apis---part-2---eox/#a-note-on-the-get-eox-by-software-release-strings-api-end-point

It seems the author of the blog has the same issue. As stated in the blog, EOXBySWReleaseString API endpoint returns a list of EOX records with different PIDs and there is no reliable way to map this back to devices in inventory. From his example, if we could obtain this PID "S280IPBK9-12424T=" from the device, then we could use EOXByProductID API endpoint to get EOX record for this specific IOS version and this hardware.

Hmm does not look like an easy way unless i am missing something here, i would either open a tac case and ask them to provide the recommended steps or contact the team supportapis-help@cisco.com

Hope one way or another you get a correct way of doing this.

 

 

 

Please mark this as helpful or solution accepted to help others
Connect with me https://bigevilbeard.github.io

Jesus Illescas
Cisco Employee
Cisco Employee

Not an expert but reviewing the docs, for SW, it looks like you need to use this API

https://apix.cisco.com/supporttools/eox/rest/5/EOXBySWReleaseString/{pageIndex}/{input1}

https://developer.cisco.com/docs/support-apis/eox/#get-eox-by-software-release-strings

Check also SWReleaseStringType, it seems here you can get the version format https://developer.cisco.com/docs/support-apis/eox/#swreleasestringtype 

Thank you for you reply.

Yes, I've tried EOXBySWReleaseString. However, it returns a list of EOX records, some time with different dates for different products. And I couldn't find a way to map these back to a hardware model as there is no key to associate a record with hardware PID.