Code Examples. More...
Code Examples.
Fault Manager provides a mechanism to report faults that occurred in the system through the following two APIs:
Alarm Manager uses clFaultReport() to report non-service impacting alarm to Fault Manager which invokes the action configured by the user corresponding to the alarm category and severity. The following example shows the usage of clFaultReport(). It reports fault for MO \Chassis:0\TestSync2T1:0 belonging to category CL_ALARM_SEVERITY_MINOR.
For service impacting alarms, Alarm Manager(AM) publishes an event which is subscribed by Availability Management Framework(AMF). AMF does service recovery and informs Fault Manager(FM) to take appropriate action. FM invokes the appropriate handler for the alarm. This handler is being defined by the user during modeling of the system. Following example shows the usage of clFaultRepairAction()
The following API checks for version compatibility of the Application.