Defines, Structures, Typedefs, Functions.
More...
Classes |
struct | ClFaultEvent |
| The ClFaultEventT data structure is used by components like Alarm Manager, Component Manager, and Chassis Manager to report faults. More...
|
struct | ClFaultRecord |
| Fault Manager uses the ClFaultRecordT data structure to store information regarding the faults that it has processed. More...
|
struct | ClFaultRepairHandlerTable |
| The ClFaultRepairHandlerTableT structure is used to capture the repair handlers per MoClassType. More...
|
Functions |
ClRcT | clFaultRepairAction (CL_IN ClIocAddressT iocAddress, CL_IN ClAlarmHandleT alarmHandle, CL_IN ClUint32T recoveryActionTaken) |
| Notifies fault to the "Fault service" for taking repair action.
|
ClRcT | clFaultReport (CL_IN ClNameT *compName, CL_IN ClCorMOIdPtrT hMoId, CL_IN ClAlarmStateT alarmState, CL_IN ClAlarmCategoryTypeT category, CL_IN ClAlarmSpecificProblemT specificProblem, CL_IN ClAlarmSeverityTypeT severity, CL_IN ClAlarmProbableCauseT cause, CL_IN void *pData, CL_IN ClUint32T len) |
| Reports a fault to the Fault service.
|
ClRcT | clFaultSvcLibFinalize (void) |
| Cleans up the Fault Manager library and frees resources allocated to it.
|
ClRcT | clFaultSvcLibInitialize (void) |
| Initializes the Fault Manager Library.
|
ClRcT | clFaultVersionVerify (CL_INOUT ClVersionT *version) |
| Verifies the version of the FM library supported by the FM.
|
Detailed Description
Defines, Structures, Typedefs, Functions.
Macro Definition Documentation
#define CL_FAULT_ERR_DUPLICATE 0x100 |
The fault occured is duplicate.
It is a carbon copy of a fault that has occured earlier.
This is useful while comparing error codes returned by two or more components.
The individual component IDs can be extracted if the error returned by them is the same.
Typedef Documentation
Fault Manager uses the ClFaultRecordT data structure to store information regarding the faults that it has processed.
The faults are stored as ClFaultRecordT as a part of fault probation history.
Function Documentation
Notifies fault to the "Fault service" for taking repair action.
- Header File:
- clFaultApi.h
- Parameters
-
iocAddress | IocAddress of the node on which the fault occurred. |
alarmHandle | Alarm Handle which is used to get the corresponding alarm information and execute the repair handler for the matching moclass type |
recoveryActionTaken | Recovery action taken by AMF. |
- Return values
-
CL_OK | The API executed successfully. |
CL_ERR_NO_MEMORY | On memory allocation failure. |
CL_ERR_INVALID_HANDLE | The alarmHandle passed is invalid |
- Description:
- This function is used by AMF to inform Fault Manager to take repair actions corresponding to the fault. These kind of faults are initially raised as service-impacting alarm. The AMF does service recovery and informs Fault using this API for subsequent repair action. The role played by FM is to execute the repair handler configured by the user. The repair handlers are configured per MoClassType.
Reports a fault to the Fault service.
- Header File:
- clFaultApi.h
- Parameters
-
compName | Name of the component on which the fault occurred. |
hMoId | Handler of the MoId of the object on which the fault occurred. |
alarmState | State of the alarm, either assert or clear. |
category | Category of the fault. |
specificProblem | Specific-Problem of the fault. The specific problem is a means of segregating the duplicate probable causes which fall under the same probable cause list but are different with respect to the application. This information lies with the user/application and the interpretation solely rests in its hands. |
severity | Severity of the fault. |
cause | Probable cause of the fault. |
pData | Some additional information about the fault being notified. Additional information may be some message about the fault which the application notifies to FM. |
len | Length of pData, the additional information. |
- Return values
-
CL_OK | The API executed successfully. |
CL_FAULT_ERR_MOID_NULL | MoId passed to the fault is NULL. |
CL_FAULT_ERR_COMPNAME_NULL | Component name passed to fault is NULL. |
CL_FAULT_ERR_INVALID_CATEGORY | Fault is of invalid category. These categories are mentioned in ITUX.733. |
CL_FAULT_ERR_INVALID_SEVERITY | Fault is of invalid severity. These severity levels are mentioned in ITUX.733. |
CL_ERR_NO_MEMORY | On memory allocation failure. |
- Description:
- This function is used to report non-service impacting alarms that occurred in the system. This is a blocking call and will result in the handlers being called. The handlers are configured during modeling time and corresponds to a combination of category and severity. Five(5) handlers are configured for each combination of category and severity. These handlers are assigned sequence nos 1 to 5. When identical faults corresponding to the same category, cause, severity and specificProblem are reported within a probation period, the faults get escalated. This escalation is provided by invoking the next handler in the sequence. The implementation of the handlers is left to the user.
- Library File:
- ClFaultClient
ClRcT clFaultSvcLibFinalize |
( |
void |
| ) |
|
Cleans up the Fault Manager library and frees resources allocated to it.
- Header File:
- clFaultApi.h
- Parameters:
- None
- Return values
-
CL_OK | The API executed successfully. |
- Description:
- This function is used to clean up any resources allocated during the initialization of Fault Service. This must be called when the services are no longer required.
- Library File:
- ClFaultClient
- See Also
- clFaultSvcLibInitialize()
ClRcT clFaultSvcLibInitialize |
( |
void |
| ) |
|
Initializes the Fault Manager Library.
- Header File:
- clFaultApi.h
- Parameters:
- None
- Return values
-
CL_OK | The API executed successfully. |
- Description:
- This function is used to initialize the Fault Manager Library.
- Library File(s):
- ClFaultClient
- See Also
- clFaultSvcLibFinalize()
Verifies the version of the FM library supported by the FM.
- Header File:
- clFaultApi.h
- Parameters
-
version | (in/out) As an input parameter, this contains the version queried by you. In the output parameter, the supported version is returned by this function. |
- Return values
-
CL_OK | The API executed successfully. |
CL_FAULT_ERR_VERSION_UNSUPPORTED | The version supplied is incompatible. |
- Description:
- This function is used to check for version compatibility with the Fault client. When the version supplied by the Application is not compatible, the supported version is returned in the out parameter version
- Library File:
- ClFaultClient