IBM Support

JR23276: FP12: RUNNING A WMI SAMPLE SCRIPT REGVAR.VBS PRODUCES AN ERROR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • I have a customer who is trying to run a WMI sample script -
    regvar.vbs. Whenever he runs the script it produces the
    following error :
    
    Enumerate DB2INSTANCE and DB2INSTPROF for all local instances:
    C:\SQLLIB\samples\wmi\regvar.vbs(24, 1) (null): 0x80041010
    
    Which means that the specified class is not valid.  The customer
    found out that when replacing class-name IBMDB2_InstKey with
    IBMDB2_InstRegKey (on line 23,33,46) it runs fine without any
    errors.
    
    I tested this, running the script without any changes it
    produced the same error. When making the changes as the
    customer advised the script ran fine without any errors.
    
    Test:
    
    Ensure that the DB2 WMI Provider is registered by running the
    following commands:
    
    > mofcomp %DB2PATH%\bin\db2wmi.mof
    > regsvr32 %DB2PATH%\bin\db2wmi.dll
    
    regvar.mof must be compiled and loaded for regvar.vbs sample to
    run correctly, so run the following command:
    
    > mofcomp regvar.mof
    
    Use the following command to run the script without altering the
    script regvar.vbs.
    
    C:\SQLLIB\samples\wmi>cscript regvar.vbs
    
    Error should be produced.
    
    Use the same command to the run the script but replace
    IBMDB2_InstKey with IBMDB2_InstRegKey (on line 23,33,46) in the
    regvar.vbs script.
    
    C:\SQLLIB\samples\wmi>cscript regvar.vbs
    
    Script should run fine, producing no errors.
    

Local fix

  • Replace class-name IBMDB2_InstKey with IBMDB2_InstRegKey
    

Problem summary

  • RUNNING A WMI SAMPLE SCRIPT REGVAR.VBS PRODUCES AN ERROR.
    
    Problem Summary:
    Trying to run a WMI sample script - regvar.vbs.
    Whenever you run the script it produces the following error :
    
    
    Enumerate DB2INSTANCE and DB2INSTPROF for all local instances:
    C:\SQLLIB\samples\wmi\regvar.vbs(24, 1) (null): 0x80041010
    
    Which means that the specified class is not valid.
    When replacing class-name IBMDB2_InstKey with
    IBMDB2_InstRegKey (on line 23,33,46) it runs fine without any
    errors.
    

Problem conclusion

  • Problem is fixed in version 8 FixPack 12 (s060429)
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR23276

  • Reported component name

    DB2 UDB PE WIND

  • Reported component ID

    5724B5501

  • Reported release

    820

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2006-02-13

  • Closed date

    2006-05-16

  • Last modified date

    2006-05-16

  • 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

    DB2 UDB PE WIND

  • Fixed component ID

    5724B5501

Applicable component levels

  • R820 PSY

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"820"}]

Document Information

Modified date:
06 October 2021