Executing Methods in IANet_DiagTest
Executing RunTest, and Other Methods in WbemTest
The RunTest method from the MOF file is as follows:
uint32
RunTest([IN] CIM_ManagedSystemElement ref SystemElement,
[IN] CIM_DiagnosticSetting ref Setting,
[OUT] CIM_DiagnosticResult ref Result);
The first two parameters are In parameters. You must get the object path
of both objects referenced. You must also get the object path of the IANet_DiagTest object, which is
exporting the RunTest object.
- From the main WBEM test dialog box, click Connect.
- Enter the appropriate Server\Namespace. Namespaces IntelNCS and CimV2 are supported.
- Click the Enum Instances button of WBEM test and enter IANet_DiagTest.
- Double-click the instance of IANet_DiagTest. The name will be in the form
X@[AdapterGUID}, where X is the test name and AdapterGUID will be the Adapter Name, same as the Name key of the IANet_EthernetAdapter.
- The following is an example of the object path retrieved:
\\MYCOMPUTER\root\Cimv2:IANet_DiagTest.Name="1@{4A0CDABE-F6C3-45D0-B60D-F6E7BAFA2C2C}"
- Save the object path.
- Click the Enum Instances button of WBEM test
and enter IANet_EthernetAdapter.
- Double-click on the adapter to be tested.
- The following is an example of the object path retrieved:
\\MYCOMPUTER\root\cimv2:IANet_EthernetAdapter.DeviceID="{4A0CDABE-F6C3-45D0-B60D-F6E7BAFA2C2C}"
- Save the object path.
- Click the Enum Instances button of WBEM test and enter IANet_DiagSetting.
- Double-click on the setting that represents the adapter/test combination.
- The following is an example of the object path retrieved:
\\MYCOMPUTER\root\cimv2:IANet_DiagSetting.SettingID="1@{4A0CDABE-F6C3-45D0-B60D-F6E7BAFA2C2C}"
- Save the object path.
- From the main WBEM test dialog box, click Execute Method.
- Paste the IANet_DiagTest object path into the dialog box. Click OK.
- Select the test in the drop-down box under method.
- Click the Edit In Parameters button.
- For RunTest, Setting and SystemElement are the In
parameters. Paste the previously saved Setting and Adapter object paths and close.
- Click the Execute button.
- Enumerate the IANet_DiagResult class, in the same manner as the In parameters.
- Examine the selected result object as needed.
Home
Copyright© 2002 Intel Corporation. Legal Information