Skip navigation
Currently Being Moderated

Add Asset IP (sample code)

Created by Robert Dell'Immagine on Jun 24, 2010 7:24 PM - Last modified by Eric Perraudeau on Dec 29, 2011 4:42 PM (Tested with QualysGuard 6.23 and Perl v5.14.1):


This script adds asset IP addresses to a QualysGuard subscription by importing the assets from a CSV file. This script may be run using an account that is defined with the Manager user role.


Using this script, you can bulk populate IP addresses and related host information in QualysGuard using asset data already available in spreadsheets or data exported from a database. The script demonstrates this capability by taking properly formatted CSV data with user-supplied asset attributes as input, and transforming this input into a URL that will populate the QualysGuard account with asset information. The CSV file and user-supplied attributes are provided in the addassetip.conf file, which is provided with this script. The CSV file must have a single column with each row containing a single IP address or an IP range.


Please note that the amount of asset data that can be imported into QualysGuard using this script is limited by the number of characters allowed in a single URL. For this reason it is recommended that you
specify IP ranges to overcome this limitation.


This script takes a username and password as the first two command line arguments.

Comments (0)