myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Report

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Report Page: [1]
Login
Message << Older Topic   Newer Topic >>
Report - 9/25/2008 8:51:19 AM   
cshackelford

 

Posts: 49
Score: 0
Joined: 8/2/2007
Status: offline
Either i can't find the report anymore or there is just so many i am getting lost in them. Looking for the Computer information report by collection. if it doesn't exsist anyone got a link to a custom one?
Post #: 1
RE: Report - 9/30/2008 11:22:13 AM   
Tom_Watson

 

Posts: 118
Score: 9
Joined: 9/13/2006
Status: offline
Try this one:-

quote:

SELECT DISTINCT sys.Netbios_Name0,
               csys.Manufacturer0,
               csys.Model0,
               enc.SerialNumber0,
               sys.AD_Site_Name0,
               sys.User_Domain0 + '\' + sys.User_Name0 AS "Domain\User",
               hwstat.LastHWScan,
               os.Caption0 AS "Operating System",
               os.CSDVersion0 AS "Service Pack Level",
               mem.TotalPhysicalMemory0 AS "Memory (KBytes)",
               (SELECT SUM(Size0)
                FROM   v_GS_LOGICAL_DISK
                       JOIN v_FullCollectionMembership
                         ON (v_FullCollectionMembership.ResourceID = v_GS_LOGICAL_DISK.ResourceID)
                WHERE  v_GS_LOGICAL_DISK.ResourceID = sys.ResourceID
                       AND v_FullCollectionMembership.CollectionID = @CollectionID) AS "Disk Space (MB)",
               (SELECT SUM(v_GS_LOGICAL_DISK.FreeSpace0)
                FROM   v_GS_LOGICAL_DISK
                       JOIN v_FullCollectionMembership
                         ON (v_FullCollectionMembership.ResourceID = v_GS_LOGICAL_DISK.ResourceID)
                WHERE  v_GS_LOGICAL_DISK.ResourceID = sys.ResourceID
                       AND v_FullCollectionMembership.CollectionID = @CollectionID) AS "Free Disk Space (MB)"
FROM     dbo.v_R_System sys
        JOIN dbo.v_GS_OPERATING_SYSTEM os
          ON (os.ResourceID = sys.ResourceID)
        JOIN dbo.v_GS_SYSTEM_ENCLOSURE enc
          ON (enc.ResourceID = sys.ResourceID)
        JOIN dbo.v_GS_COMPUTER_SYSTEM csys
          ON (csys.ResourceID = sys.ResourceID)
        JOIN dbo.v_GS_X86_PC_MEMORY mem
          ON (mem.ResourceID = sys.ResourceID)
        JOIN dbo.v_FullCollectionMembership fcm
          ON (fcm.ResourceID = sys.ResourceID)
        JOIN dbo.v_GS_WORKSTATION_STATUS hwstat
          ON (hwstat.ResourceID = sys.ResourceID)
        JOIN dbo.v_GS_LOGICAL_DISK ldisk
          ON (ldisk.ResourceID = sys.ResourceID)
             AND ldisk.DeviceID0 = SUBSTRING(os.WindowsDirectory0,1,2)
WHERE    fcm.CollectionID = @CollectionID
ORDER BY sys.Netbios_Name0


(in reply to cshackelford)
Post #: 2
RE: Report - 10/1/2008 9:00:50 AM   
cshackelford

 

Posts: 49
Score: 0
Joined: 8/2/2007
Status: offline
[42000][137][Microsoft][ODBC SQL Server Driver][SQL Server]Must declare the scalar variable "@CollectionID", --

getting that error

(in reply to Tom_Watson)
Post #: 3
RE: Report - 10/1/2008 9:13:33 AM   
Tom_Watson

 

Posts: 118
Score: 9
Joined: 9/13/2006
Status: offline
You need to create a prompt for a CollectionID.  Take a look at one of the other reports that has a CollectionID as a prompt, and copy the code.

Regards,
Tom Watson

(in reply to cshackelford)
Post #: 4
RE: Report - 10/1/2008 9:31:38 AM   
cshackelford

 

Posts: 49
Score: 0
Joined: 8/2/2007
Status: offline
Ahh found my report. Report ID 491 Installed with Asset Intelligence

(in reply to Tom_Watson)
Post #: 5
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Report Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.201