Had to troubleshoot various client issues today with regard to discovery methods and this query came in handy. You can run this against the primary site SQL database to find out the discovery methods (i.e. AD System discovery, heartbeart etc) that are being found by a specific client in SCCM 2007.
select ssaa.SMS_Assigned_Sites0, sd.Itemkey, sd.name0, sd.SMS_Unique_Identifier0, sd.client0, sd.client_Type0,dia.AgentSite, dia.AgentTime, a.AgentName from system_disc as sd join discitemagents as dia ondia.itemkey = sd.itemkey join agents as a ondia.Agentid = a.Agentidjoin System_SMS_Assign_ARR as ssaaon ssaa.itemkey = sd.itemkeywhere name0 = '<computername>'
Powered by Zimbra