77 lines
1.5 KiB
Plaintext
77 lines
1.5 KiB
Plaintext
//**********************************************************************
|
|
|
|
//
|
|
|
|
// File Name: smoke.txt
|
|
|
|
//
|
|
|
|
// Purpose: This script file is used to smoke test executing basic commands
|
|
|
|
// in no particular order order
|
|
|
|
// History:
|
|
|
|
// Date Person Description
|
|
|
|
// 11/19/97 Sanjay Agarwal Creation of Script file
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//**********************************************************************
|
|
|
|
|
|
|
|
connect root\DmiNodes\local
|
|
|
|
|
|
Connected to root\DmiNodes\local
|
|
// Adding few Component //
|
|
|
|
|
|
|
|
ExecMethod( "DmiNodeData=@", "AddComponent", "DmiAddMethodParams.MifFile=c:\testmifs\dbtypes1.mif"
|
|
|
|
|
|
Start ExecMethod -----------------------------------------
|
|
ObjectPath is DmiNodeData=@
|
|
Method is AddComponent
|
|
InParams = DmiAddMethodParams
|
|
MifFile = c:\testmifs\dbtypes1.mif
|
|
|
|
Calling ExecMethod
|
|
|
|
No Out Params Object
|
|
|
|
Failed to ExecMethod: WBEM_E_FAILED (0x80041001)
|
|
|
|
|
|
|
|
ExecMethod( "DmiNodeData=@", "AddComponent", "DmiAddMethodParams.MifFile=c:\testmifs\tempcom1.mif"
|
|
|
|
|
|
Start ExecMethod -----------------------------------------
|
|
ObjectPath is DmiNodeData=@
|
|
Method is AddComponent
|
|
InParams = DmiAddMethodParams
|
|
MifFile = c:\testmifs\tempcom1.mif
|
|
|
|
Calling ExecMethod
|
|
|
|
No Out Params Object
|
|
|
|
Failed to ExecMethod: WBEM_E_FAILED (0x80041001)
|
|
|
|
// list the components added
|
|
|
|
|
|
|
|
dump instances "DmiComponent"
|
|
|
|
|
|
Start Instance Enumeration -----------------------------
|
|
Class Name is DmiComponent
|
|
|