...
...
...
...
...
...
Other documents in the Knowlede Base showing how to produce equivalent results have been written for PHP 7 (which produces HTML output), PowerShell and for Python
The REST API allows users to query the iQSonar results directly using the web client protocol. The results are returned in JSON format.
This worked example uses PERL to produce a CSV file containing details of devices directly from the scan results. We look for the host name, the total installed RAM and the CPU type. The device name will be listed in the "device" results. For the CPU Type and the installed RAM we need to then go to the details page for the device.
Step-by-step guide
Prerequisites:
PERL - this is installed as part of almost all Unix distributions. A free version called Strawberry Perl, and a commercial implementation from Active State called ActivePerl are available for Windows.
CPAN Modules used: LWP, JSON::XS
...
- You need to know the URL for you iQSonar install - in this example our host is vm-mike-2k12a
- You need credentials for the iQSonar install - in this example we use the default login admin / password
Step One: Connect to the REST API on our iQSonar instance.
...