Quantcast
Channel: Symantec Connect - Products
Viewing all articles
Browse latest Browse all 21433

Find all computers where Auto-Protect is not ON - Part 1

$
0
0
Filter all "not ON" statuses: Off, Not-Installed, Not Reported.

Not yet complete, but here are the first changes neede to implement a checkmark in filters for monitoring/reporting on all statuses, except Auto-Protect = on. So this includes: Auto-Protect=off, not installed or not reported.

<SEPM Home>\\Php\Include\Inventory\inventory-input.php:

line 21, add after this:

<input name="filOnOff" type="hidden" id="filOnOff" value="<? echo $filOnOff;?>">

one extra input, resulting in:

<input name="filOnOff" type="hidden" id="filOnOff" value="<? echo $filOnOff;?>">
<input name="filApNotOn" type="hidden" id="filApNotOn" value="<? echo $filApNotOn;?>">

File <SEPM Home>\Php\Include\Inventory\inventory-sqlfilter.php

after lines 133-136:

$queryOnOff=optimize_checkbox_neg($filOnOff, "SA.AP_ONOFF");
if ($queryOnOff) {
    $filterSettings["LABEL_ONOFF"]=$filOnOff;
}

add another 4 lines, resulting in:

$queryOnOff=optimize_checkbox_neg($filOnOff, "SA.AP_ONOFF");
if ($queryOnOff) {
    $filterSettings["LABEL_ONOFF"]=$filOnOff;
}
$queryAPNotOn = $filAPNotOn=='on' ? "SA.AP_ONOFF != 1" : "";
if ($queryAPNotOn) {
    $filterSettings["LABEL_AP_NOT_ON"]=$filAPNotOn;
}

and after line 320:

".Queries::optimize_and($queryOnOff)."

include one new line, resulting in:

".Queries::optimize_and($queryOnOff)."".Queries::optimize_and($queryAPNotOn)."

You are not finished, see next parts.


Viewing all articles
Browse latest Browse all 21433

Trending Articles



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