How do we connect tags between objects in the CMDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2022 02:25 PM - edited ‎11-02-2022 02:25 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2022 07:34 AM
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:
Essentially from your application record, you can add all the related servers and this will build out the dependency map automatically.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 09:31 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 10:44 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 10:51 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-18-2022 10:56 AM
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.