Enrichment Rule for updating Location attribute for windows CIs
I have ucmdb 10.10 on windows. I have around 200 windows CI and want to update location attribute. Location attribute value is not same for all widnows CIs and it is different. Please help me with clear steps. Currently location attribute is blank.
Re: Enrichment Rule for updating Location attribute for windows CIs
I suggest reviewing chapter 12 in the Modeling Guide on the Enrichment Manager if you are not familiar with Enrichments.
You may need to create an enrichment per location and there are multiple ways to use an Enrichment to do this. This is just one example.
Find what commonality each Windows server in a location has
Like all Windows servers in location A are in subnet(s) X.X.X.A and Windows servers in location D are in subnet(s) X.X.X.D
The following process will use this subnet example and you will have to edit this process for your environment
Create a new enrichment for location A with a base TQL in Query mode of IPSubnet CIT with a Membership relationship to Windows CIT
In the Query Node Properties of the IPSubnet CI, qualify the IPSubnets of Location A
If you are using CIDR, use Display Label to qualify IP Subnets
In the Query Node Properties of the Windows CI, qualify the Windows CIs with Discovered Location attribute is null so the enrichment does not keep on working when unncessary
Go to Enrichment Mode and right-click on the Windows CI and select Update Query Node. Select on the Discovered Location attribute and for the value field enter Location A and click on the save then OK buttons.
Now when you run this Enrichment, all Windows Servers in subnet X.X.X.A will have Location A in the Discovered Location attribute.
Repeat for the other locations. You can also do a Save As on an Enrichment and modify it