Get CI Informations during TopDown Discovery

TeeKaypA
Tera Expert

Hi all,

 

Can I access information of specific CI in a discovery pattern? I have to create a connection to a CI, but I don't know on which server this CI is running. However, horizontal discovery has already stored this information in the CMDB and therefore it would be great to get this information. Is there a way to get this informations? Host, Ports etc.

 

Thanks

Thomas

2 ACCEPTED SOLUTIONS

Prabu Velayutha
Mega Sage
Mega Sage

If you know in CMDB table data is located, then try to use the HTTP Get Call operation step to extract data on CI types with using the CMDB instance APIs, hope you can retrieve the data you expect.

Reference Product Document:

https://docs.servicenow.com/bundle/utah-it-operations-management/page/product/service-mapping/task/h...

 

View solution in original post

TeeKaypA
Tera Expert

Hi Guys,

This is the way to go if you need cmdb/ci information during topdown discovery.

Using GlideRecord scripting in Service Mapping Pat... - ServiceNow Community

View solution in original post

15 REPLIES 15

SiD2
ServiceNow Employee
ServiceNow Employee

Hi @TeeKaypA 

 

Patterns are not meant to access CMDB data and are irrelevant to its purpose.

 

If you need a connection, you need to develop the connection section of the pattern corresponding to the parent node. Then, create a new pattern that matches the entry point details so that the connection section triggers the new pattern you developed, and the CIs are also created. Map also is updated with your connection.

 

I hope this helps clear things up.

 

Please mark Helpful / Accept Solution so that it helps others with similar questions.

TeeKaypA
Tera Expert

Unfortunately it seems like there is no way to access cmdb data during a pattern as this runs on the mid server.

Prabu Velayutha
Mega Sage
Mega Sage

If you know in CMDB table data is located, then try to use the HTTP Get Call operation step to extract data on CI types with using the CMDB instance APIs, hope you can retrieve the data you expect.

Reference Product Document:

https://docs.servicenow.com/bundle/utah-it-operations-management/page/product/service-mapping/task/h...

 

thanks will try this

Please accept the solution if it works. Let me know if you encounter issues with API calls.