cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 8
Report Inappropriate Content
Message 1 of 5

Enumerating Client Datasources through ESM API

I am using devGetDeviceList(...) to pull a list of receivers, and running dsGetDataSourceList(...) to pull data sources from them. However I need to go deeper and pull the clients/group IPSIDs for each data source.

Is there a v2 API that can handle this task?

Thanks

4 Replies
Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 5

Re: Enumerating Client Datasources through ESM API

I believe you are looking for dsGetDataSourceDetail

Highlighted
Level 8
Report Inappropriate Content
Message 3 of 5

Re: Enumerating Client Datasources through ESM API

Unfortunately there's no child data sources in dsGetDataSourceDetail()...

However I just happened to try grpGetDeviceTreeEx() just now and it pulled the entire device tree, so just FYI.

 

Highlighted
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 4 of 5

Re: Enumerating Client Datasources through ESM API

Apologies, looks like I am sending the query to devGetDeviceList, using types BUCKET, THIRD_PARTY, EPO_APP, NSM_SENSOR and iterating through the results to dsGetDataSourceDetail to extrapolate the additional details.

Highlighted

Re: Enumerating Client Datasources through ESM API

Hello,

 

Have you tried to use the API Python wrapper (https://github.com/mfesiem/msiempy) ? More specifically the DevTree object. It loads all Datasources informations into one simple list object and let you access and filter all items.

 

 

from msiempy.device import DevTree

devtree = DevTree()
print("All Datasources")
print(devtree.get_text(fields=['parent_name', 'name']))

 

 See datasource docs here for list of fields and more documentation : https://mfesiem.github.io/docs/msiempy/device.html#msiempy.device.DataSource

The code will list all your Datasources displaying only their name and parent name, but much more infos are accessible.

 

All Datasources
|     parent_name      |                                   name                                  |
|         n/a          |                                Local ESM                                |
|      Local ESM       |                           ePolicy Orchestrator                          |
| ePolicy Orchestrator | ePolicy Orchestrator_Endpoint Security Adaptive Threat Protection (ePO) |
| ePolicy Orchestrator |          ePolicy Orchestrator_Endpoint Security Firewall (ePO)          |
| ePolicy Orchestrator |          ePolicy Orchestrator_Endpoint Security Platform (ePO)          |
| ePolicy Orchestrator |      ePolicy Orchestrator_Endpoint Security Threat Prevention (ePO)     |
| ePolicy Orchestrator |         ePolicy Orchestrator_Endpoint Security Web Control (ePO)        |
| ePolicy Orchestrator |                 ePolicy Orchestrator_ePO Audit Log (ePO)                |
| ePolicy Orchestrator |          ePolicy Orchestrator_ePolicy Orchestrator Agent (ePO)          |
| ePolicy Orchestrator |                         ePolicy Orchestrator_TIE                        |
|      Local ESM       |                            Local Receiver-ELM                           |
|  Local Receiver-ELM  |                                  CS CEF                                 |
|  Local Receiver-ELM  |                             Test Datasource                             |

 

 

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community