version 1.8, 2001/06/30 15:28:09
|
version 1.9, 2004/02/17 11:47:25
|
|
|
<html> | <html> |
<body bgcolor="#CCCCCC"> |
<head> |
|
<script> |
|
function rTrim(tempStr){ |
|
while( tempStr.lastIndexOf(' ') == tempStr.length-1 && tempStr.length > 0 ) |
|
{ |
|
tempStr = tempStr.substring(0,tempStr.length-1) |
|
} |
|
document.GetProperty.InstanceName.value = tempStr; |
|
} |
|
</script> |
|
</head> |
|
<body bgcolor="#cccccc"> |
<table width="100%"> | <table width="100%"> |
<tr> | <tr> |
<td width="50%" align="bottom"><h1>GetClassProperty</h1><td> |
<td width="50%" align="bottom"><h1>GetClassProperty</h1> |
|
<td> |
<td width="50%" align="right"> | <td width="50%" align="right"> |
<img border=1 src="/pegasus/icons/OpenGroupLogo.gif"> |
<img border="1" src="/pegasus/icons/OpenGroupLogo.gif"> |
</td> | </td> |
</tr> | </tr> |
</table> | </table> |
<hr> | <hr> |
<form name="GetProperty" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient"> |
<form name="GetProperty" METHOD="get" ACTION="/pegasus/cgi-bin/CGIClient"> |
<INPUT TYPE="hidden" NAME="Operation" VALUE="GetProperty"> |
<P> |
<INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988"> |
<INPUT TYPE="hidden" NAME="Operation" VALUE="GetProperty"> <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988"> |
<INPUT TYPE="hidden" NAME="debug" VALUE=""> |
<INPUT TYPE="hidden" NAME="debug" value=""> |
<p>NameSpace <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2"> |
</P> |
<p>ClassName <INPUT TYPE="text" NAME="ClassName" SIZE=30> |
<P>The g<TT>etProperty</TT> CIM operation retrieves a single property value |
<p>PropertyName <INPUT TYPE="text" NAME="PropertyName" SIZE=30> |
from a CIM Instance. |
<p><INPUT TYPE="submit" VALUE="GetProperty"> |
</P> |
<p><INPUT TYPE="reset" VALUE="Reset"> |
<p>NameSpace <INPUT TYPE="text" NAME="NameSpace" SIZE="30" VALUE="root/cimv2"> String |
|
that defines the target namespace. See <A href="enumeratenamespaces.html">NameSpace |
|
Operations</A> |
|
for more information |
|
<p>InstanceName <INPUT TYPE="text" NAME="InstanceName" SIZE="30"> |
|
Defines the Name of the instance whose property value is to be retrieved. See <A href="EnumerateInstanceNames.html"> |
|
Enumerate Instance Names</A> |
|
for instance names for a class |
|
<p>PropertyName <INPUT TYPE="text" NAME="PropertyName" SIZE="30"> |
|
Name of the property whose value is to be retrieved. |
|
<p><INPUT TYPE="submit" VALUE="Submit Request" onClick="rTrim(document.GetProperty.InstanceName.value);"> <INPUT TYPE="reset" VALUE="Reset Form"></p> |
</form> | </form> |
|
|
<hr> | <hr> |
<h2> | <h2> |
|
|
Return Results</h2> | Return Results</h2> |
<p> | <p> |
|
|
If successful, the return value specifies the value of the requested | If successful, the return value specifies the value of the requested |
CIMProperty. If the value is NULL then no element is returned. |
CIMProperty. If the value is NULL then no element is returned. If unsuccessful, |
|
one of the following status codes MUST be returned by this method, where the |
If unsuccessful, one of the following status codes MUST be returned by this |
first applicable error in the list (starting with the first element of the |
method, where the first applicable error in the list (starting with the |
list, and working down) is the error returned. Any additional method-specific |
first element of the list, and working down) is the error returned. Any |
interpretation of the error in is given in parentheses. |
additional method-specific interpretation of the error in is given in |
|
parentheses. |
|
<UL> | <UL> |
<LI>CIM_ERR_ACCESS_DENIED |
<LI> |
<LI>CIM_ERR_INVALID_NAMESPACE |
CIM_ERR_ACCESS_DENIED |
<LI>CIM_ERR_INVALID_PARAMETER (including missing, duplicate, |
<LI> |
unrecognized or otherwise incorrect parameters) |
CIM_ERR_INVALID_NAMESPACE |
<LI>CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified |
<LI> |
namespace) |
CIM_ERR_INVALID_PARAMETER (including missing, duplicate, unrecognized or |
<LI>CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM |
otherwise incorrect parameters) |
Instance does not exist in the specified namespace) |
<LI> |
<LI>CIM_ERR_NO_SUCH_PROPERTY (the CIM Instance does exist, but the |
CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace) |
requested CIMProperty does not) |
<LI> |
<LI>CIM_ERR_FAILED (some other unspecified error occurred) |
CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance |
|
does not exist in the specified namespace) |
|
<LI> |
|
CIM_ERR_NO_SUCH_PROPERTY (the CIM Instance does exist, but the requested |
|
CIMProperty does not) |
|
<LI> |
|
CIM_ERR_FAILED (some other unspecified error occurred)</LI> |
</UL> | </UL> |
|
|
<hr> | <hr> |
<h2>Additional Description of the Operation</h2> | <h2>Additional Description of the Operation</h2> |
|
This operation is used to retrieve a single property value from a CIM Instance |
This operation is used to retrieve a single property value from a CIM |
in the target Namespace. <p><b> <a name="NameSpace">NameSpace</a></b> |
Instance in the target Namespace. <p><b> <a name="NameSpace">NameSpace</a></b> |
- The NameSpace parameter is a string that defines the target namespace |
- The NameSpace parameter is a string that defines the target |
\Ref{NAMESPACE} <p><b><a name="InstanceName">InstanceName</a></b> - The |
namespace \Ref{NAMESPACE} <p><b><a name="InstanceName">InstanceName</a></b> |
InstanceName input parameter specifies the name of the Instance (model path) |
- The InstanceName input parameter specifies the name of the Instance |
from which the CIMProperty value is requested. <a href="file://Ref{INSTANCENAME">\\Ref{INSTANCENAME</a> |
(model path) from which the CIMProperty value is |
} <p><b><a name="PropertyName">PropertyName </a></b>- The PropertyName |
requested. <a href="file://Ref{INSTANCENAME">\\Ref{INSTANCENAME</a>} <p><b><a name="PropertyName">PropertyName |
input parameter specifies the name of the CIMProperty whose value is to be |
</a></b>- The PropertyName input parameter specifies the name of the |
returned. |
CIMProperty whose value is to be returned. |
|
<hr> | <hr> |
<h2>Pegasus API in Operations.h</h2> | <h2>Pegasus API in Operations.h</h2> |
|
|
<pre> | <pre> |
virtual CIMValue getProperty( | virtual CIMValue getProperty( |
const String& nameSpace, | const String& nameSpace, |
const CIMReference& instanceName, | const CIMReference& instanceName, |
const String& propertyName) = 0; | const String& propertyName) = 0; |
</pre> | </pre> |
|
|
<hr> | <hr> |
|
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> |
<p style="margin-top: 0; margin-bottom: 0"> <font size="2">Demonstration |
<font size="2">Demonstration Prepared by the OpenGroup Manageability Work Group |
Prepared by the OpenGroup Manageability Work Group Pegasus Development Team</font> |
Pegasus Development Team</font> |
|
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> |
<p style="margin-top: 0; margin-bottom: 0"> <font size="2">See (<a href="http://www.opengroup.org/management">http://www.opengroup.org/management</a>) |
<font size="2">See (<a href="http://www.opengroup.org/management">http://www.opengroup.org/management</a>) |
for more information on Pegasus </font> | for more information on Pegasus </font> |
|
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> |
<p style="margin-top: 0; margin-bottom: 0"> <font size="1">Last Modified <!--webbot bot="Timestamp" S-Type="EDITED" |
<font size="1">Last Modified <!--webbot bot="Timestamp" S-Type="EDITED" |
S-Format="%A, %B %d, %Y %I:%M:%S %p" startspan -->Friday, June 29, 2001 06:45:16 PM<!--webbot bot="Timestamp" i-CheckSum="55017" endspan --> |
S-Format="%A, %B %d, %Y %I:%M:%S %p" startspan --> |
Copyright @ The Open Group 2001 </font> |
Friday, June 29, 2001 06:45:16 PM<!--webbot bot="Timestamp" i-CheckSum="55017" endspan --> |
|
Copyright @ The Open Group 2001 </font> |
<script> | <script> |
document.GetProperty.hostaddress.value = top.hostAddress; | document.GetProperty.hostaddress.value = top.hostAddress; |
document.GetProperty.debug.value = top.debug; | document.GetProperty.debug.value = top.debug; |
|
|
| |
window.focus(); | window.focus(); |
</script> | </script> |
|
</p> |
</body> | </body> |
</html> | </html> |