WizRM_IBMPSG_PhysicalMemory Resource Model Documentation


This resource model monitors the IBMPSG_PhysicalMemory availability

General Info

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

Dynamic Model

Class AliasROOT\ibmsd:IBMPSG_PhysicalMemory
Cim NameROOT\ibmsd:IBMPSG_PhysicalMemory
Numeric Attributes
    String Attributes
    • Tag
    • Status
    • CreationClassName
    Collection TypeNon Sorted
    Sorting Field---
    Top---
    Every1
    FilteringWHERE Status = "PFA%"

    Events

    Internal NameIBMPSG_PhysicalMemory_Status_PFA
    Descriptive NameStatus matches
    DescriptionThis event is generated when the memory status is predicting a failure or has an error
    Message@Tag@ reports @Status@
    Numeric Attributes
      String Attributes
      • Tag
      • CreationClassName
      • Status
      Keys
      • Tag
      Occurrences1
      Holes0
      Clearing EventTRUE
      Send to TECTRUE
      Send to TBSMFALSE
      SeverityCRITICAL

      Thresholds

      Internal NameDescriptive NameDescriptionDefault Value

      Parameters

      Internal NameDescriptive NameDescriptionTypeValues
      Par_Status_nesStatus mismatching valuesWhen the property Status is different from all the values of this parameter the event Ev_IBMPSG_PhysicalMemory_Status_unmatches is generated STRING LIST
      • PFA: Memory Status Normal

      Logging

      ContextResourceKeysNumeric AttributesString Attributes

      Decision Tree Script

      //''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
      //    IBM Tivoli Monitoring
      //    Decision Tree script
      //
      //    This file has been generated by IBM Tivoli Monitoring Workbench
      //
      //    04/16/2004 16:16:31
      
      //'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
      
      
      
      
      // 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_PhysicalMemory");
      	Svc.SetProfileName ("20487671");
      	Svc.SetCycleTime (300);
      	//<<\GENERAL_INFO>>
      
      	// Thresholds section
      	//<<THRESHOLDS_INFO>>
      	//<<\THRESHOLDS_INFO>>
      
      	// Parameters section
      	//<<PARAMETERS_INFO>>
      	Svc.DefineStrParameter ("Par_Status_nes", "PFA: Memory Status Normal");
      	//<<\PARAMETERS_INFO>>
      
      	// Dynamic model section
      	//<<DATA_INFO>>
      	Svc.DefineClass ("CIM", "ROOT\\ibmsd:IBMPSG_PhysicalMemory", "ROOT\\ibmsd:IBMPSG_PhysicalMemory", "WHERE Status = \"PFA%\"", "", "Tag,Status,CreationClassName", "None", "", 0, 1);
      	//<<\DATA_INFO>>
      
      	// Event definition section
      	//<<EVENTS_INFO>>
      	Svc.DefineEvent ("IBMPSG_PhysicalMemory_Status_PFA", "", "Tag,CreationClassName,Status");
      	//<<\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_PhysicalMemory");
      	for ( idx = 0; idx < numOfInstances; idx++) {
      
      		Svc.RemoveMapAll(hPropTable);
      
      
      		curTag = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_PhysicalMemory", idx, "Tag");
      		Svc.SetMapStrElement(hPropTable,"Tag",curTag);
      		curCreationClassName = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_PhysicalMemory", idx, "CreationClassName");
      		Svc.SetMapStrElement(hPropTable,"CreationClassName",curCreationClassName);
      		curStatus = Svc.GetStrProperty("ROOT\\ibmsd:IBMPSG_PhysicalMemory", idx, "Status");
      		Svc.SetMapStrElement(hPropTable,"Status",curStatus);
      
      
      		Different = 1;
      		ParamCount = Svc.GetStrParameterCount("Par_Status_nes");
      		for (ParamIdx = 0; ParamIdx < ParamCount;  ParamIdx++) {
      			if ((curStatus.toLowerCase() + "") == (Svc.GetStrParameter("Par_Status_nes", ParamIdx).toLowerCase())) {
      				Different = 0;
      				break;
      			}
      		}
      		if (Different == 1) {
      			Svc.SendEventEx ("IBMPSG_PhysicalMemory_Status_PFA",hPropTable);
      		}
      	}
      
      	Svc.DestroyMap(hPropTable);
      
      	return (0);
      
      }
      
      

      Dependencies

      All
        w32-ix86


          This Html document has been generated by IBM Tivoli Monitoring Workbench