Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 6689

How to Automatically update filters with SQL Query

$
0
0
I need a solution

In 7.1 only filters associated with a task, job, or policy update with the resource membership updates. We use filters for reporting as well and we'd like to put our other custom filters on a schedule to update. We tried create a filter membership update task but that only updates the resources within the filters and we need to update the actual filters. Here is the sql we are using to identify our custom filters which haven't updated in the last 2 hours which we'd like to update on a schedule. Anyone know how to do this?

SELECT v1.GUID, v1.Name, v1.Description, v2.modifieddate FROM vCollection v1

join Collection v2
on v1.Guid = v2.Guid

WHERE v1.ProductGuid = 'D0E33520-C160-11D2-8612-00104B74A9DF'
AND(v1.Attributes = 0)

groupby v1.guid, v1.name, v1.description, v2.modifieddate

HAVING NOT DATEDIFF (hh, v2.modifieddate, getdate()) < 2

ORDERBY [Name]


Viewing all articles
Browse latest Browse all 6689

Trending Articles



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