Registered member login:
Register Now
Altirigos » Altiris Administrators » Reports » Help Creating a Software Inventory with Primary Login

» Current Poll
Do you leave the Aclient enabled?
YES - 82.31%
107 Votes
NO - 17.69%
23 Votes
Total Votes: 130
You may not vote on this poll.
» Stats
Members: 9,496
Threads: 11,750
Posts: 55,294
Top Poster: Nick (4,981)
Welcome our newest member, JessicaD
» Online Users: 27
0 members and 27 guests
No Members online
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
Reply
Old 06-10-2009, 02:28 AM   #1 (permalink)
 
Status: Junior Altiris Admin
Join Date: 03-24-2009
Location: Australia
Posts: 5


Help Creating a Software Inventory with Primary Login

Hi All

I have spent some time looking through other posts but I didnt find anything that could help me here.

I'm fairly new to ALtiris and begun to expose myself with the wonderful world of report writing and SQL. I am trying to generate a report that displays all computers that have Adobe Photoshop installed. This works fine. However when I try to add a Primary User coumn to the report the number of rows increase 2 or 3 fold. It appears that the rimary User column duplicates the number of products found.

Im using the simple report builder and the SQL I want to add a user to is displayed here:

SELECT T0.[Name] AS 'Name', T1.[Name] AS 'Name', T0.[Guid] FROM [vResourceEx] T0 INNER JOIN [Inv_AeX_OS_Add_Remove_Programs] T1 ON T0.[Guid] = T1.[_ResourceGuid] WHERE T1.[Name] like 'Adobe Photoshop%' AND T0.[ResourceTypeGuid] = '493435f7-3b17-4c4c-b07f-c23e7ab7781f'

Could anybody assist with adding a Primary User next to each of the rows returned?

Much appreciated!
Pacman_1905 is offline   Reply With Quote
Old 06-10-2009, 01:28 PM   #2 (permalink)
 
Status: Altiris Admin
Join Date: 05-29-2008
Location: Chicago
Posts: 76


This is what I came up with.

Code:
SELECT DISTINCT 
                      AeXInv_AeX_AC_Primary_User.[User] AS Username, AeXInv_AeX_AC_TCPIP.[Host Name] AS [Computer Name], 
                      AeXInv_AeX_OS_Add_Remove_Programs.Name AS [Program Name]
FROM         AeXInv_AeX_AC_Primary_User INNER JOIN
                      AeXInv_AeX_AC_TCPIP ON AeXInv_AeX_AC_Primary_User.WrkstaId = AeXInv_AeX_AC_TCPIP.WrkstaId INNER JOIN
                      AeXInv_AeX_OS_Add_Remove_Programs ON AeXInv_AeX_AC_Primary_User.WrkstaId = AeXInv_AeX_OS_Add_Remove_Programs.WrkstaId
WHERE     (AeXInv_AeX_OS_Add_Remove_Programs.Name LIKE N'%Photoshop%')
Remember, if you have primary user as an output that you need distinct because primary user is recalculated every month or you need to add the Month column, deselect it as an output and just hard code it with the current month. If you're users change machines frequently then you'll want to put in a month. If they don't, you still may get a few duplicates if they have more than one machine with the application installed.
gwilmington is offline   Reply With Quote
Old 06-10-2009, 10:30 PM   #3 (permalink)
 
Status: Junior Altiris Admin
Join Date: 03-24-2009
Location: Australia
Posts: 5


Oh thats brilliant this SQL query worked a treat. Much appreciated!

Cheers

Pacman_1905 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 08:59 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
vB.Sponsors
Altirigos