Quantcast
Channel: THWACK: Message List - Network Configuration Manager
Viewing all articles
Browse latest Browse all 8827

Re: Compliance Report, Summarize & Count Multiple Violations Per Device

$
0
0

cnorborg

 

I just tested your query, however, the results show the total number of the different rules in violation.  This is actually good info to have for the report as well.

 

While I was in there, I started looking around, and I think I found where they keep that list of occurrences.

 

[dbo].[NCM_PolicyCacheResults].[XmlResults]

 

When I look in that table, I find that nice list of violation occurrences.

The only problem is, to me, anyway, those XML format doesn't look like a nice and simple list.

 

<CBs><CB L="!&#xD;" LN="586"><Ps><P FM="True" PT="dsl profile BB12M" ALL="TRUE"><L FL=" dsl profile BB12M&#xD;" FLN="723" /><L FL=" dsl profile BB12M&#xD;" FLN="827" /><L FL=" dsl profile BB12M&#xD;" FLN="914" /></P></Ps></CB></CBs>

 

 

So, if this is actually the data I am looking for, then I need to know how to do the following:

 

Count the total number of occurrences, within that table data, for each device. Counting only the important stuff in between all that garbage...

GARBAGE:<CBs><CB L="!&#xD;" LN="586"><Ps><P FM="True" PT="dsl profile BB12M" ALL="TRUE">

NEED TOTAL UNIQUE COUNT OF THESE:
<L FL=" dsl profile BB12M&#xD;" FLN="723" /><L FL=" dsl profile BB12M&#xD;" FLN="827" /><L FL=" dsl profile BB12M&#xD;" FLN="914" />

MORE GARBAGE:
</P></Ps></CB></CBs>

 

 

Then, after we get the total for each report, for each device, individually, we get the combined total of all occurrences for all devices, for each like report.

 

 

I must have looked at that table 20 times yesterday, along with numerous others, and not once, was I able to find anything useful.

I go and run your query, following your advice, and your query must have jumped out and slapped me hard enough to pay closer attention.

 

 

Hopefully, the SQL powers that be will show me a way to harvest this newly discovered data.

 

Thanks,

 

-Will


Viewing all articles
Browse latest Browse all 8827

Trending Articles