jmcleish
Posts: 513
Score: 17 Joined: 11/8/2002 Status: offline
|
Hi John, Thanks for the reply. I understand now (understand I need to spend lots of time looking at joins!) We 're back to this report: Select distinct SYS.Netbios_Name0, SYS.User_Name0, v_GS_computer_system.Manufacturer0,v_GS_computer_system.Model0, WK.LastHWScan, bios.SerialNumber0 SerialNumber, v_GS_NETWORK_ADAPTER_CONFIGUR.MACAddress0, OPSYS.Caption0 as C054, OPSYS.CSDVersion0, PR.MaxClockSpeed0, MEM.TotalPhysicalMemory0 from v_R_System as SYS join v_GS_OPERATING_SYSTEM OPSYS on SYS.ResourceID=OPSYS.ResourceID join v_GS_pc_bios as bios on SYS.ResourceID=bios.ResourceID join v_GS_PROCESSOR PR on SYS.ResourceID=PR.ResourceID JOIN v_GS_NETWORK_ADAPTER_CONFIGUR on v_GS_NETWORK_ADAPTER_CONFIGUR.resourceid = sys.resourceid join v_GS_SYSTEM_ENCLOSURE SE on SYS.ResourceID=SE.ResourceID join v_GS_X86_PC_MEMORY MEM on SYS.ResourceID=MEM.ResourceID join v_GS_WORKSTATION_STATUS WK on SYS.ResourceID=WK.ResourceID JOIN v_GS_computer_system on v_GS_computer_system.resourceid = sys.resourceid join v_FullCollectionMembership FC on FC.ResourceID = SYS.ResourceID where FC.CollectionID = 'W010021b' and (v_GS_NETWORK_ADAPTER_CONFIGUR.dhcpenabled0 = 1 and v_GS_NETWORK_ADAPTER_CONFIGUR.ipsubnet0 like '255.255%' and v_GS_NETWORK_ADAPTER_CONFIGUR.ipaddress0 like '10%') order by SYS.Netbios_Name0 As I said above, I've found a machine that has no memory or processor field in resource explorer for whatever reason, so I'm thinking what other clients have inventory problems? Ideally I'd like to be able to have the system name column, then get it to display nulls for all other selected columns if possible. That way I'd have a list of definites for what needs fixed, and a true representation of all machines without it missing those items that haven't reported properly. That's probably not possible! Thanks Jane EDIT: Thanks John for your help- I changed all the joins to left outer joins and I now have 60 more machines than in my last report! Dude - you're THE man! Thanks again. :-) Is this what you're talking about the filter criteria - or is there something that I could still be missing? Jane
< Message edited by jmcleish -- 11/17/2008 7:11:14 AM >
|