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

Diff for /pegasus/cgi/htdocs/Attic/setProperty.htm between version 1.3 and 1.4

version 1.3, 2001/06/30 15:28:09 version 1.4, 2004/02/17 11:54:34
Line 1 
Line 1 
 <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.SetProperty.InstanceName.value = tempStr;
           }
   </script>
   </head>
           <body bgcolor="#cccccc">
     <table width="100%">     <table width="100%">
       <tr>       <tr>
         <td width="50%" align="bottom"><h1>Set Property CIM Operation</h1><td>                                  <td width="50%" align="bottom"><h1>Set Property CIM Operation</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="SetProperty" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient">                  <form name="SetProperty" METHOD="get" ACTION="/pegasus/cgi-bin/CGIClient">
       <INPUT TYPE="hidden" NAME="Operation" VALUE="GetProperty">                          <INPUT TYPE="hidden" NAME="Operation" VALUE="SetProperty"> <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">
       <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">                          <INPUT TYPE="hidden" NAME="debug">
       <INPUT TYPE="hidden" NAME="debug" VALUE="">                          <p>The <tt>setProperty</tt>
       <p>The <tt>setProperty</tt>  CIM operation sets a single property value from a CIM Instance.                          CIM operation sets a single property value&nbsp;on a CIM Instance.
       <p>NameSpace&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2">                          <p>NameSpace&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="NameSpace" SIZE="30" VALUE="root/cimv2">
       <p>InstanceName <INPUT TYPE="text" NAME="ClassName" SIZE=30>                                  String that defines the target namespace. See <A href="enumeratenamespaces.html">NameSpace
       <p>PropertyName <INPUT TYPE="text" NAME="PropertyName" SIZE=30>                                          Operations</A>
       <p>Newvalue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="T1" size="30">                          for more information
       <p><INPUT TYPE="submit" VALUE="Submit" name="Submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;                          <p>InstanceName <INPUT TYPE="text" NAME="InstanceName" SIZE="30"> Defines the Name
       <INPUT TYPE="reset" VALUE="Reset">                                  of the instance whose property value is to be set. 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 updated.
                           <p>New value&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="NewValue" size="30">
                           New value for the property.
                           <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;
                                   <INPUT TYPE="reset" VALUE="Reset Form">
     </form>     </form>
   
     <hr>     <hr>
     &nbsp;     &nbsp;
     <hr>     <hr>
     <h2>Return Request</h2>     <h2>Return Request</h2>
  If unsuccessful, one of the following status codes MUST be returned                  If unsuccessful, one of the following status codes MUST be returned by this
     by this method, where the first applicable error in the list (starting with                  method, where the first applicable error in the list (starting with the first
     the first element of the list, and working down) is the error returned. Any                  element of the list, and working down) is the error returned. Any additional
     additional method-specific interpretation of the error in is given in                  method-specific interpretation of the error in is given in parentheses.
     parentheses.  
     <UL>     <UL>
       <LI>CIM_ERR_ACCESS_DENIED                          <LI>
       <LI>CIM_ERR_INVALID_NAMESPACE                          CIM_ERR_ACCESS_DENIED
                           <LI>
       <LI>CIM_ERR_INVALID_PARAMETER (including                          CIM_ERR_INVALID_NAMESPACE
       missing,duplicate, unrecognized or otherwise incorrect parameters)                          <LI>
                           CIM_ERR_INVALID_PARAMETER (including missing,duplicate, unrecognized or
       <LI>CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified                          otherwise incorrect parameters)
       namespace)                          <LI>
       <LI>CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested                          CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace)
       CIM Instance does not exist in the specified namespace)                          <LI>
       <LI>CIM_ERR_NO_SUCH_PROPERTY (the CIM Instance does exist, but the                          CIM_ERR_NOT_FOUND (the CIM Class does exist, but the requested CIM Instance
       requested CIMProperty does not)                          does not exist in the specified namespace)
       <LI>CIM_ERR_FAILED (some other unspecified error occurred)</LI>                          <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 Information</h2>     <h2>Additional Information</h2>
  The <TT>setProperty</TT> operation sets a single property value in a CIM  The <TT>setProperty</TT> operation sets a single property value in a CIM
     Instance in the target Namespace.&nbsp;     Instance in the target Namespace.&nbsp;
     <p>NameSpace The NameSpace parameter is a string that defines the target                  <p>
                   NameSpace The NameSpace parameter is a string that defines the target
     namespace.&nbsp;     namespace.&nbsp;
     <p>InstanceName The InstanceName input parameter specifies the name of                  <p>
     the Instance (model                  InstanceName The InstanceName input parameter specifies the name of the
     path) for which the CIMProperty value is to be updated.&nbsp;                  Instance (model path) for which the CIMProperty value is to be updated.&nbsp;
     <p>PropertyName The PropertyName input parameter specifies the name of                  <p>
     the CIMProperty whose                  PropertyName The PropertyName input parameter specifies the name of the
     value is to be updated.&nbsp;                  CIMProperty whose value is to be updated.&nbsp;
     <p>Newvalue The NewValue input parameter specifies the new value for the     <p>Newvalue The NewValue input parameter specifies the new value for the
     CIMProperty (which                          CIMProperty (which may be NULL).&nbsp;
     may be NULL).&nbsp;  
     <hr>     <hr>
     <h2>    Pegasus C++ API as defined in Operations.h                          <h2>
                                   Pegasus C++ API as defined in Operations.h
 </h2> </h2>
     <pre>    virtual void setProperty(     <pre>    virtual void setProperty(
         const String&amp; nameSpace,         const String&amp; nameSpace,
Line 72 
Line 94 
                 const CIMValue&amp; newValue = CIMValue()) = 0;                 const CIMValue&amp; newValue = CIMValue()) = 0;
  
 </pre> </pre>
   <hr><p style="margin-top: 0; margin-bottom: 0"> <font size="2">Demonstration                          <hr>
      Prepared by the OpenGroup Manageability Work Group Pegasus Development Team</font>                  <p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
                           <font size="2">Demonstration Prepared by the OpenGroup Manageability Work Group
      <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>)                                  Pegasus Development Team</font>
                   <p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
                           <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:46:49 PM<!--webbot bot="Timestamp" i-CheckSum="55165" endspan -->&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      S-Format="%A, %B %d, %Y %I:%M:%S %p" startspan -->
      Copyright @ The Open Group 2001&nbsp;</font>                                  Friday, June 29, 2001 06:46:49 PM<!--webbot bot="Timestamp" i-CheckSum="55165" endspan -->
                                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Copyright @ The Open Group 2001&nbsp;</font>
    <script>    <script>
            document.SetProperty.hostaddress.value = top.hostAddress;            document.SetProperty.hostaddress.value = top.hostAddress;
        document.SetProperty.debug.value = top.debug;        document.SetProperty.debug.value = top.debug;
        document.SetProperty.NameSpace.value = top.NameSpace;        document.SetProperty.NameSpace.value = top.NameSpace;
            window.focus();            window.focus();
    </script>    </script>
                   </p>
   </body>   </body>
 </html> </html>
   


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2