HP (Hewlett-Packard) HP OpenView Vantagepoint – Operation Manual for UNIX User Manual

Page of 326
Using the Integration Capabilities of the VPO Motif-based GUI
Event Integration Through Messages
Chapter 3
94
Using the Logfile Monitoring Options
This section describes how to use the encapsulator options for different
types of logfile. The options Close After Read and Message On No
Logfile
 must be considered in each individual situation.
The options File to be Read and Command to be Executed enable
VPO to observe any type of file, including entire directories or binary
files. The logfile encapsulator detects the modification of the file and
runs the specified program which converts the required information into
a readable form for the encapsulator.
❏ Binary logfiles
For a binary logfile, you need a program to convert the binary data
into readable ASCII text. When the application generates binary files,
the following options are recommended:
• Enter the program required to convert the binary file into the
File to be executed
 field.
• Enter the name of the file containing the converted, readable text
into the File to be read field.
• Select the Read from begin (Always) option if the File to be
read
 will be completely overwritten.
❏ Logfiles without a constant name, for example,
logfile<number> or logfile<date>
The logfile encapsulator lets you observe directories that are modified
simultaneously if one of the files contained in the directory changes.
You need to use a subprogram or script that must discover the
modified files and extract the new information into another file to be
read by the encapsulator as “File to be read”. For logfiles with a
changing name, the following options are recommended:
• Enter the program required to discover the modified files into the
File to be executed
 field.
• Enter the name of the file containing the new information into the
File to be read
 field.
• Select the Read from begin (Always) option if the File to be
read
 will be completely overwritten.