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

Request software status from CCO using Python

Matthias.Geiger
Level 1
Level 1

Hi,

 

I have created a Python script which ssh to a device (ios, nx-os, asa) and get the running software version (This is quite easy). Now it should go to the CCO to request any known notices (field notices, vulnerabilities, end-of-support announcements) for this version and upgrade recommendations. For this the script needs a kind of access to the CCO (api or similar) to send the request.

 

The script will proceed as follows:

 

  • For each device:
    • Login to the device
    • Get platform and software version
    • Login to CCO
    • Request any known issues with this software
      • If there’s an issue request upgrade recommendation
    • Send out a report

Does anyone knows an API or similar ?

 

Many thanks.

Matthias

1 Reply 1

STD_NetWorld
Level 1
Level 1

Matthias,

 

you can do this using the below steps.

1) Login Devices and collect Current Version (you can use paramiko library)

2) Now using a current version and PID, you can find a vulnerability or other detail(EOD, Suggest upgraded ios...etc) using this Cisco API for more detail you can refer below link.

     Link: https://apiconsole.cisco.com/

 

Thanks,

Tej Savsani

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: