(file) Return to snmpIndicationHandler.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Handler / snmpIndicationHandler

Diff for /pegasus/src/Pegasus/Handler/snmpIndicationHandler/snmpIndicationHandler.cpp between version 1.11 and 1.12

version 1.11, 2002/07/31 22:05:08 version 1.12, 2002/09/13 21:40:42
Line 84 
Line 84 
  
         if (!prop.isUninitialized())         if (!prop.isUninitialized())
         {         {
             String propName = prop.getName();              CIMName propName = prop.getName();
             Uint32 propPos = indicationClass.findProperty(propName);             Uint32 propPos = indicationClass.findProperty(propName);
             if (propPos != PEG_NOT_FOUND)             if (propPos != PEG_NOT_FOUND)
             {             {
             CIMProperty trapProp = indicationClass.getProperty(propPos);             CIMProperty trapProp = indicationClass.getProperty(propPos);
  
             qualifierPos = trapProp.findQualifier("MappingStrings");              qualifierPos = trapProp.findQualifier(CIMName ("MappingStrings"));
             if (qualifierPos != PEG_NOT_FOUND)             if (qualifierPos != PEG_NOT_FOUND)
             {             {
                 trapQualifier = trapProp.getQualifier(qualifierPos);                 trapQualifier = trapProp.getQualifier(qualifierPos);
Line 136 
Line 136 
         snmpDeliverTrap_stub emanateTrap;         snmpDeliverTrap_stub emanateTrap;
 #endif #endif
  
     if ((handler.findProperty("TrapDestination") != PEG_NOT_FOUND) &&      if ((handler.findProperty(CIMName ("TrapDestination")) != PEG_NOT_FOUND) &&
         (handler.findProperty("SNMPVersion") != PEG_NOT_FOUND) &&          (handler.findProperty(CIMName ("SNMPVersion")) != PEG_NOT_FOUND) &&
         (indicationClass.findQualifier("MappingStrings") != PEG_NOT_FOUND))          (indicationClass.findQualifier(CIMName ("MappingStrings")) !=
               PEG_NOT_FOUND))
     {     {
         String community, trapType, destination;   // from handler instance         String community, trapType, destination;   // from handler instance
         String trapOid;     // from indication Class         String trapOid;     // from indication Class
  
         trapOid = indicationClass.getQualifier(         trapOid = indicationClass.getQualifier(
             indicationClass.findQualifier("MappingStrings")).getValue().toString();              indicationClass.findQualifier
                   (CIMName ("MappingStrings"))).getValue().toString();
  
         trapOid = trapOid.subString(trapOid.find("OID.IETF | SNMP.")+16);         trapOid = trapOid.subString(trapOid.find("OID.IETF | SNMP.")+16);
  
         community = handler.getProperty(         community = handler.getProperty(
             handler.findProperty("SNMPCommunityName")).getValue().toString();              handler.findProperty
                   (CIMName ("SNMPCommunityName"))).getValue().toString();
  
         destination = handler.getProperty(         destination = handler.getProperty(
             handler.findProperty("TrapDestination")).getValue().toString();              handler.findProperty
                   (CIMName ("TrapDestination"))).getValue().toString();
  
         trapType = handler.getProperty(         trapType = handler.getProperty(
             handler.findProperty("SNMPVersion")).getValue().toString();              handler.findProperty
                   (CIMName ("SNMPVersion"))).getValue().toString();
  
         emanateTrap.deliverTrap(         emanateTrap.deliverTrap(
             trapOid,             trapOid,


Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2