Cisco PSIRT Advisories (beta)
I have been working on a module to pull Cisco PSIRT Advisories per device. It is not complete yet, but thought it might be interesting to post since it does work, just not properly for production use (see below). It is also an example of how lack of library support forces cut-and-paste programming even within a single DS
Please note that due to the way LM works, this cannot be deployed on more than a few devices as it stands!!!! Cisco has strict limits on the API and there is no reason to call more than daily for any platform/version pair, but you have no choice by default. I have some ideas on how to address, but if LM would provide a way to marshal and cache external API calls, I would not have to hack around the issue by running an nginx caching server (TBD) or possibly by writing JSON files to the local filesystem (shudder).
To use this, you must get an application defined at the Cisco API Console (documented in the technical notes) and you must define the API key/secret from the application in properties.
Cisco in theory wants you to use ios, iosxe and nxos as endpoint types with the version, but there is no actual way to reliably detect iosxe (that I can find, other than possibly a boot string @ SNMPv2-SMI::enterprises.9.2.1.1.0 or SNMPv2-SMI::enterprises.9.3.6.4.0). So I used ios as default and nxos when matched.
NMEFZA