Hello,
I am writing a python script to query the Qualys Asset API. We are using this to populate our CMDB.
In order to populate the CMDB, we need to get the Serial Number for as many hosts as possible. That way it can match existing records that are being populated by other systems (SCCM, Casper, PuppetDB, SolarWinds, etc).
We want to avoid using hostname to match existing records because that can change periodically.
I'm able to query the Asset API to get all hosts. However, there does not seem to be Serial Number available in the results. There is only hostname, OS, IP, etc. I have tried all variations of the details parameter including Basic, All, Basic/AGs and All/AGs.
Here is the endpoint I am using.
/api/2.0/fo/asset/host/?action=list&details=All
Please advise if it is possible to get serial number from the asset inventory. Thank you.
I was able to confirm in fact that the Asset inventory does not track serial number. I was hoping to get serial number in order to match existing host records that we have from other tracking systems.
I may need to fall back on matching existing records by hostname though that is prone to issues since hostnames change occasionally.
Note that the Appliance API does appear to have serial number, but that doesn't help in this particular case since I was hoping to get serial numbers for everything.
Example:
https://community.qualys.com/docs/DOC-5991-monitoring-appliance-capacity-utilization