Service Map CIs and their relations?

Henrik Jutterst
Tera Guru

Is there a way to see all the CIs and their relations in a Service Map, just like they are displayed in cmdb_rel_ci table?

Service Mapping is using its own table svc_ci_assoc, but CIs in that view is just a list of CIs that's referring to the Mapped Application Service.

find_real_file.png

Basically, where can I find the data that draws this picture? CIs and their relations..

1 ACCEPTED SOLUTION

Hi,

The logic of the service visualization is not exposed 😞

(and it complex anyway)

 

However if u want to export the service to another instance we can help

We have it fully implemented for discovered service :

https://docs.servicenow.com/bundle/rome-it-operations-management/page/product/service-mapping/concept/transfer-service-definitions.html

 

For other kind of services we do not have this functionality
(in our roadmap and it will help if u can submit an enhancement request :-))

i can help with the following - try to run the below

gs.print(SNC.ServiceMappingFactory.exportService(SERVICE_ID));

 

This will give a list fo ci and how they should be related.

do not try to create relation by yourself - it is far more complicated and error prune

instead - use a script include called "CreateOrUpdateITService" method called addCI :

//addCI : function(bsID, sourceCiId , targetCIId) 

where you state service id , source ci in the service (or empty string if entry point) and target ci to be added or re-wire

 

a bit of work - but this is the general way to export other services

 

View solution in original post

8 REPLIES 8

@Henrik Jutterström - The Service Map is based on specific CI relationship types.  Among these are:

  • Applicative Flow From/To
  • Implements Endpoint From/To

The Service Map also has dependencies on specific CI classes called Endpoints.  There are different subclasses of the Endpoints table, including HTTP Endpoint and Manual Endpoint, which are used extensively, but you won't see these CIs in your map or in your dependency view as CIs.  And none of the special relationship types are displayed in the dependency view either.  Therein lies at least some of the "voodoo".  You will not see these CIs or Relationships but they are what is used to determine the content of your Service Map.

Please mark this as helpful if this helped you, and correct answer if this answered your question.


The opinions expressed here are the opinions of the author, and are not endorsed by ServiceNow or any other employer, company, or entity.

Hi,

The logic of the service visualization is not exposed 😞

(and it complex anyway)

 

However if u want to export the service to another instance we can help

We have it fully implemented for discovered service :

https://docs.servicenow.com/bundle/rome-it-operations-management/page/product/service-mapping/concept/transfer-service-definitions.html

 

For other kind of services we do not have this functionality
(in our roadmap and it will help if u can submit an enhancement request :-))

i can help with the following - try to run the below

gs.print(SNC.ServiceMappingFactory.exportService(SERVICE_ID));

 

This will give a list fo ci and how they should be related.

do not try to create relation by yourself - it is far more complicated and error prune

instead - use a script include called "CreateOrUpdateITService" method called addCI :

//addCI : function(bsID, sourceCiId , targetCIId) 

where you state service id , source ci in the service (or empty string if entry point) and target ci to be added or re-wire

 

a bit of work - but this is the general way to export other services

 

gs.print(SNC.ServiceMappingFactory.exportService('SERVICE_ID'));

I'd say that's as good as it gets I guess.

Thansk for the help!

 

Hi rotem1,

 

I know its a bit long time ago, but I do have question to your post. You mentioned the script include "CreateOrUpdateITService" and its function addCI in the post. I have tried it out and worked perfect. But the problem is that when I click the "Recalculate Service" link, all the added CIs were removed. So my question is that how can I retain the manuall added CIs in the map?

BTW, I am working with the Tag-based service mapping.

 

Thanks,

Scott