Hello Imran,
EMs info are stored in the vertices table, you can run a query like this for example, in my test lab it give it the # of collectors
SELECT count(*) FROM APPMAP_VERTICES WHERE gathered_attribs LIKE '%EM_COLLECTOR%' AND gathered_attribs LIKE '%Custom Metric Host%'
but the recommended way would to be use APM RES API or APMSQL REST API, unfortunately, I don't have any example at the moment, here are the references from docops:
Vertex - CA Application Performance Management - 10.7 - CA Technologies Documentation
SQL REST API - CA Application Performance Management - 10.7 - CA Technologies Documentation
Collector information is also available as EM sustainability metrics under the MOM:
Custom Metric Host (virtual)
- Custom Metric Process (virtual)
- Custom Metric Agent (virtual) (*SuperDomain)
- Enterprise Manager | MOM
See CA APM Performance Monitoring Using Supportability Metrics - CA Application Performance Management - 10.7 - CA Technolog…
I hope this helps,
Sergio