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

Request software status from CCO using Python

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
Highlighted
Beginner
Beginner

Re: Request software status from CCO using Python

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

This widget could not be displayed.