This resource model monitors the IBMPSG_PhysicalNetworkAdapter availability
Internal Name | WizRM_IBMPSG_PhysicalNetworkAdapter |
Descriptive Name | IBMPSG_PhysicalNetworkAdapter Monitor |
Platforms | w32-ix86 |
Category | WizGenRM |
Category Description | Wizard Generated Resource Models |
Cycle Time | 300 |
Version | 1.0 |
Class Alias | ROOT\ibmsd:IBMPSG_PhysicalNetworkAdapter |
Cim Name | ROOT\ibmsd:IBMPSG_PhysicalNetworkAdapter |
Numeric Attributes | |
String Attributes |
|
Collection Type | Non Sorted |
Sorting Field | --- |
Top | --- |
Every | 1 |
Filtering |
Internal Name | IBMPSG_NetworkAdapter_Degraded |
Descriptive Name | IBMPSG network adapter is degraded |
Description | The device @Tag@ is degraded |
Message | The device @Tag@ is degraded |
Numeric Attributes | |
String Attributes |
|
Keys |
|
Occurrences | 1 |
Holes | 0 |
Clearing Event | TRUE |
Send to TEC | TRUE |
Send to TBSM | FALSE |
Severity | WARNING |
Internal Name | IBMPSG_NetworkAdapter_Error |
Descriptive Name | IBMPSG network adapter has an error |
Description | The device @Tag@ has an error |
Message | The device @Tag@ has an error |
Numeric Attributes | |
String Attributes |
|
Keys |
|
Occurrences | 1 |
Holes | 0 |
Clearing Event | TRUE |
Send to TEC | TRUE |
Send to TBSM | FALSE |
Severity | CRITICAL |
Internal Name | IBMPSG_NetworkAdapter_Lost_Comm |
Descriptive Name | IBMPSG_NetworkAdapter_Lost_Comm |
Description | The device @Tag@ has lost communication |
Message | The device @Tag@ has lost communication |
Numeric Attributes | |
String Attributes |
|
Keys |
|
Occurrences | 1 |
Holes | 0 |
Clearing Event | TRUE |
Send to TEC | TRUE |
Send to TBSM | FALSE |
Severity | CRITICAL |
Internal Name | IBMPSG_NetworkAdapter_Failed |
Descriptive Name | IBMPSG_NetworkAdapter_Failed |
Description | The device @Tag@ has failed |
Message | The device @Tag@ has failed |
Numeric Attributes | |
String Attributes |
|
Keys |
|
Occurrences | 1 |
Holes | 0 |
Clearing Event | TRUE |
Send to TEC | TRUE |
Send to TBSM | FALSE |
Severity | CRITICAL |
Internal Name | IBMPSG_NetworkAdapter_PredFail |
Descriptive Name | IBMPSG network adapter is predicting failure |
Description | The device @Tag@ is predicting failure |
Message | The device @Tag@ is predicting failure |
Numeric Attributes | |
String Attributes |
|
Keys |
|
Occurrences | 1 |
Holes | 0 |
Clearing Event | TRUE |
Send to TEC | TRUE |
Send to TBSM | FALSE |
Severity | CRITICAL |
Internal Name | Descriptive Name | Description | Default Value |
---|
Internal Name | Descriptive Name | Description | Type | Values |
---|---|---|---|---|
Par_Status_eqs | Status matching values | When the property Status is equal to one of the values of this parameter the event Ev_IBMPSG_PhysicalNetworkAdapter_Status_matches is generated | STRING LIST |
|
Context | Resource | Keys | Numeric Attributes | String Attributes |
---|
//'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' // IBM Tivoli Monitoring // Decision Tree script // // This file has been generated by IBM Tivoli Monitoring Workbench // // 02/28/2003 13:57:27 //''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' // This function is used to define the settings of the resource model // It is called only once, when the resource model is started. // Don't modify remarks containing tags like <<....>> ... <<\...>> // You can write additional initializing code in this function if required. function SetDefaultConfiguration (Svc) { // General info section //<<GENERAL_INFO>> Svc.SetModelName ("WizRM_IBMPSG_PhysicalNetworkAdapter"); Svc.SetProfileName ("76670906"); Svc.SetCycleTime (300); //<<\GENERAL_INFO>> // Thresholds section //<<THRESHOLDS_INFO>> //<<\THRESHOLDS_INFO>> // Parameters section //<<PARAMETERS_INFO>> Svc.DefineStrParameter ("Par_Status_eqs", "Pred Fail,Error,Degraded,Failed,Lost Comm"); //<<\PARAMETERS_INFO>> // Dynamic model section //<<DATA_INFO>> Svc.DefineClass ("CIM", "ROOT\\ibmsd:IBMPSG_PhysicalNetworkAdapter", "ROOT\\ibmsd:IBMPSG_PhysicalNetworkAdapter", "", "", "Tag,CreationClassName,Status", "None", "", 0, 1); //<<\DATA_INFO>> // Event definition section //<<EVENTS_INFO>> Svc.DefineEvent ("IBMPSG_NetworkAdapter_Degraded", "", "Tag"); Svc.DefineEvent ("IBMPSG_NetworkAdapter_Error", "", "Tag,Description"); Svc.DefineEvent ("IBMPSG_NetworkAdapter_Lost_Comm", "", "Tag"); Svc.DefineEvent ("IBMPSG_NetworkAdapter_Failed", "", "Tag"); Svc.DefineEvent ("IBMPSG_NetworkAdapter_PredFail", "", "Tag"); //<<\EVENTS_INFO>> // Logging definition section //<<LOGGING_INFO>> //<<\LOGGING_INFO>> // Place your additional intializing code below return (0); } // This function is called by the DM For Windows Analyzer after that // the resource model default settings have been overridden // It is called only once, when the resource model is started. // You can write additional initializing code in this function if required // to use the thresholds and parameters values function Init(Svc) { return (0); } // This function contains the monitoring algorithm // It is called ciclically after a cycle time has elapsed // Implement the the monitoring code here function VisitTree(Svc) { var curTag; var curCreationClassName; var curStatus; var hPropTable; var numOfInstances; var idx; var ParamCount; var ParamIdx; var Different; hPropTable = Svc.CreateMap(); numOfInstances = Svc.GetNumOfInst("ROOT\\ibmsd:IBMPSG_PhysicalNetworkAdapter"); for ( idx = 0; idx < numOfInstances; idx++) { Svc.RemoveMapAll(hPropTable); curTag = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_PhysicalNetworkAdapter", idx, "Tag"); Svc.SetMapStrElement(hPropTable,"Tag",curTag); curCreationClassName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_PhysicalNetworkAdapter", idx, "CreationClassName"); Svc.SetMapStrElement(hPropTable,"CreationClassName",curCreationClassName); curStatus = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_PhysicalNetworkAdapter", idx, "Status"); Svc.SetMapStrElement(hPropTable,"Status",curStatus); ParamCount = Svc.GetStrParameterCount("Par_Status_eqs"); if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_eqs", 0).toLowerCase())) { Svc.SendEventEx ("IBMPSG_NetworkAdapter_PredFail",hPropTable); } if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_eqs", 1).toLowerCase())) { Svc.SendEventEx ("IBMPSG_NetworkAdapter_Error",hPropTable); } if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_eqs", 2).toLowerCase())) { Svc.SendEventEx ("IBMPSG_NetworkAdapter_Degraded",hPropTable); } if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_eqs", 3).toLowerCase())) { Svc.SendEventEx ("IBMPSG_NetworkAdapter_Failed",hPropTable); } if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_eqs", 4).toLowerCase())) { Svc.SendEventEx ("IBMPSG_NetworkAdapter_Lost_Comm",hPropTable); } } Svc.DestroyMap(hPropTable); return (0); } |
All | |
w32-ix86 |
This Html document has been generated by IBM Tivoli Monitoring Workbench