fwSystemOverview  8.4.1
fwSystemOverview.ctl File Reference

Functions

int fwSysOverview_getProjAccessData (string projDp, dyn_mixed &projectData)
 
int fwSysOverview_getPcConfigData (string pcDp, dyn_mixed &pcData)
 
int fwSysOverview_getSystemConfigData (string systemDp, dyn_mixed &systemData)
 
int fwSysOverview_getDeviceState (string deviceDp, unsigned &deviceState)
 
int fwSysOverview_pollProject (string projDp)
 
int fwSysOverview_setIsPolling (string projDp, bool isPolling)
 
void fwSysOverview_initializeThreadHeartbits ()
 
void fwSysOverview_pollProjects (dyn_string projGroup, int groupN)
 
string fwSysOverview_getStrFromState (int stat)
 
string fwSysOverview_removeSystemName (string sDpName)
 

Detailed Description

This library contains functions associated with the JCOP Framework System Overview tool. The functions read the system configuration data from the DB and build a hierarchy of systems, PCs and . The Projects are polled simultaneously via the PMON port at regular intervals to get the list of managers and their states and triggers alerts as required.fwSysOverview_startMonitoring

Creation Date
26/06/2007
Modification History
Constraints
Author
Francisca Calheiros, Fernando Varela, Pawel Macuda EN-ICE-SCD (former IT-CO-BE)

Function Documentation

int fwSysOverview_getProjAccessData ( string  projDp,
dyn_mixed &  projectData 
)
Gets Access data for polling the project
Parameters
projDpProject datapoint name
projectData1. pmon number | 2. pmon user name | 3. pmon user password |
  1. dirpath | 5. system name | 6. host name
int fwSysOverview_getPcConfigData ( string  pcDp,
dyn_mixed &  pcData 
)
Gets PC config data
Parameters
projDpProject datapoint name
projectData1. IP | 2. operating systems | 3. PVSS versions
int fwSysOverview_getSystemConfigData ( string  systemDp,
dyn_mixed &  systemData 
)
Gets system config data
Parameters
projDpSystem datapoint name
systemData1. system number | 2. data port number | 3. event port number
  1. dist port number | 5. parent ID | 6. pc host name
int fwSysOverview_getDeviceState ( string  deviceDp,
unsigned &  deviceState 
)
Get current state of the system
Parameters
deviceDpDevice datapoint name
deviceStateDevice current state
int fwSysOverview_pollProject ( string  projDp)
Polls the PMON port of the project and populate the corresponding manager data in the projDp datapoint.
Parameters
projDpThe datapoint name of the project whose PMON is to be polled.
int fwSysOverview_setIsPolling ( string  projDp,
bool  isPolling 
)
Sets the IsPolling flag to indicate that a function is busy on polling the PMON port
for the project indicated by projDp
Parameters
projDpThe name of the datapoint for which the polling flag is to be changed
isPollingThe input value for the polling flag
void fwSysOverview_initializeThreadHeartbits ( )

Connects to the trigger datapoint which is used for invoking polling of PMON port of the projects and registers a work function 'fwSysOverview_wfPollProject' to handle the actual polling.Disconnects the trigger datapoint and deregisters the work function 'fwSysOverview_wfPollProject'

void fwSysOverview_pollProjects ( dyn_string  projGroup,
int  groupN 
)

Triggers PMON polling for all the projects in all the systems configured for fwSystemOverview tool and updates the state of the system based on the states of the projects in the system.

string fwSysOverview_getStrFromState ( int  stat)

Converts state in integer format to a string format. NOTE: By modifying this function one can add additional states

string fwSysOverview_removeSystemName ( string  sDpName)

Removes the system name from a dp-name

Parameters
sDpNamename of the dp
Returns
dp-name without the system name