fwSystemOverview
8.4.1
|
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) |
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
int fwSysOverview_getProjAccessData | ( | string | projDp, |
dyn_mixed & | projectData | ||
) |
Gets Access data for polling the project
projDp | Project datapoint name |
projectData | 1. pmon number | 2. pmon user name | 3. pmon user password |
|
int fwSysOverview_getPcConfigData | ( | string | pcDp, |
dyn_mixed & | pcData | ||
) |
Gets PC config data
projDp | Project datapoint name |
projectData | 1. IP | 2. operating systems | 3. PVSS versions |
int fwSysOverview_getSystemConfigData | ( | string | systemDp, |
dyn_mixed & | systemData | ||
) |
Gets system config data
projDp | System datapoint name |
systemData | 1. system number | 2. data port number | 3. event port number
|
int fwSysOverview_getDeviceState | ( | string | deviceDp, |
unsigned & | deviceState | ||
) |
Get current state of the system
deviceDp | Device datapoint name |
deviceState | Device current state |
int fwSysOverview_pollProject | ( | string | projDp | ) |
Polls the PMON port of the project and populate the corresponding manager data in the projDp datapoint.
projDp | The 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
projDp | The name of the datapoint for which the polling flag is to be changed |
isPolling | The 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
sDpName | name of the dp |