Endpoint Protection

 View Only

Getting wrong OS in your reports? 

Jan 26, 2015 05:43 AM

Found in version 12.1.5 and still found in 12.1.6.

If you create reports and find wrong OS-es, e.g. a "Windows" computer, while the computer actually is a "Linux" computer running SAVFL,

then you can fix this by looking at <SEPM Home>\Inetpub\Reporting\Inventory\inventoryreport1.php

lines 224 - 225 (12.1.5) or 238 - 239 (12.1.6).

The report translates an unknown OS Type (R_OS_TYPE = 0) as a "Windows" computer:

   WHEN (SA.R_OS_TYPE NOT IN (".$mutils->macOsConstants.") AND (SA.R_OS_TYPE & 0xF0FF0000) NOT IN (0x20000000)) THEN '1'WHEN SA.R_OS_TYPE IN (".$mutils->macOsConstants.") THEN '2' WHEN (SA.R_OS_TYPE & 0xF0FF0000) IN (0x20000000) THEN '3'
   ELSE '0'END as R_OS_TYPE";

So there is a need to separate unknown OS-es before checking Windows, Linux or Mac types.

So insert a line before line 224 (12.1.5) or 238 (12.1.6), resulting in:

   WHEN SA.R_OS_TYPE NOT IN (0x0) THEN '0'
   WHEN (SA.R_OS_TYPE NOT IN (".$mutils->macOsConstants.") AND (SA.R_OS_TYPE & 0xF0FF0000) NOT IN (0x20000000)) THEN '1'WHEN SA.R_OS_TYPE IN (".$mutils->macOsConstants.") THEN '2' WHEN (SA.R_OS_TYPE & 0xF0FF0000) IN (0x20000000) THEN '3'
   ELSE '0'END as R_OS_TYPE";

 

And then the reports will not show "Windows" while it meanse "Unknown".

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.