Removing Qualys Cloud Agent in bulk

Document created by Abhijith Nair on Apr 23, 2018Last modified by Abhijith Nair on Apr 23, 2018
Version 2Show Document
  • View in full screen mode

Hello All, 

 

I have been associated with Qualys Cloud agent and one of the major problem that I had faced is removal of more than one agent at the same time. The GUI does not have such an option, but Qualys has come up with a ' OR ' based query, which at times does not work well as they also pull up something else. I have made a simple Python script that would take the data of ASSET ID in a txt / csv file. One ASSET ID  per line and when executed will remove the whole.

 

Pre-Requisite is python 2.7, qualysapi module by paragbaxi and a slight modification on the connector to accommodate the QCA url. The script and the connector is attached. After you install the qualysapi module replace the connector.py from the following location. 

 

C:\Python27\lib\site-packages\qualysapi

 

I have commented the output. You may change it to see the result with 2/3 ASSET IDs to begin with. pythonconfig.txt needs to be filled with credentials and proxy details.

1 person found this helpful

Attachments

Outcomes