Microsoft KB Archive/253994

= SMS: Network Discovery Does Not Change "client=1" to "client=0" When SMS Client Is Uninstalled =

Article ID: 253994

Article Last Modified on 10/25/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition
 * Microsoft Systems Management Server 2.0 Service Pack 1
 * Microsoft Systems Management Server 2.0 Service Pack 2

-



This article was previously published under Q253994



SYMPTOMS
Clients that have been uninstalled from a site may still be reported as existing clients in the discovery database, preventing Windows NT Remote Client Installation from attempting to reinstall uninstalled clients. This issue occurs only under the following circumstances:
 * Windows NT Remote Client Installation is the only enabled installation method.
 * Network Discovery and Heartbeat Discovery are the only enabled discovery methods.



CAUSE
This behavior occurs because the Network Discovery agent does not include the "client" property in discovery data records (DDRs) that it generates.



RESOLUTION
To resolve this problem, obtain the latest service pack for Systems Management Server version 2.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

236325 How to Obtain the Latest Systems Management Server 2.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Systems Management Server 2.0 Service Pack 4.



MORE INFORMATION
There are two stored procedures to implement this fix: sp_SMSDisplayOldClient and sp_SMSUpdateOldClient. The 60052.sql script creates both of them.

sp_SMSDisplayOldClient
This procedure lists all systems that have not been discovered by Windows NT Logon Discovery or Heartbeat Discovery within the specified day interval and whose client property is currently set to "installed" (1).

Syntax: sp_SMSDisplayOldClient [ ]

is the number of days within which a client is considered current. Set this value to something higher than the Heartbeat Discovery interval. The range is 1 - 366.

sp_SMSUpdateOldClient
This procedure changes the client property to "not installed" (0) on all systems that have not been discovered by Windows NT Logon Discovery or Heartbeat Discovery within the specified day interval and whose client property is currently set to "installed" (1).

Syntax: sp_SMSUpdateOldClient [ ]

is the number of days within which a client is considered current. Set this to something higher than the heartbeat discovery interval. The range is 1 - 366.

NOTE: To provide ongoing maintenance, you can schedule sp_SMSUpdateOldClient to run as a recurring SQL command in the Systems Management Server (SMS) Administrator console. To do so:  Stop the SMS_SITE_COMPONENT MANAGER and SMS_EXECUTIVE services. Run the 60052.sql script by using SQL Query Analyzer or ISQL/W. Restart the services that you stopped in step 1. In the SMS Administrator console, expand the Site Hierarchy,  , Site Settings, Database Maintenance, and SQL Commands nodes. Right-click the node, point to New and then click SQL Command.</li> Type a descriptive name for the command.</li> In the SQL Command box, type the following line:

exec sp_SMSUpdateOldClient [ ]

</li> Select a log path.</li> Set an appropriate schedule.</li> Click OK.</li></ol>

Additional query words: prodsms

Keywords: kbqfe kbhotfixserver kbbug kbfix kbsms200presp4fix KB253994

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.