(file) Return to setProperty.htm CVS log (file) (dir) Up to [Pegasus] / pegasus / cgi / htdocs

  1 karl  1.1 <html>
  2 a.arora 1.4 <head>
  3             <script>
  4             	function rTrim(tempStr){
  5                                  while( tempStr.lastIndexOf(' ') == tempStr.length-1 && tempStr.length > 0 )
  6                                  { 
  7                                      tempStr = tempStr.substring(0,tempStr.length-1) 
  8                                  }
  9                                  document.SetProperty.InstanceName.value = tempStr;
 10             	}
 11             </script>
 12             </head>
 13             	<body bgcolor="#cccccc">
 14             		<table width="100%">
 15             			<tr>
 16             				<td width="50%" align="bottom"><h1>Set Property CIM Operation</h1>
 17             				<td>
 18             				<td width="50%" align="right">
 19             					<img border="1" src="/pegasus/icons/OpenGroupLogo.gif">
 20             				</td>
 21             			</tr>
 22             		</table>
 23 a.arora 1.4 		<hr>
 24             		<form name="SetProperty" METHOD="get" ACTION="/pegasus/cgi-bin/CGIClient">
 25             			<INPUT TYPE="hidden" NAME="Operation" VALUE="SetProperty"> <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">
 26             			<INPUT TYPE="hidden" NAME="debug">
 27             			<p>The <tt>setProperty</tt>
 28             			CIM operation sets a single property value&nbsp;on a CIM Instance.
 29             			<p>NameSpace&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="NameSpace" SIZE="30" VALUE="root/cimv2">
 30             				String that defines the target namespace. See <A href="enumeratenamespaces.html">NameSpace 
 31             					Operations</A>
 32             			for more information
 33             			<p>InstanceName <INPUT TYPE="text" NAME="InstanceName" SIZE="30"> Defines the Name 
 34             				of the instance whose property value is to be set. See <A href="EnumerateInstanceNames.html">
 35             					Enumerate Instance Names</A>
 36             			for instance names for a class
 37             			<p>PropertyName <INPUT TYPE="text" NAME="PropertyName" SIZE="30">
 38             			Name of the property whose value is to be updated.
 39             			<p>New value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="NewValue" size="30">
 40             			New value for the property.
 41             			<p><INPUT TYPE="submit" VALUE="Submit Request" onClick="rTrim(document.SetProperty.InstanceName.value);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 42             				<INPUT TYPE="reset" VALUE="Reset Form">
 43             		</form>
 44 a.arora 1.4 		<hr>
 45             		&nbsp;
 46             		<hr>
 47             		<h2>Return Request</h2>
 48             		If unsuccessful, one of the following status codes MUST be returned by this 
 49             		method, where the first applicable error in the list (starting with the first 
 50             		element of the list, and working down) is the error returned. Any additional 
 51             		method-specific interpretation of the error in is given in parentheses.
 52             		<UL>
 53             			<LI>
 54             			CIM_ERR_ACCESS_DENIED
 55             			<LI>
 56             			CIM_ERR_INVALID_NAMESPACE
 57             			<LI>
 58             			CIM_ERR_INVALID_PARAMETER (including missing,duplicate, unrecognized or 
 59             			otherwise incorrect parameters)
 60             			<LI>
 61             			CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace)
 62             			<LI>
 63             			CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance 
 64             			does not exist in the specified namespace)
 65 a.arora 1.4 			<LI>
 66             			CIM_ERR_NO_SUCH_PROPERTY (the CIM Instance does exist, but the requested 
 67             			CIMProperty does not)
 68             			<LI>
 69             				CIM_ERR_FAILED (some other unspecified error occurred)</LI>
 70             		</UL>
 71             		<hr>
 72             		<h2>Additional Information</h2>
 73             		The <TT>setProperty</TT> operation sets a single property value in a CIM 
 74             		Instance in the target Namespace.&nbsp;
 75             		<p>
 76             		NameSpace The NameSpace parameter is a string that defines the target 
 77             		namespace.&nbsp;
 78             		<p>
 79             		InstanceName The InstanceName input parameter specifies the name of the 
 80             		Instance (model path) for which the CIMProperty value is to be updated.&nbsp;
 81             		<p>
 82             		PropertyName The PropertyName input parameter specifies the name of the 
 83             		CIMProperty whose value is to be updated.&nbsp;
 84             		<p>Newvalue The NewValue input parameter specifies the new value for the 
 85             			CIMProperty (which may be NULL).&nbsp;
 86 a.arora 1.4 			<hr>
 87             			<h2>
 88             				Pegasus C++ API as defined in Operations.h
 89             			</h2>
 90             			<pre>    virtual void setProperty(
 91 karl    1.1         const String&amp; nameSpace,
 92             		const CIMReference&amp; instanceName,
 93             		const String&amp; propertyName,
 94             		const CIMValue&amp; newValue = CIMValue()) = 0;
 95             
 96             </pre>
 97 a.arora 1.4 			<hr>
 98             		<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
 99             			<font size="2">Demonstration Prepared by the OpenGroup Manageability Work Group 
100             				Pegasus Development Team</font>
101             		<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
102             			<font size="2">See (<a href="http://www.opengroup.org/management">http://www.opengroup.org/management</a>) 
103             				for more information on Pegasus</font>
104             		<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
105             			<font size="1">Last Modified <!--webbot bot="Timestamp" S-Type="EDITED"
106                 S-Format="%A, %B %d, %Y %I:%M:%S %p" startspan --> 
107             				Friday, June 29, 2001 06:46:49 PM<!--webbot bot="Timestamp" i-CheckSum="55165" endspan --> 
108             				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copyright @ The Open Group 2001&nbsp;</font>
109             			<script>
110 karl    1.3 	   document.SetProperty.hostaddress.value = top.hostAddress;
111                    document.SetProperty.debug.value = top.debug;
112                    document.SetProperty.NameSpace.value = top.NameSpace;
113             	   window.focus();
114 a.arora 1.4 			</script>
115             		</p>
116             	</body>
117 karl    1.1 </html>

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2