Managed computers that stop communicating with the Symantec Management Platform (SMP Server) stay in the Database (Symantec_CMDB). They keep appearing in Manage > Computers, in reports, and in target filters, and they can keep holding Inventory Solution licenses.
You want to remove managed computers that have not sent basic inventory in a set number of days. You also want to find managed computers that never sent basic inventory at all.
How can I delete computers from my SMP Server database based on the criteria of not receiving Inventory in a certain amount of time?
ITMS 8.7.x, 8.8.x
Each time the Symantec Management Agent (SMA or Altiris Agent) sends inventory, the SMP Server records the update in the ResourceUpdateSummary table. The table holds one row per computer per data class. The ModifiedDate column on that row is the last time the SMP Server received that data class for that computer.
Basic inventory includes the AeX AC Client Agent data class (9E6F402A-6A45-4CBA-9299-C2323F73A506). Purging Maintenance uses the ModifiedDate of this row to decide whether a computer has stopped reporting. See How Purge Maintenance Work on a Reporting Server.
Other data classes also write rows to ResourceUpdateSummary, including data classes the SMP Server updates on the server side, such as Active Directory Import data. See Troubleshooting AD Import issues. A query that takes the latest date across all data classes can show a computer as current even though its agent stopped reporting months ago. The query in this article reads only the AeX AC Client Agent row for that reason.
Situation | What happens | Reference |
|---|---|---|
Managed computer never sent basic inventory | No AeX AC Client Agent row exists. Purging Maintenance does not retire or delete it. The query in Option 2 lists it as "Never received." | |
Computer was imported from Active Directory and never had the agent | The computer is not managed (IsManaged = 0). Purging Maintenance does not touch it, and the query does not list it. Use Active Directory Import synchronization instead. | |
Deleted computer still has a working agent | The computer is recreated the next time it checks in. A retired computer returns to Active status. | |
Reporting SMP server in a hierarchy | If the AeX AC Client Agent data class is not forwarded to the reporting server, Purging Maintenance on that server cannot identify computers to purge. | |
Console shows a different basic inventory date | In ITMS 8.7.1 and later, the console reads the basic inventory date from Inv_AeX_AC_Client_Status, not from the AeX AC Client Agent row. The two dates can differ. |
Use Option 1 to retire or delete stale computers on a schedule.
Use Option 2 to see which computers a threshold affects before you enable deletion, and to find managed computers that never sent basic inventory.
Use Option 3 to delete specific computers by hand.
Retire sets the computer to the non-active status of Retired. Delete removes the computer from the CMDB. See Setup Purging Maintenance
Note: Purging Maintenance acts only on managed computers (IsManaged = 1) that have an AeX AC Client Agent record. It does not remove managed computers that never sent basic inventory. Use Option 2 to find those computers. |
Note: In a hierarchy, the Purge Computers check box under Hierarchy Properties on the parent SMP controls whether a child SMP can keep its own purge settings. See How Purging works in a Hierarchy. |
Before you enable Delete, run the query in Option 2 with the same number of days. The query shows which computers the setting affects.
The query reads the same data class that Purging Maintenance uses. It also returns managed computers that never sent that data class.
/* Managed computers whose AeX AC Client Agent data has not updated in @days days, plus managed computers that never reported this data class. Never-reported computers appear first, then the oldest dates. */ DECLARE @days int = 30; -- set to your Purging Maintenance threshold
SELECT c.Guid, c.Name AS [Computer Name], CASE WHEN rus.ModifiedDate IS NULL THEN 'Never received' ELSE 'Stale' END AS [Status], rus.ModifiedDate AS [Last Client Agent Data Received], DATEDIFF(DAY, rus.ModifiedDate, GETDATE()) AS [Days Since Last Report], c.CreatedDate AS [Resource Created Date] FROM vComputerResourceEx c LEFT JOIN dbo.ResourceUpdateSummary rus ON rus.ResourceGuid = c.Guid AND rus.InventoryClassGuid = '9E6F402A-6A45-4CBA-9299-C2323F73A506' -- AeX AC Client Agent WHERE c.IsManaged = 1 AND (rus.ModifiedDate IS NULL OR rus.ModifiedDate < DATEADD(DAY, -@days, GETDATE())) ORDER BY rus.ModifiedDate ASC; -- NULLs (never received) sort first |
Column | Meaning |
|---|---|
Guid | Resource GUID of the computer |
Computer Name | Name of the computer resource |
Status | "Never received" if the computer has no AeX AC Client Agent record. "Stale" if the record is older than @days days. |
Last Client Agent Data Received | ModifiedDate of the AeX AC Client Agent record. Purging Maintenance uses this date. |
Days Since Last Report | Days between the last AeX AC Client Agent update and today. Blank for "Never received." |
Resource Created Date | Date the computer resource was created in the CMDB |
Caution: Before you delete a "Never received" computer, check Resource Created Date. A computer created in the last few hours or days may have a new agent that has not sent basic inventory yet. |
Note: The Last Client Agent Data Received date can differ from the basic inventory date shown in the console. See Basic Inventory last received information is not updated in the SMP Console. |
Purging Maintenance applies filters that this query does not:
As a result, the "Stale" list can include computers that Purging Maintenance does not act on. Review the list before you delete computers by hand in Option 3.
In ITMS 8.x, Delete and the other right-click context menu actions do not appear automatically for records in a custom SQL report. You configure them in the report's Drilldowns settings.
Setting | Value |
|---|---|
Name | Action (Delete) |
Available On | NewView |
Event | Right-click |
Performs | Show context menu |
Computers due for retire or delete by Purging Maintenance: query with projected dates
How does purging maintenance work in Symantec Management Platform?
How Purging works in a Hierarchy
How Purge Maintenance Work on a Reporting Server
Active Directory Import Synchronization functionality
Basic Inventory last received information is not updated in the SMP Console