Client Management Suite

 View Only

Importing Symantec Endpoint Protection Compliance Data into Altiris. 

Jul 29, 2015 10:55 AM

Importing Symantec Endpoint Protection Compliance Data into Altiris.

We saw an opportunity to gain better insight into what was going on with computers in SEP by bringing the SEP compliance data into Altiris where it could be reported on and actioned.   More people have access to Altiris reports than SEP reports, and Altiris can take actions on SEP data in an automated fashion according to rules that you define.  The first step is to get the SEP data into Altiris where you can work with it.

 Here is what the end result looks like:

SEP1.png

These fields can all be brought into any number of reports or used to target the machines with policies etc.

There are several steps to implementing this described below.

Create the SEPM query.

NOTE: to run a query against the SEPM database you will need valid credentials that will also have to be entered into Altiris.

You need to pull the relevant details from each computer so that you can see where it stands from a SEP perspective at a glance.  To do that I constructed a SQL query to pull this data from SEP.  I wanted to get the following details:

  • ComputerName - Computer name for matching
  • AVDEFDATE - The date  stamp of the virus definitions
  • LastCheckin - The last time the computer checked into SEP
  • CreationDate - When the computer first joined SEP
  • DaysSinceCheckin - How long since the computer checked into SEP
  • DaysSinceDiscovery – How long the computer has been in SEP
  •  OutofDateDays - How out of date the Virus definitions are
  • Agent_Version - The version of the SEP agent
  • Infected - If the workstation is infected or not

Here is the query that I came up with:

SELECT DISTINCT SEM_COMPUTER.COMPUTER_NAME AS 'Computer name',
PATTERN.PATTERNDATE as 'AV DAte',
dateadd(second, SEM_AGENT.LAST_UPDATE_TIME/1000, '1970-01-01') AS 'LastCheckin',
dateadd(second, SEM_Client.CREATION_TIME/1000, '1970-01-01') AS 'CreationTime',
DATEDIFF(d,(dateadd(second, SEM_AGENT.LAST_UPDATE_TIME/1000, '1970-01-01')),GETDATE())as 'Days Since Last Checkin',
DATEDIFF(d,(dateadd(second, SEM_Client.CREATION_TIME/1000, '1970-01-01')),GETDATE())as 'Days Since Discovery',
DATEDIFF(d,PATTERN.PATTERNDATE,(dateadd(second, SEM_AGENT.LAST_UPDATE_TIME/1000, '1970-01-01'))) AS 'OutofDateDays',
SEM_AGENT.AGENT_VERSION,
SEM_AGENT.INFECTED
FROM SEM_COMPUTER
INNER JOIN SEM_AGENT ON SEM_AGENT.COMPUTER_ID=SEM_COMPUTER.COMPUTER_ID
INNER JOIN SEM_CLIENT ON SEM_CLIENT.COMPUTER_ID=SEM_COMPUTER.COMPUTER_ID
INNER JOIN SEM_CONTENT ON SEM_CONTENT.AGENT_ID=SEM_AGENT.AGENT_ID
INNER JOIN PATTERN ON PATTERN.PATTERN_IDX=SEM_AGENT.PATTERN_IDX
INNER JOIN (
SELECT SEM_COMPUTER.COMPUTER_NAME AS 'TempHostName',
MAX(SEM_AGENT.LAST_UPDATE_TIME) AS 'TempMax'
FROM SEM_COMPUTER
INNER JOIN SEM_AGENT ON SEM_AGENT.COMPUTER_ID=SEM_COMPUTER.COMPUTER_ID
GROUP BY COMPUTER_NAME)
TestTable ON TestTable.TempHostName=SEM_COMPUTER.COMPUTER_NAME
AND TestTable.TempMax=SEM_AGENT.LAST_UPDATE_TIME
WHERE PATTERN.PATTERN_TYPE='VIRUS_DEFS'
AND PATTERN.DELETED='0'
AND SEM_CONTENT.DELETED='0'
AND SEM_AGENT.DELETED='0'
AND SEM_COMPUTER.DELETED='0'

 

Add the SEPM Data Source

  1. In Altiris got to Settings > All Settings > Notification Server > Connector > Data Sources
  2. Create a new OLEDB data source
  3. Fill out the details of your SEPM instance.
  4. Add the SEPM query  and test your datasource
  5. SEP2.png

Create the new SEPM dataclass to house these data

  1. In Altiris go to Settings > All Settings > Notification Server > Data Classes
  2. Create a new Dataclass called something like Symantec Endpoint Protection Compliance
  3. Add Attributes that match the SEPM Query you create
  4. SEP3.png

Add the new Symantec Dataclass to the Computer Resource

This is the tricky part that took a while to find.  In order for the custom data to be written to each computer object, that dataclass must be associated to the computer resource type.

  1. In Altiris got to Settings > All Settings > Notification Server > Resource and data Class settings > Resources Types > Asset Types > IT
  2. Open Computer
  3. Scroll to the Bottom and choose “Add Data Classes”
  4. Navigate to your new Data Class and check the box next to it to add it to the Computer record
  5. SEP4.png

Create your import Export Rule

This Rule maps the data to the data class “writing” it to each matching computer record

  1. In Altiris got to Settings > All Settings > Notification Server > Connector > Import/Export Rules
  2. Right Click on Import/Export Rules and choose New > Resource Import/Export Rule

Filling out this Rule is easier than it looks. You are just matching the data from your query to the data in your custom Data Class

  1. Data source = your newly created SEPM data source
  2. Replication Direction =  Import
  3. Resource Lookup key:  This is the part that matches the computer name gathered from SEP with the Altiris gather computer name.  In our case it’s just: Resource Name on the left and Computer Name on the right. 
  4. Data Class mappings: Click this and browse to an select your Symantec Endpoint protection Compliance data class
  5. I found it important to uncheck “create resources if doesn’t exist”.  You don’t want a bunch of SEP only computers getting created in your Altiris
  6. Map the query data to the Data class in the table that appears below it
  7. SEP5.png
  8. When its complete test your rule by choosing the "Test Rule" button.
  9. This can take a few minutes for my 28,000 endpoints it take between 4 and 8 minutes to run
  10. If all looks good schedule your rule to run on whatever regular schedule suits your needs. You will be able to find the SEP data for all matching compouter names inside the inventory on each computer resource manager as depicted in the first screenshot of this article.

 

 

 

Statistics
0 Favorited
0 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Comments

Dec 08, 2015 09:49 AM

Hi Michael,

This functions is available in 7.1 and 7.5 but doesn't initially appear so.

You should have a scroll bar on the far right of the screen that allows you to scroll down to it.

Regards

Oct 30, 2015 12:07 PM

that's a shame.  I am not sure if that part is required for the rest to work.  I think that you could still import the data and run computer reports including it without that step.

 

Thanks

Oct 30, 2015 09:34 AM

Hi JaSkarstedt,

Thank you for reply. This function does not appear on neither 7.1 nor 7.5 NS version. Maybe it is somewhere else but I could not find this option.

Regards

Oct 29, 2015 01:39 PM

thanks Jakub,

I am on 7.6 HF4 I don't have access to a 7.5 NS anymore.

 

This is what I see

Adddataclasses.png

what this is doing is making that data class part of the computer resource so that you can view it in the resource monitor.

does this help at all?

Oct 29, 2015 12:00 PM

Hi JaSkarstedt,

Thank you for a great article!

I wonder if you could tell me on which SMP version you based this tutorial, as I'm on 7.5.3153 and can't find “Add Data Classes” button in step 3, "Add the new Symantec Dataclass to the Computer Resource" part.

Could you please help me to understand what is accomplished there exactly (it will be easier for me to find it then), and maybe advice where I can possibly find it?

Regards,

Jakub

 

Related Entries and Links

No Related Resource entered.