#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_add_package( ca_ident_t *id, OM_string *encod ); |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_commsAlrmNotif( ca_context_t *context, void *usrRef, ca_dmi_alarmInfo_t *alarmInfo ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_encode_moi_usrRef( ca_context_t *context, void *usrRef, OM_descriptor *encod ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_encode_objectClass( OM_descriptor *class, OM_descriptor *encod ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_envAlrmNotif( ca_context_t *context, void *usrRef, ca_dmi_alarmInfo_t *alarmInfo ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_equipAlrmNotif( ca_context_t *context, void *usrRef, ca_dmi_alarmInfo_t *alarmInfo ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_freeAttrChngLst( ca_context_t *context, char *attributeValueChange ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_freeAttrLst( ca_context_t *context, char *attributeList ); |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_init( ca_context_t *context ); |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_procErrAlrmNotif( ca_context_t *context, void *usrRef, ca_dmi_alarmInfo_t *alarmInfo ); |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#define CA_DMI_T_SOURCEINDICATOR_resource 0
#define CA_DMI_T_SOURCEINDICATOR_management 1 #define CA_DMI_T_SOURCEINDICATOR_unknown 2 |
#include <cmip/xom.h>
#include <tmn_agent/usr_caDefs.h> #include <tmn_agent/usr_caDmi.h> OM_return_code ca_dmi_tick( ca_context_t *context ); |
The ca_dmi_tick() function is used to update the DMI library's internal clock. This function needs to be called regularly by the agent to ensure that scheduling operations occur as expected. The granularity of time used in the scheduling attributes is one minute, therefore, calling this function at the minimum every 30 seconds is sufficient to maintain synchronization with a manager.
When ca_dmi_tick() is called, the operational state and availability status attribute values are checked for all EFD and log instances in the system, and updated if necessary.
Some members of this structure have a name that ends in Present. They indicate whether the optional member that follows them is present in a particular instance of the structure. For example, the member thresPresent is followed by the optional member thresholdInfo. If the thresholdInfo member is present, the thresPresent member must be set to CA_DMI_OPTIONAL_PRESENT. Otherwise, the thresPresent member must be set to CA_DMI_OPTIONAL_NOT_PRESENT.
#define CA_DMI_OPTIONAL_NOT_PRESENT 0
#define CA_DMI_OPTIONAL_PRESENT 1 |
#define CA_DMI_T_TRENDINDICATION_lessSevere 0
#define CA_DMI_T_TRENDINDICATION_noChange 1 #define CA_DMI_T_TRENDINDICATION_moreSevere 2 |
#define CA_DMI_OPTIONAL_NOT_PRESENT 0
#define CA_DMI_OPTIONAL_PRESENT 1 |
typedef struct ca_dmi_observedValue_t {
int choice; union { int integer; double real; } alt; } ca_dmi_observedValue_t; |
typedef struct ca_dmi_thresholdInfo_t {
ca_ident_t *id; ca_dmi_observedValue_t val; int thresPresent; ca_dmi_thresholdLevelInd_t thres; int armTimePresent; char armTime[24]; } ca_dmi_thresholdInfo_t; |
Some members of this structure have a name that ends in Present. They indicate whether the optional member that follows them is present in a particular instance of the structure. For example, the member thresPresent is followed by the optional member thres. If the thres member is present, the thresPresent member must be set to CA_DMI_OPTIONAL_PRESENT. Otherwise, the thresPresent member must be set to CA_DMI_OPTIONAL_NOT_PRESENT.
#define CA_DMI_OPTIONAL_NOT_PRESENT 0
#define CA_DMI_OPTIONAL_PRESENT 1 |
#define CA_DMI_OPTIONAL_NOT_PRESENT 0
#define CA_DMI_OPTIONAL_PRESENT 1 |
typedef struct ca_dmi_thresholdLevelInd_t {
int type; ca_dmi_observedValue_t high; int lowPresent; ca_dmi_observedValue_t low; } ca_dmi_thresholdLevelInd_t; |
Some members of this structure have a name that ends in Present. They indicate whether the optional member that follows them is present in a particular instance of the structure. For example, the member lowPresent is followed by the optional member low. If the low member is present, the lowPresent member must be set to CA_DMI_OPTIONAL_PRESENT. Otherwise, the lowPresent member must be set to CA_DMI_OPTIONAL_NOT_PRESENT.
#define CA_DMI_THRESHOLDLEVELIND_UP 1
#define CA_DMI_THRESHOLDLEVELIND_DOWN 2 |
#define CA_DMI_OPTIONAL_NOT_PRESENT 0
#define CA_DMI_OPTIONAL_PRESENT 1 |