Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Creating Remediation Scripts for TRITON AP-DATA > Existing discovery incident data functionality
Existing discovery incident data functionality
Creating Remediation Scripts | Data Protection | Version 8.3.x
To make it easier to write some code for common use cases, Forcepoint provides a helper Python module that performs some common tasks with the incident data XML file. This section describes the module in detail.
The module name is DiscoveryIncidentProcessing, and this module can be easily imported into your Python code.
It is not mandatory to use DiscoveryIncidentProcessing; it is perfectly valid to write your own XML parsing routines.
 
Note 
 
Below are some provided routines:
 
 
Example:
>>> import DiscoveryIncidentProcessing
>>> DiscoveryIncidentProcessing.GetFilePathFromXML(r'C:\Temp\5371106770671816417.xml')
(u'NETWORK', u'\\\\10.4.228.150\\DiscoveryTarget\\TestFile.txt', True)
>>>
 
 
Example:
>>> import DiscoveryIncidentProcessing
>>> DiscoveryIncidentProcessing.RunCommand(u'calc.exe',u'')
2011-07-19 18:14:59,888 root Debug Command:calc.exe
2011-07-19 18:15:02,663 root Debug RunCommand Successful
>>>
 
NOTE: The typo in the function name will be fixed in future versions.
 
Example:
>>> DiscoveryIncidentProcessing.ProcessDicoveryIncident(r'C:\Temp\5371106770671816417.xml',
u'notepad.exe filepath ')
2011-07-19 18:32:45,312 root Debug Processing C:\Temp\5371106770671816417.xml Encryption
2011-07-19 18:32:45,496 root Debug Processing \\10.4.228.150\DiscoveryTarget\TestFile.txt
2011-07-19 18:32:45,500 root Debug Command:notepad.exe \\10.4.228.150\DiscoveryTarget\TestFile.txt
2011-07-19 18:32:50,898 root Debug \\10.4.228.150\DiscoveryTarget\TestFile.txt RunCommand Successful
>>>
 
 
Example:
>>> DiscoveryIncidentProcessing.MoveDiscoveryIncident(r'C:\Temp\5371106770671816417.xml',r'C:\Temp',False,0,'')
2011-07-21 16:03:16,365 root Debug Processing C:\Temp\5371106770671816417.xml move file 0
2011-07-21 16:03:16,742 root Debug Moving \\10.4.228.150\DiscoveryTarget\TestFile.txt to C:\Temp
2011-07-21 16:03:16,786 root Debug Creating C:\Temp\10.4.228.150\DiscoveryTarget
>>>
 
 
 
 

Go to the table of contents Go to the previous page Go to the next page View or print as PDF
Creating Remediation Scripts for TRITON AP-DATA > Existing discovery incident data functionality
Copyright 2016 Forcepoint LLC. All rights reserved.