WizRM_IBMPSG_PhysicalNetworkAdapter Resource Model Documentation


This resource model monitors the IBMPSG_PhysicalNetworkAdapter availability

General Info

Internal NameWizRM_IBMPSG_PhysicalNetworkAdapter
Descriptive NameIBMPSG_PhysicalNetworkAdapter Monitor
Platformsw32-ix86
CategoryWizGenRM
Category DescriptionWizard Generated Resource Models
Cycle Time300
Version1.0

Dynamic Model

Class AliasROOT\ibmsd:IBMPSG_PhysicalNetworkAdapter
Cim NameROOT\ibmsd:IBMPSG_PhysicalNetworkAdapter
Numeric Attributes
    String Attributes
    • Tag
    • CreationClassName
    • Status
    Collection TypeNon Sorted
    Sorting Field---
    Top---
    Every1
    Filtering

    Events

    Internal NameIBMPSG_NetworkAdapter_Degraded
    Descriptive NameIBMPSG network adapter is degraded
    DescriptionThe device @Tag@ is degraded
    MessageThe device @Tag@ is degraded
    Numeric Attributes
      String Attributes
      • Tag
      Keys
      • Tag
      Occurrences1
      Holes0
      Clearing EventTRUE
      Send to TECTRUE
      Send to TBSMFALSE
      SeverityWARNING

      Internal NameIBMPSG_NetworkAdapter_Error
      Descriptive NameIBMPSG network adapter has an error
      DescriptionThe device @Tag@ has an error
      MessageThe device @Tag@ has an error
      Numeric Attributes
        String Attributes
        • Tag
        • Description
        Keys
        • Tag
        Occurrences1
        Holes0
        Clearing EventTRUE
        Send to TECTRUE
        Send to TBSMFALSE
        SeverityCRITICAL

        Internal NameIBMPSG_NetworkAdapter_Lost_Comm
        Descriptive NameIBMPSG_NetworkAdapter_Lost_Comm
        DescriptionThe device @Tag@ has lost communication
        MessageThe device @Tag@ has lost communication
        Numeric Attributes
          String Attributes
          • Tag
          Keys
          • Tag
          Occurrences1
          Holes0
          Clearing EventTRUE
          Send to TECTRUE
          Send to TBSMFALSE
          SeverityCRITICAL

          Internal NameIBMPSG_NetworkAdapter_Failed
          Descriptive NameIBMPSG_NetworkAdapter_Failed
          DescriptionThe device @Tag@ has failed
          MessageThe device @Tag@ has failed
          Numeric Attributes
            String Attributes
            • Tag
            Keys
            • Tag
            Occurrences1
            Holes0
            Clearing EventTRUE
            Send to TECTRUE
            Send to TBSMFALSE
            SeverityCRITICAL

            Internal NameIBMPSG_NetworkAdapter_PredFail
            Descriptive NameIBMPSG network adapter is predicting failure
            DescriptionThe device @Tag@ is predicting failure
            MessageThe device @Tag@ is predicting failure
            Numeric Attributes
              String Attributes
              • Tag
              Keys
              • Tag
              Occurrences1
              Holes0
              Clearing EventTRUE
              Send to TECTRUE
              Send to TBSMFALSE
              SeverityCRITICAL

              Thresholds

              Internal NameDescriptive NameDescriptionDefault Value

              Parameters

              Internal NameDescriptive NameDescriptionTypeValues
              Par_Status_eqsStatus matching valuesWhen the property Status is equal to one of the values of this parameter the event Ev_IBMPSG_PhysicalNetworkAdapter_Status_matches is generated STRING LIST
              • Pred Fail
              • Error
              • Degraded
              • Failed
              • Lost Comm

              Logging

              ContextResourceKeysNumeric AttributesString Attributes

              Decision Tree Script

              //''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
              //    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);
              
              }
              
              

              Dependencies

              All
                w32-ix86


                  This Html document has been generated by IBM Tivoli Monitoring Workbench