Invoke an Extrinsic Method


Invoke an extrinsic method on an Instance present in the Namespace.

NameSpace    String that defines the target namespace. See NameSpace Operations for more information

InstanceName     The name of the Instance on which the method is to be invoked. See Enumerate Instance Names for instance names for a class

MethodName    The name of the method that is to be invoked. See Get Class  for methods supported by a class

Arguments      Input parameters in the same sequence as expected by the method. Delimit multiple parameters with a semicolon. Eg., Sam;1234;true;Sales

                


 

Return Request

If the Cim Server is unable to perform the extrinsic method invocation, one of the following status codes MUST be returned by the CimServer, where the first applicable error in the list (starting with the first element of the list, and working down) is the error returned. Any additional specific interpretation of the error is given in parentheses.

Additional Description

Any CIM Server is assumed to support extrinsic methods. Extrinsic methods are defined by the Schema supported by the Cim Server. If a Cim Server does not support extrinsic method invocations, it MUST (subject to the considerations described in the rest of this section) return the error code CIM_ERR_NOT_SUPPORTED to any request to execute an extrinsic method. This allows a CIM client to determine that all attempts to execute extrinsic methods will fail.


C++ API

    virtual CIMValue invokeMethod(
		const String& nameSpace,
		const CIMReference& instanceName,
		const String& methodName,
		const Array& inParameters,
		Array& outParameters) = 0;    

Demonstration Prepared by the OpenGroup Manageability Work Group Pegasus Development Team

See (http://www.opengroup.org/management) for more information on Pegasus

Last Modified Friday, June 29, 2001 06:46:22 PM       Copyright @ The Open Group 2001