Instalation Path Not Shown

Can anyone tell me why the installation path on the Software Classification report shows as when there is only one path listed in the See Details section? Is this a bug or by design?

Currently, only IBM software will have an installation path shown in the GUI. You can retrieve the installation paths of other vendors’ software using the REST API.

The following API GET should return installed, un-suppressed, software instances, where the component is the Java Runtime Environment:

https://bfi.acme.biz:9081/api/sam/v2/software_instances?criteria={"and":[["is_present", "=", 1],["is_suppressed", "=", 0],["component_name", "=", "Java Runtime Environment"]]}&token=<administrator_or_sam_user_token>&columns[]=computer_name&columns[]=component_publisher_name&columns[]=component_name&columns[]=component_detailed_version&columns[]=component_release&columns[]=discovery_details.discovery_path&columns[]=discovery_details.file_name&columns[]=discovery_details.file_size&columns[]=usage_data.total_runs&columns[]=usage_data.last_used&columns[]=usage_data.avg_runs_per_day&columns[]=discovery_start&columns[]=discovery_end&columns[]=discovery_details.discovery_path&columns[]=discovery_details.file_name&columns[]=discovery_details.file_size

A snippet of the data returned:

{ "total": 6, "rows": [{ "computer_name": "COMPUTERNAME", "component_publisher_name": "Oracle", "component_name": "Java Runtime Environment", "component_detailed_version": "1.8", "component_release": "8.0", "discovery_start": "2018-12-20T04:56:50Z", "discovery_end": "9999-12-31T23:59:59Z", "discovery_details": [{ "discovery_path": "C:\\Program Files (x86)\\Java\\jre1.8.0_181\\bin", "file_name": null, "file_size": -1 }], "usage_data": { "total_runs": 183, "last_used": "2019-03-26T22:23:24Z", "avg_runs_per_day": 0.2923422245588103 } },

3 Likes