Quantcast
Channel: Symantec Connect - ブログエントリ
Viewing all articles
Browse latest Browse all 5094

Getting wrong OS in your reports?

$
0
0
Bugfix inventoryreport1.php

Found in version 12.1.5.

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.

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, resulting in:

   WHEN SA.R_OS_TYPE NOT IN (0x) 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".


Viewing all articles
Browse latest Browse all 5094

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>