Resource Status is being overwritten on the Parent server in hierarchy or when Basic Inventory is received
search cancel

Resource Status is being overwritten on the Parent server in hierarchy or when Basic Inventory is received

book

Article ID: 153068

calendar_today

Updated On:

Products

IT Management Suite

Issue/Introduction

On the parent NS, if you change the resource status from Active to something else (like Retired, Out of order, etc), when replication occurs it is overwritten by whatever status that resource has in the Child NS.

This is part of the original design where the Child NS is the source of truth regarding resource status values. However, if you are using Asset/CMDB on the parent and you need to set a different resource status, this is ignored.

Also, if Basic Inventory is received for any computer resource that has a custom non-active status, that status is overwritten and changed to Active.

Environment

ITMS 8.x

Cause

Working as designed.  The purpose of a hierarchy is for objects to be replicated between parent and child servers. This would include the properties, status, and state of the objects. However, there is a workaround to prevent the core services from switching the status of a computer to the status it had received via replication or basic inventory.

 

Resolution

To Disable overwriting status

Steps to disable overwriting the status when resources are replicated from the Child NS to Parent NS:

  1. On the parent NS databases run the attached "Fix Asset Status Association.sql"
  2. On the parent NS, open the "Coresettings.config" file (under c:\ProgramData\Symantec\SMP\Settings)
  3. Search for the setting "ReactivateResourcesWhenInventoryReceived"
  4. Change value from "True" to "False"
  5. On the parent and child NS, go to "C:\Program Files\Altiris\Resource\ResourceMgmt_ResourceTypeAssociations.config"
  6. Search for "Asset's Status" and find the attribute "hierarchyReplicationMode"
  7. Set the attribute to "skip" if you do not want the status overwritten.
     

To Re-enable overwriting status

Steps to re-enable overwriting the status when resources are replicated from the Child NS to Parent NS:

  1. On the parent NS, open the "Coresettings.config" file (under c:\ProgramData\Symantec\SMP\Settings)
  2. Search for the setting "ReactivateResourcesWhenInventoryReceived"
  3. Change value from "False" to "True"
  4. On the parent and child NS, go to "C:\Program Files\Altiris\Resource\ResourceMgmt_ResourceTypeAssociations.config"
  5. Search for "Asset's Status" and find the attribute "hierarchyReplicationMode"
  6. Set the attribute to "Replicate" if you do want it overwritten. 

Additional Information

152868 "Retired' status is being changed automatically to 'Active' when basic inventory reports in.

Attachments

Fix Asset Status Association.sql get_app