Inventory Report Add/Remove Programs - Help adding "manufacturer" (NS6)
Updated: 02 Oct 2010 | 5 comments
I'm ok when it comes to "recontructing" some of the straight forward out of the box inventory reports, but when it comes to the "count of" and "group by" ones, I get a little lost. I'm trying to see ig I can the report "Count of Distinct Add/Remove Program Applications" to include Manufacturer or Publisher.
Any help would be grewatly appreciated.
Thanks
Discussion Filed Under:
Comments
SQL
jebba,
No doubt, it can be a bit daunting when you start GROUPing BY and COUNTing (count still gets me sometimes!) The trick with using "aggregate" functions (like COUNT, MAX, MIN, etc) is that you then have to GROUP BY all the other columsn which aren't the column being counted. The following should work (note I don't have access to my NS at the moment, so the column names may be a bit off). Also this is designed to have a "Collection Picker" parameter included; if you don't want the collection picker option, just comment out the JOIN and the rest that references cm.*:
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Thanks for the reply but:
Conversion failed when converting from a character string to uniqueidentifier
Probably missing the parameter
Jebba,
You'll see that if you don't have a _Collection parameter defined referring to the Collection picker.
Drop lines 3, 4 and 5 from Kyle's query if you don't want to filter by collection (e.g. target "All Computers" always) and it should work for you without having to add the parameter.
--Dave
Yup, thanks dfrancis
In my environment I almost always have to filter reports by collections, so I always put in the Collection Picker bit to help filter down the results. The only downside is that if you want to set a default Collection, you have to export the report to XML, edit in the collection GUID you want as the default, then re-import it to the console. Not exactly user-friendly.
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Report
I will try to post up (as a download) my customized Add/Remove Programs report which is based on the above. It has drilldowns to detailed view as well.
Thanks,
Kyle
Symantec Trusted Advisor
For Forum threads, please click "Mark as Solution" if answered.
For all content, please give a thumbs up if you agree with or support the post.
Would you like to reply?
Login or Register to post your comment.