IBM

lsb_geteventrec

Get an event record from a log file

lsb_geteventrec returns an eventRec from a log file.

The storage for the eventRec structure returned by lsb_geteventrec will be reused by the next call.

#include <lsf/lsbatch.h>

struct eventRec *lsb_geteventrec(FILE * log_fp,int * lineNum)

Parameters:
*log_fp Either an event log file or a job log file.
*lineNum The number of the event record.
Data Structures:
eventRec
eventLog
xFile
jobAttrSetLog
logSwitchLog
dataLoggingLog
jgrpNewLog
jgrpCtrlLog
jgrpStatusLog
jobNewLog
jobModLog
jobStartLog
jobStartAcceptLog
jobExecuteLog
jobStatusLog
sbdJobStatusLog
sbdUnreportedStatusLog
jobSwitchLog
jobMoveLog
chkpntLog
jobRequeueLog
jobCleanLog
jobExceptionLog
sigactLog
migLog
signalLog
queueCtrlLog
hostCtrlLog
hgCtrlLog
mbdStartLog
mbdDieLog
unfulfillLog
jobFinishLog
loadIndexLog
calendarLog
jobForwardLog
jobAcceptLog
statusAckLog
jobMsgLog
jobMsgAckLog
jobOccupyReqLog
jobVacatedLog
jobForceRequestLog
jobChunkLog
jobExternalMsgLog
rsvRes
rsvFinishLog
cpuProfileLog
jobRunRusageLog
slaLog
perfmonLogInfo
perfmonLog
taskFinishLog
eventEOSLog
jobResizeNotifyStartLog
jobResizeNotifyAcceptLog
jobResizeNotifyDoneLog
jobResizeReleaseLog
jobResizeCancelLog
jobResizeLog
jRusage
jobProvisionStartLog
jobProvisionEndLog
Define Statements:
event_types
defs_lsb_XF_OP
jobgroup_controltypes
signal_action
Returns:
struct eventRec *:
A pointer to an eventRec which contains information on a job event and updates lineNum to point to the next line of the log file.
Function was successful.

NULL
Function failed.If there are no more records, returns NULL and sets lsberrno to LSBE_EOF.

Errors:
On failure, lsberrno is set to indicate the error.
Equivalent line commands:
none
Files:
$LSB_SHAREDIR/cluster_name/logdir/lsb.acct
$LSB_SHAREDIR/cluster_name/logdir/lsb.events
$LSB_SHAREDIR/cluster_name/logdir/lsb.rsv.ids
$LSB_SHAREDIR/cluster_name/logdir/lsb.rsv.state
See also:
lsb_hostcontrol

lsb_movejob

lsb_pendreason

lsb_puteventrec

lsb_queuecontrol

lsb_readjobinfo

lsb_submit

lsb_suspreason



     
Date Modified: 16 Jul 2014

Terms of Use
Copyright © 1994-2014 International Business Machines Corp.
US Government Users Restricted Rights - Use, duplication or disclosure
restricted by GSA ADP Schedule Contract with IBM Corp.