File Name
Syntax
N_CheckCallBack (VAL whdl:WINDOW)
Parameters
whdl - handle to the parent window
Returns
None
Side Effects
None
Description
Scans problem records which were created through the nsmprob interface to determine if there has been any status change for the problem. Such changes indicate that TPM or some other Tivoli product has modified the problem record. If such modifications are detected, the EV_SYS_CONFIG table is queried to determine if there is a callback action defined for the current state of the problem. The current states of a problem that can have a Callback function associated are: open (re-open), close, or update. This function is called via a timer event which is set up in monitor.kb.
Dialog Forms Called
None
File Name
Syntax
FUNCTION N_DoCallBack (VAL whdl:WINDOW, VAL problem_code:STRING, VAL problem_id:STRING, VAL nodeConfig:N_NODE_CONFIG_REC):BOOLEAN
Parameters
whdl - handle to the parent window
problem_code - indicates the type of callback to perform
(OPEN/CLOSE/UPDATE)
problem_id - ID of the problem for which to perform the callback
nodeConfig - problem configuration information for the node associated
with the given problem
Returns
bOk - Success flag (TRUE/FALSE)
Side Effects
None
Description
Performs a callback procedure. It checks for the existence of a user-defined callback routine for the open, close, or update operation. If such a user-defined function is identified, the function is called with the problem record structure for the identifed Problem_id, and the callback host name as arguments.
Dialog Forms Called
None
File Name
Syntax
N_TestCallbk (VAL wHdl:WINDOW, VAL nmpHostName:STRING, VAL curProb:PROBLEMRECORD, VAL ext_prob_id:STRING, REF bSuccess:BOOLEAN )
Parameters
whdl - handle to the parent window
nmpHostName - name of NMP host machine (where callback function
will ultimately be performed)
curProb - problem record for current problem
ext_prob_id - external problem ID
bSuccess -sSuccess flag for callback function
Returns
None
Side Effects
None
Description
Test procedure for callbacks.
Dialog Forms Called
None