cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

I am trying to create a DB read query to in in SPLUNK that will list the details of McAfee VSE, HIPS, ENS TP/FW/ATP and HDLP  products installed on the system while running epo 5.10. 

1 Solution

Accepted Solutions
cdinet
Employee
Employee
Report Inappropriate Content
Message 9 of 9

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

Here is the syntax I got when creating a table with your column names.

select [EPOLeafNode].[NodeName], [EPOLeafNode].[LastUpdate], [EPOComputerProperties].[UserName], dbo.epofn_EPOComputer_GetOS (EPOLeafNode.AutoID), [EPOLeafNode].[Tags], [EPOProdPropsView_EPOAGENT].[productversion], [EPOProdPropsView_UDLP].[productversion], [EPOProdPropsView_TIECLIENTMETA].[productversion], [ATP_CustomProps].[JTIContentVersion], [EPOProdPropsView_FIREWALL].[productversion], [EPOProdPropsView_ENDPOINTSECURITYPLATFORM].[productversion], [EPOProdPropsView_THREATPREVENTION].[productversion], [AM_CustomProps].[AMCoreContentDate], [EPOProdPropsView_HOSTIPS].[productversion], [EPOProdPropsView_MLFWALL].[productversion], [EPOProdPropsView_VSAS_STORAGE].[productversion], [EPOProdPropsView_VIRUSCAN].[datver], [EPOProdPropsView_VIRUSCAN].[enginever64], [EPOProdPropsView_VIRUSCAN].[enginever], [EPOProdPropsView_VIRUSCAN].[productversion], [EPOLeafNode].[AutoID] from [EPOLeafNode] left join [EPOProdPropsView_HOSTIPS] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_HOSTIPS].[LeafNodeID] left join [AM_CustomProps] on [EPOLeafNode].[AutoID] = [AM_CustomProps].[LeafNodeID] left join [EPOProdPropsView_VSAS_STORAGE] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_VSAS_STORAGE].[LeafNodeID] left join [EPOProdPropsView_UDLP] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_UDLP].[LeafNodeID] left join [EPOProdPropsView_THREATPREVENTION] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_THREATPREVENTION].[LeafNodeID] left join [EPOComputerProperties] on [EPOLeafNode].[AutoID] = [EPOComputerProperties].[ParentID] left join [EPOProdPropsView_MLFWALL] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_MLFWALL].[LeafNodeID] left join [EPOProdPropsView_ENDPOINTSECURITYPLATFORM] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_ENDPOINTSECURITYPLATFORM].[LeafNodeID] left join [EPOProdPropsView_EPOAGENT] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_EPOAGENT].[LeafNodeID] left join [ATP_CustomProps] on [EPOLeafNode].[AutoID] = [ATP_CustomProps].[LeafNodeID] left join [EPOProdPropsView_TIECLIENTMETA] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_TIECLIENTMETA].[LeafNodeID] left join [EPOProdPropsView_VIRUSCAN] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_VIRUSCAN].[LeafNodeID] left join [EPOProdPropsView_FIREWALL] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_FIREWALL].[LeafNodeID] order by [EPOLeafNode].[NodeName] asc

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

View solution in original post

8 Replies
cdinet
Employee
Employee
Report Inappropriate Content
Message 2 of 9

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

You can create the same query in epo console, save the query, then highlight it, actions, view sql.  That should give you the sql syntax you would need.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

I tried that but it keeps giving me partial result"lect top 360 count(*) as 'count', [EPOLeafNode].[AgentVersion], [EPOLeafNode].[AgentVersion] from [EPOLeafNode] group by [EPOLeafNode].[AgentVersion] order by 'count' desc, [EPOLeafNode].[AgentVersion] asc". 

 

I added the following columns "

Last CommunicationSystem NameUser NameOperating SystemTagsProduct Version (Agent)Product Version (DLP Endpoint)Product Version (Endpoint Security Adaptive Threat Protection)Adaptive Threat Protection content versionProduct Version (Endpoint Security Firewall)Product Version (Endpoint Security Platform)Product Version (Endpoint Security Threat Prevention)AMCore Content DateProduct Version (Host Intrusion Prevention)Product Version (McAfee Firewall for Linux)Product Version (VirusScan Enterprise for Storage)DAT Version (VirusScan Enterprise)Engine (x64) Version (VirusScan Enterprise)Engine Version (VirusScan Enterprise)Product Version (VirusScan Enterprise)

"

cdinet
Employee
Employee
Report Inappropriate Content
Message 4 of 9

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

If you run same query in epo, does it reproduce desired results?  Create your query in epo as a table, not a chart and see if that makes any difference - no grouping, etc.

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

Yes, I get the desired results. I also tried changing the chart type from pie to table to multi summary, no luck. 

cdinet
Employee
Employee
Report Inappropriate Content
Message 6 of 9

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

Ok, copy the syntax you are running in splunk, then run it manually in sql management studio as query.  Does it show correct results there?

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

I think I confused you, I am unable to get the full query from ePO to run in SPLUNK or SMSS. I get that partial SQL query when I select the query and do a view SQL. I need the full query to pull those columns.

cdinet
Employee
Employee
Report Inappropriate Content
Message 8 of 9

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

When you go to view sql, can you get a screenshot of that?  Otherwise, I can create it for you.

 

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

cdinet
Employee
Employee
Report Inappropriate Content
Message 9 of 9

Re: SPLUNK DB read query to detect all McAfee products installed on the end client.

Jump to solution

Here is the syntax I got when creating a table with your column names.

select [EPOLeafNode].[NodeName], [EPOLeafNode].[LastUpdate], [EPOComputerProperties].[UserName], dbo.epofn_EPOComputer_GetOS (EPOLeafNode.AutoID), [EPOLeafNode].[Tags], [EPOProdPropsView_EPOAGENT].[productversion], [EPOProdPropsView_UDLP].[productversion], [EPOProdPropsView_TIECLIENTMETA].[productversion], [ATP_CustomProps].[JTIContentVersion], [EPOProdPropsView_FIREWALL].[productversion], [EPOProdPropsView_ENDPOINTSECURITYPLATFORM].[productversion], [EPOProdPropsView_THREATPREVENTION].[productversion], [AM_CustomProps].[AMCoreContentDate], [EPOProdPropsView_HOSTIPS].[productversion], [EPOProdPropsView_MLFWALL].[productversion], [EPOProdPropsView_VSAS_STORAGE].[productversion], [EPOProdPropsView_VIRUSCAN].[datver], [EPOProdPropsView_VIRUSCAN].[enginever64], [EPOProdPropsView_VIRUSCAN].[enginever], [EPOProdPropsView_VIRUSCAN].[productversion], [EPOLeafNode].[AutoID] from [EPOLeafNode] left join [EPOProdPropsView_HOSTIPS] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_HOSTIPS].[LeafNodeID] left join [AM_CustomProps] on [EPOLeafNode].[AutoID] = [AM_CustomProps].[LeafNodeID] left join [EPOProdPropsView_VSAS_STORAGE] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_VSAS_STORAGE].[LeafNodeID] left join [EPOProdPropsView_UDLP] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_UDLP].[LeafNodeID] left join [EPOProdPropsView_THREATPREVENTION] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_THREATPREVENTION].[LeafNodeID] left join [EPOComputerProperties] on [EPOLeafNode].[AutoID] = [EPOComputerProperties].[ParentID] left join [EPOProdPropsView_MLFWALL] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_MLFWALL].[LeafNodeID] left join [EPOProdPropsView_ENDPOINTSECURITYPLATFORM] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_ENDPOINTSECURITYPLATFORM].[LeafNodeID] left join [EPOProdPropsView_EPOAGENT] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_EPOAGENT].[LeafNodeID] left join [ATP_CustomProps] on [EPOLeafNode].[AutoID] = [ATP_CustomProps].[LeafNodeID] left join [EPOProdPropsView_TIECLIENTMETA] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_TIECLIENTMETA].[LeafNodeID] left join [EPOProdPropsView_VIRUSCAN] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_VIRUSCAN].[LeafNodeID] left join [EPOProdPropsView_FIREWALL] on [EPOLeafNode].[AutoID] = [EPOProdPropsView_FIREWALL].[LeafNodeID] order by [EPOLeafNode].[NodeName] asc

Was my reply helpful?
If this information was helpful in any way or answered your question, will you please select Accept as Solution in my reply and together we can help other members?

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 our Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

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