IBM Support

IV22933: DISCO IP MALFORM

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ITNM 3.8 FP5
    Linux
    
    When disco encounter Ip addresses malformed (If the IP Address
    is not valid (e.g. 5 octets) or empty) it crases.Stitcher
    IsInSubnet fails.
    
    ------------------------
    Workaround provided:
    
    We put a workaround in place to avoid that, by creating the
    stitcher
    STIME_Util_IsInSubnet.stch.
    
    flag = ExecuteStitcher("STIME_Util_IsInSubnet", accessAddress,
    subnet,
    subnetMask);
    
    The CODE for stitcher STIME_Util_IsInSubnet.stch is :
    //
    // Stitcher that adds an entity to the list of RCA Virtual
    Entities
    //
    // Input
    // 1 - entityName of the virtual entity
    //
    UserDefinedStitcher
    {
      StitcherTrigger
      {
        // This is kicked off by another stitcher
        ActOnDemand();
      }
    
      StitcherRules
      {
        text ip = eval(text, '$ARG_1');
        text subnet = eval(text, '$ARG_2');
        text mask = eval(text, '$ARG_3');
        int flag = -1;
    
        if (ip != NULL) {
          if (subnet != NULL) {
            if (mask != NULL) {
              // Make sure the ip is indeed an ipv4
              ip = eval(text, 'REGEXPMATCH($ip,
    `(\d+\.\d+\.\d+\.\d+)$`)');
              if (ip != "") {
                flag = IsInSubnet(ip, subnet, mask);
              }
            }
          }
        }
        SetReturnValue(flag);
      }
    }
    

Local fix

  • We put a workaround in place to avoid that, by creating the
    stitcher
    STIME_Util_IsInSubnet.stch.
    
    flag = ExecuteStitcher("STIME_Util_IsInSubnet", accessAddress,
    subnet,
    subnetMask);
    
    The CODE for stitcher STIME_Util_IsInSubnet.stch is :
    //
    // Stitcher that adds an entity to the list of RCA Virtual
    Entities
    //
    // Input
    // 1 - entityName of the virtual entity
    //
    UserDefinedStitcher
    {
      StitcherTrigger
      {
        // This is kicked off by another stitcher
        ActOnDemand();
      }
    
      StitcherRules
      {
        text ip = eval(text, '$ARG_1');
        text subnet = eval(text, '$ARG_2');
        text mask = eval(text, '$ARG_3');
        int flag = -1;
    
        if (ip != NULL) {
          if (subnet != NULL) {
            if (mask != NULL) {
              // Make sure the ip is indeed an ipv4
              ip = eval(text, 'REGEXPMATCH($ip,
    `(\d+\.\d+\.\d+\.\d+)$`)');
              if (ip != "") {
                flag = IsInSubnet(ip, subnet, mask);
              }
            }
          }
        }
        SetReturnValue(flag);
      }
    }
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users with malformed IP discovery                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When disco encounter Ip addresses malformed (If the IP       *
    * Address is not valid (e.g. 5 octets) or empty). disco cores  *
    * in IsInSubnet check.                                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Apply testfix of IV22933                                     *
    * | fix pack | 3.9.0-ITNMIP-FP0003                             *
    * | fix pack | 3.8.0-ITNMIP-FP0007                             *
    ****************************************************************
    

Problem conclusion

  • The invalid IP address is detected in IsInSubnet check. However
    it tries to print the warning message with null record string.
    Need to check for the NULL pointer before any attempt for print
    string.
    
    The following fixpacks will contain the fix:
    | fix pack | 3.8.0-ITNMIP-FP0007
    | fix pack | 3.9.0-ITNMIP-FP0003
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV22933

  • Reported component name

    TIV NETWK MGR I

  • Reported component ID

    5724S4500

  • Reported release

    380

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-06-13

  • Closed date

    2012-07-13

  • Last modified date

    2013-01-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TIV NETWK MGR I

  • Fixed component ID

    5724S4500

Applicable component levels

  • R380 PSY

       UP

  • R390 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSSHRK","label":"Tivoli Network Manager IP Edition"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"380","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
23 January 2013