Skip to content

Forensic Agent

Collect diagnostic KPIs, run forensic scripts, and investigate errors.

7 articles

The Forensic Agent is an important tool designed to investigate the HEAL data. The collected data is precise and ensures all the respective parameters are listed in the forensic report. Its capabilities include the retrieval of HEAL's critical information, metadata analysis, and the identification of artifacts essential for forensic examinations.

Forensic Agent Architecture#

#

Forensic Agent Architecture

Prerequisites

This section provides the list of prerequisites required to execute forensic scripts on the target server.

Linux/Unix#

1. The forensic_lib.sh file must be available in the below directory:

<working_dir>/lib

2. In each working directory, the user must have permission to create the files.

Solaris#

1. Ensure the ifconfig & perl commands are enabled.

2. Ensure the lsof command is enabled.

Windows#

1. The PowerShell version must be 2+. The user should have access to Powershell.exe.

2. forensic_lib.ps1 file must be available in the below directory:

<working_dir>/lib

Configuration Modifications#

Linux/Unix#

1. "FIELD_SEPARATOR" and "CMD_OP_SEPARATOR" values need to be exported before executing the scripts.

Example:

export FIELD_SEPARATOR="#@#@#APPSONE_NEWLINE#@#@#"
export CMD_OP_SEPARATOR="#@#@#APPSONE_COMMAND_OUTPUT_SEPARATOR#@#@#"

2. Navigate to the <working_dir>/config folder.

Edit the forensic_config.sh file as follows:

Attribute Description
LOCAL_JAVA_HOME Provide Java path.
PSTACK_TIMEOUT This is the time duration in seconds for which forensic script waits for pstack to complete the execution. If the pstack process doesn't complete the execution within this interval, the forensic script stops pstack. The default value is 30 seconds.
ORA_DB_TIMEOUT This is the time duration in seconds for which the forensic script waits for a response from the Oracle DB. The default value is 30 seconds.
MSSQL_DB_TIMEOUT This is the time duration in seconds for which the forensic script waits for a response from the MSSQL DB. The default value is 30 seconds.
HPC_SQL_ID_COUNT Provide the SQL IDs limit for DB hard passing. An SQL ID is a reference for the records you get from the DB. Details from DB are captured for these SQL IDs. The default value for this attribute is 5.
HPC_TABLE_STATS_COUNT For each SQL ID, records of table stats are received. Specify the HPC stats count in this attribute.
PHY_READ_SQL_ID_COUNT Physical reads for reading the KPI categories. Provide the SQL IDs limit for physical reads.
PHY_READ_TABLE_STATS_COUNT For each SQL ID, records of table stats are received. Specify the physical read stats count in this attribute.

3. In the target server, the user must have the privilege to execute the following commands:

OS Utilities
AIX 7.1 ps, proctree, procstack, truss, uptime, sar, vmstat, netstat, sqlcmd, java
Linux ps, pstree, pstack, strace, uptime, sar, vmstat, netstat, sqlcmd, java
Solaris ps, ptree, pstack, truss, uptime, sar, vmstat, netstat, sqlcmd, java
HP-UX ps, pstree, pstack, tusc, uptime, sar, vmstat, netstat, sqlcmd, java

Windows#

1. FIELD_SEPARATOR and CMD_OP_SEPARATOR values need to be exported before executing the scripts.

For example:

$ENV:FIELD_SEPARATOR="#@#@#APPSONE_NEWLINE#@#@#"
$ENV:CMD_OP_SEPARATOR="#@#@#APPSONE_COMMAND_OUTPUT_SEPARATOR#@#@#"

2. In Windows PowerShell, set Set-ExecutionPolicy to RemoteSigned or Unrestricted.

Set-ExecutionPolicy RemoteSigned (or) Set-ExecutionPolicy Unrestricted

3. The user must have the privilege to execute the following commands:

KPI Category Commands
CPU Get-WmiObject win32_perfFormatteddata_perfproc_Process
Memory Get-WmiObject win32_physicalmemory
Get-WmiObject win32_perfFormatteddata_perfproc_Process
Disk Get-WmiObject Win32_PerfRawData_PerfDisk_PhysicalDisk
Network NetStat

Configure a Forensics Agent for the Account.