Process to automate getting IOS ver and SN to check EOL?
Hello all,
I'm currently working on a project to help with automating the process of taking a list of devices, getting their IOS version output and serial numbers and checking EOL/EOS advisories against that. I'm curious what tools folks may be using to automate that as much as possible? I've set up a python script that takes an input file of types and IPs, but from there I'm not sure how to most quickly pull out the information to be checked.
Thanks.
I'm currently working on a project to help with automating the process of taking a list of devices, getting their IOS version output and serial numbers and checking EOL/EOS advisories against that. I'm curious what tools folks may be using to automate that as much as possible? I've set up a python script that takes an input file of types and IPs, but from there I'm not sure how to most quickly pull out the information to be checked.
Thanks.
Comments
-
networker050184 Mod Posts: 11,962 ModProbably easier to just scrape rancid or your monitoring systems db rather than logging into every device.An expert is a man who has made all the mistakes which can be made.
-
down77 Member Posts: 1,009If you have an active/valid Cisco Smartnet contract, why not deploy the Total Care Appliance and let it do the work for you?
http://www.cisco.com/c/en/us/products/collateral/cloud-systems-management/smart-net-total-care/datasheet-c78-735459.pdfCCIE Sec: Starting Nov 11 -
OfWolfAndMan Member Posts: 923 ■■■■□□□□□□Hi JayrodEF,
I have a question for you before I give recommendations. Firstly, in what format is your EOL list? Is it binary file listing? i.e. c2960s-universalk9-mz.150-2.SE10a.bin, or is it in just a general 12.x/15.x for this model type version?
Serial is easy to find. I will write a simple python script example, using python's rancid like networker said. I'd recommend putting the EOL stuff in csv file or .sql, but csv is pretty easy to parse in python. Since it's a small amount of data, it could work.:study:Reading: Lab Books, Ansible Documentation, Python Cookbook 2018 Goals: More Ansible/Python work for Automation, IPSpace Automation Course [X], Build Jenkins Framework for Network Automation [] -
tycar86 Member Posts: 34 ■■□□□□□□□□I'm a bit late to this one, but I would suggest Cisco Active Advisor - https://ciscoactiveadvisor.com. Just run the scan from your computer. It will pull model, OS version, IP address, SN, advisories, warnings, etc.
It's free. You just need a Cisco.com account. It's super easy to use.
Here's the faq - Cisco Active Advisor FAQs - Cisco