Example File Extractor Configurations

For example, if DEFSSRV contains the default Extractor server entry:

SERVER #FSCOL
OBJECT IRADICOL.EXE*
CPU -1
PROMGR_AWARE FULL
DEBUG NO
END_SERVER

…and UDEFSSRV contains the following entries;

SERVER #FSCOL2
OBJECT IRADICOL.EXE*
CPU -1
PROMGR_AWARE FULL
DEBUG NO
END_SERVER

SERVER #FSCOL3
OBJECT IRADICOL.EXE*
CPU -1
PROMGR_AWARE FULL
DEBUG NO
END_SERVER

* This will be IRADICOL.EXE for Windows, IRADICOL for UNIX and IREXTCOL for HPE NonStop.

…and the EXTRACTOR Configuration file contains the following entries:

SUBSYS EXTRACTOR
EXTRACT LOG (FSCOL, WVLOG.EXT, WVLOG.TXT, 15,50)
EXTRACT COMMAND (FSCOL2,NETSTAT.EXT, NETSTAT -NA,10)
EXTRACT FILE (FSCOL, ALLFIELD.EXT, DATA.TXT, 0)
EXTRACT COMMAND (FSCOL3,REPORTER.EXT GENREPORT, 1800,0,D:\APPLIC\
REPORT.OUT)

Then there are three Extractor servers running, FSCOL, FSCOL2 and FSCOL3.

FSCOL processes the following extractions:

  • The script file WVLOG.EXT is run to extract data from the WVLOG.TXT log file every 15 seconds, with a circular record buffer containing 50 records. Hence once 50 records are generated, there will always be 50 records available, with new records replacing old records. This would be a typical configuration for log files, as it allows a limited history of log entries to be visible on a display to provide context for newer log entries.

  • The script file ALLFIELD.EXT is run to extract data from the DATA.TXT file whenever requested. That is, if a Display is started that uses the record generated by ALLFIELD.EXT, then that script is run on the Display interval.

FSCOL2 processes the following extractions:

  • The script file NETSTAT.EXT is run to execute the NETSTAT -NA command every 10 seconds and process its output (which is the standard output, i.e. it is normally directed to the terminal when run interactively from a shell).

FSCOL3 processes the following extractions:

  • The script file REPORTER.EXT is run to execute the GENREPORT command every half-hour. The GENREPORT command is assumed to create a report in the file D:\APPLIC\REPORT.OUT and this is the file processed by the Extractor.

Provide feedback on this article