We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

How do we connect tags between objects in the CMDB

Robert T
Tera Contributor

We are tagging Applications w various software dependencies.

We want the servers that are downstream from those applications to be able to inherit those tags.

 

Example:

A custom application has a tag of "SQL"

That application has a server, which we want to be able to inherit that tag to the form for the server

 

Is there any way to do this?

We attempted it through a custom database view, and it did not work.

9 REPLIES 9

Apologies  f you already looked into this, but since you are manually adding the tags anyway, a better way beside adding tags, is to just add the relationship using the relationship editor on the CI form.


Example shown in this video:

https://www.youtube.com/watch?v=krBmaMXuAuU

 

Docs:

https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/configuration-management/c...

 

 

 

Essentially from your application record, you can add all the related servers and this will build out the dependency map automatically. 

Demonstrate cmdb in servicenow, ci relationship in servicenow, ci relationship types, how to add ci relationship servicenow, servicenow ci relationship definitions, what is CI Relationship Editor in Servicenow, how to create relationship between CI in CMDB, how to modify CI relationships in CMDB ...

Robert T
Tera Contributor

Hi Mike,

Thanks for the response.  So we actually do have the relationships mapped between these objects.  The goal here is for a tag from the upstream object of the relationship to be inherited by the downstream object.

 

Example:

  • Application named X has a "uses" relationship with server Y
  • App X has a tag, "SQL Servers", which we want to be inherited by server Y
  • Ultimately, we want new servers that get provisioned to support the app (or to replace server Y), to be able to see the tag and provision with the software indicated in the tag

 

Any suggestions with this as context?

Since you already have the relationships, it might just a matter of creating a business rule so that whenever a tag if applies to an application/server/ci, those tags are automatically copied over to any downstream CIs. Does that sound right?

Robert T
Tera Contributor

That sounds about right I think!  I had not thought about that possibility, going to have to give it a whirl.  I wonder if that type of rule could be replicated in Flow Designer?

Yes, i think it can definitely be replicated in Flow Designer.

Trigger would be whenever a tag is added or removed. (You need to decide what table you will use to manage these tags)

 

Then lookup all child CIs (can use this table: cmdb_rel_ci)

 

And for each child CI, add or remove the tag.