How can I still purge managed resources that have not reported into the NS after a period of time, but not purge unmanaged resources that run agent-less inventory?
Last Updated January 24, 2007
Question We have both managed and unmanaged resources in our environment. Managed resources run the Inventory Client Agent and unmanaged resources run agent-less inventory scans.
As the NS's (SP3 or SP2 with the SP3 spGetComputersToPurge stored procedure) Purge Maintenance uses the Inv_AeX_AC_Client_Agent table to find out when a resource last sent data to the NS, only managed resource should be purged unless an unmanaged resource has at least one Altiris product agent installed on it, for example the AClient. This is because AeXMachinv.exe reports the same data that the NSAgent's Basic Inventory does.
If you want top ensure that your unmanaged resources never get purged, how do you accomplish this?
Place the attached CS file in the ‘.\Notification Server\bin\’ or the ‘.\Altiris\Diagnostics\’ directory, and then run it against Nscript.exe after modifying the GetDate value as well as adding on an extra WHERE clause and possibly a JOIN so that your agent-less inventory resources do not get deleted. You can then create a scheduled task that runs this action on a regular basis.