summaryrefslogtreecommitdiffstats
path: root/cgi
diff options
context:
space:
mode:
authora.arora <a.arora>2004-02-17 11:53:20 +0000
committera.arora <a.arora>2004-02-17 11:53:20 +0000
commit17bb7dfc3ec66a40b5883646ba0746eb287fe200 (patch)
treed981f3a32a9281c4a86ae8a57e906bb93f5776d9 /cgi
parentdcbb27091b3d3e26ad6846dca30ff20da1c9da7c (diff)
downloadtog-pegasus-17bb7dfc3ec66a40b5883646ba0746eb287fe200.zip
tog-pegasus-17bb7dfc3ec66a40b5883646ba0746eb287fe200.tar.gz
tog-pegasus-17bb7dfc3ec66a40b5883646ba0746eb287fe200.tar.xz
made minor UI and Javascript changes
Diffstat (limited to 'cgi')
-rw-r--r--cgi/htdocs/ReferenceNames.html21
-rw-r--r--cgi/htdocs/setProperty.htm185
2 files changed, 121 insertions, 85 deletions
diff --git a/cgi/htdocs/ReferenceNames.html b/cgi/htdocs/ReferenceNames.html
index bd2e0a3..fb1ece4 100644
--- a/cgi/htdocs/ReferenceNames.html
+++ b/cgi/htdocs/ReferenceNames.html
@@ -1,4 +1,15 @@
<html>
+<head>
+<script>
+ function rTrim(tempStr){
+ while( tempStr.lastIndexOf(' ') == tempStr.length-1 && tempStr.length > 0 )
+ {
+ tempStr = tempStr.substring(0,tempStr.length-1)
+ }
+ document.ReferenceNames.ObjectName.value = tempStr;
+ }
+</script>
+</head>
<body bgcolor="#CCCCCC">
<table width="100%">
<tr>
@@ -16,18 +27,18 @@
<a name="TOP"></a>
The <TT>referenceNames</TT> operation enumerates the association objects that refer to a particular target CIM Object (Class or Instance)
- <p><b><a href="#NameSpace">NameSpace</a>&nbsp;&nbsp;</b> <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2">&nbsp; String that defines the target namespace. See <a href="getnamespaces.html">NameSpace
+ <p><b><a href="#NameSpace">NameSpace</a>&nbsp;&nbsp;</b> <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2">&nbsp; String that defines the target namespace. See <a href="enumeratenamespaces.html">NameSpace
Operations</a> for more information.
<p><b><a href="#ObjectName">ObjectName</a></b>&nbsp; <INPUT TYPE="text" NAME="ObjectName" SIZE=33>&nbsp;&nbsp; Defines
- name of the Class
+ name of the Class or Instance
for which instance names are to be retrieved.&nbsp; This must be a legal
- class in the repository<p><b><a href="#ResultClass">ResultClass</a></b>&nbsp;&nbsp;&nbsp;<input type="text" name="ResultClass" size="34">
+ class in the repository or a valid Instance<p><b><a href="#ResultClass">ResultClass</a></b>&nbsp;&nbsp;&nbsp;<input type="text" name="ResultClass" size="34" value="NULL">
NULL or a valid CIM class name
that acts as a filter on returned set of Object Names.<p><b><a href="#Role">Role</a></b><a href="#Role">&nbsp;&nbsp;&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="Role" size="34">
Null or valid CIM Property name.
Acts as filter on returned set of object names.
- <p><INPUT TYPE="submit" VALUE="Submit Request">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <INPUT TYPE="reset" VALUE="Reset">
+ <p><INPUT TYPE="submit" VALUE="Submit Request" onClick="rTrim(document.ReferenceNames.ObjectName.value);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+ <INPUT TYPE="reset" VALUE="Reset Form">
</form>
<hr>
diff --git a/cgi/htdocs/setProperty.htm b/cgi/htdocs/setProperty.htm
index 42f7468..fd4aeef 100644
--- a/cgi/htdocs/setProperty.htm
+++ b/cgi/htdocs/setProperty.htm
@@ -1,92 +1,117 @@
<html>
- <body bgcolor="#CCCCCC">
- <table width="100%">
- <tr>
- <td width="50%" align="bottom"><h1>Set Property CIM Operation</h1><td>
- <td width="50%" align="right">
- <img border=1 src="/pegasus/icons/OpenGroupLogo.gif">
- </td>
- </tr>
- </table>
- <hr>
- <form name="SetProperty" METHOD=GET ACTION="/pegasus/cgi-bin/CGIClient">
- <INPUT TYPE="hidden" NAME="Operation" VALUE="GetProperty">
- <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">
- <INPUT TYPE="hidden" NAME="debug" VALUE="">
- <p>The <tt>setProperty</tt> CIM operation sets a single property value from a CIM Instance.
- <p>NameSpace&nbsp;&nbsp;&nbsp; <INPUT TYPE="text" NAME="NameSpace" SIZE=30 VALUE="root/cimv2">
- <p>InstanceName <INPUT TYPE="text" NAME="ClassName" SIZE=30>
- <p>PropertyName <INPUT TYPE="text" NAME="PropertyName" SIZE=30>
- <p>Newvalue&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="text" name="T1" size="30">
- <p><INPUT TYPE="submit" VALUE="Submit" name="Submit">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
- <INPUT TYPE="reset" VALUE="Reset">
- </form>
-
- <hr>
- &nbsp;
- <hr>
- <h2>Return Request</h2>
- If unsuccessful, one of the following status codes MUST be returned
- by this method, 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 method-specific interpretation of the error in is given in
- parentheses.
- <UL>
- <LI>CIM_ERR_ACCESS_DENIED
- <LI>CIM_ERR_INVALID_NAMESPACE
-
- <LI>CIM_ERR_INVALID_PARAMETER (including
- missing,duplicate, unrecognized or otherwise incorrect parameters)
-
- <LI>CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified
- namespace)
- <LI>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>
- <hr>
- <h2>Additional Information</h2>
- The <TT>setProperty</TT> operation sets a single property value in a CIM
- Instance in the target Namespace.&nbsp;
- <p>NameSpace The NameSpace parameter is a string that defines the target
- namespace.&nbsp;
- <p>InstanceName The InstanceName input parameter specifies the name of
- the Instance (model
- path) for which the CIMProperty value is to be updated.&nbsp;
- <p>PropertyName The PropertyName input parameter specifies the name of
- the CIMProperty whose
- value is to be updated.&nbsp;
- <p>Newvalue The NewValue input parameter specifies the new value for the
- CIMProperty (which
- may be NULL).&nbsp;
- <hr>
- <h2> Pegasus C++ API as defined in Operations.h
-
-</h2>
- <pre> virtual void setProperty(
+<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%">
+ <tr>
+ <td width="50%" align="bottom"><h1>Set Property CIM Operation</h1>
+ <td>
+ <td width="50%" align="right">
+ <img border="1" src="/pegasus/icons/OpenGroupLogo.gif">
+ </td>
+ </tr>
+ </table>
+ <hr>
+ <form name="SetProperty" METHOD="get" ACTION="/pegasus/cgi-bin/CGIClient">
+ <INPUT TYPE="hidden" NAME="Operation" VALUE="SetProperty"> <INPUT TYPE="hidden" NAME="hostaddress" VALUE="localhost:5988">
+ <INPUT TYPE="hidden" NAME="debug">
+ <p>The <tt>setProperty</tt>
+ 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">
+ 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 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>
+ <hr>
+ &nbsp;
+ <hr>
+ <h2>Return Request</h2>
+ If unsuccessful, one of the following status codes MUST be returned by this
+ method, 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
+ method-specific interpretation of the error in is given in parentheses.
+ <UL>
+ <LI>
+ CIM_ERR_ACCESS_DENIED
+ <LI>
+ CIM_ERR_INVALID_NAMESPACE
+ <LI>
+ CIM_ERR_INVALID_PARAMETER (including missing,duplicate, unrecognized or
+ otherwise incorrect parameters)
+ <LI>
+ CIM_ERR_INVALID_CLASS (the CIM Class does not exist in the specified namespace)
+ <LI>
+ 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>
+ <hr>
+ <h2>Additional Information</h2>
+ The <TT>setProperty</TT> operation sets a single property value in a CIM
+ Instance in the target Namespace.&nbsp;
+ <p>
+ NameSpace The NameSpace parameter is a string that defines the target
+ namespace.&nbsp;
+ <p>
+ InstanceName The InstanceName input parameter specifies the name of the
+ Instance (model path) for which the CIMProperty value is to be updated.&nbsp;
+ <p>
+ PropertyName The PropertyName input parameter specifies the name of the
+ CIMProperty whose value is to be updated.&nbsp;
+ <p>Newvalue The NewValue input parameter specifies the new value for the
+ CIMProperty (which may be NULL).&nbsp;
+ <hr>
+ <h2>
+ Pegasus C++ API as defined in Operations.h
+ </h2>
+ <pre> virtual void setProperty(
const String&amp; nameSpace,
const CIMReference&amp; instanceName,
const String&amp; propertyName,
const CIMValue&amp; newValue = CIMValue()) = 0;
</pre>
- <hr><p style="margin-top: 0; margin-bottom: 0"> <font size="2">Demonstration
- Prepared by the OpenGroup Manageability Work Group Pegasus Development Team</font>
-
- <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>)
- for more information on Pegasus</font>
-
- <p style="margin-top: 0; margin-bottom: 0"> <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;
- Copyright @ The Open Group 2001&nbsp;</font>
- <script>
+ <hr>
+ <p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
+ <font size="2">Demonstration Prepared by the OpenGroup Manageability Work Group
+ 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>
+ <p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
+ <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; Copyright @ The Open Group 2001&nbsp;</font>
+ <script>
document.SetProperty.hostaddress.value = top.hostAddress;
document.SetProperty.debug.value = top.debug;
document.SetProperty.NameSpace.value = top.NameSpace;
window.focus();
- </script>
- </body>
+ </script>
+ </p>
+ </body>
</html>
-