getmap.pl (Tested with QualysGuard 6.23 and Perl v5.14.1):
This script demonstrates how to interact with the QualysGuard network map functions including: Launch a map, launch a map and save the report on the QualysGuard server, list saved map reports, retrieve a saved map report, list maps in progress, and cancel a running map.
It also demonstrates how to connect to the QualysGuard API (using basic authentication over SSL), how to pass arguments, and how to display the results of interacting with it.
If called with a netblock-delimited domain, or a list of domains, then the map-2.php API call is used (otherwise the map.php call will be used by default).
This script takes a username and password as the first two command line arguments.