[Openvas-commits] r8148 - trunk/doc/website

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 23 14:04:19 CEST 2010


Author: mattm
Date: 2010-06-23 14:04:18 +0200 (Wed, 23 Jun 2010)
New Revision: 8148

Modified:
   trunk/doc/website/openvas-cr-28.htm4
Log:
Add missing modify commands.

Modified: trunk/doc/website/openvas-cr-28.htm4
===================================================================
--- trunk/doc/website/openvas-cr-28.htm4	2010-06-23 11:58:45 UTC (rev 8147)
+++ trunk/doc/website/openvas-cr-28.htm4	2010-06-23 12:04:18 UTC (rev 8148)
@@ -129,7 +129,7 @@
 
 <p>
 The OpenVAS Management Protocol is intended for use between OpenVAS clients
-and an OpenVAS Manager component.
+and an OpenVAS manager component.
 </p>
 
 <p>
@@ -213,7 +213,7 @@
 <table id="index">
 <tr id="index">
   <td id="index"><a href="#authenticate">authenticate</a></td>
-  <td id="index">Authenticate with the Manager.</td>
+  <td id="index">Authenticate with the manager.</td>
 </tr>
 <tr id="index">
   <td id="index"><a href="#commands">commands</a></td>
@@ -442,7 +442,7 @@
 <h4 id="authenticate">authenticate</h4>
 
 <p>
-The client uses the authenticate command to authenticate with the Manager.
+The client uses the authenticate command to authenticate with the manager.
 </p>
 
 <p>
@@ -833,8 +833,8 @@
 </p>
 
 <p>
-If the command includes a password, then the Manager creates a password only
-credential, otherwise the Manager creates a key-based credential.
+If the command includes a password, then the manager creates a password only
+credential, otherwise the manager creates a key-based credential.
 </p>
 
 <p>
@@ -1004,7 +1004,7 @@
 &lt;create_override&gt;
   &lt;text&gt;This is actually of little concern.&lt;/text&gt;
   &lt;nvt&gt;1.3.6.1.4.1.25623.1.0.10330&lt;/nvt&gt;
-  &lt;new_threat&gtLow;&lt;/new_threat&gt;
+  &lt;new_threat&gt;Low&lt;/new_threat&gt;
   &lt;result&gt;254cd3ef-bbe1-4d58-859d-21b8d0c046c6&lt;/result&gt;
 &lt;/create_override&gt;
 </pre>
@@ -2738,11 +2738,277 @@
 &lt;/help_response&gt;
 </pre>
 
+<h4 id="modify_config">modify_config</h4>
+
+<p>
+The client uses the modify_config command to change an existing config.  This
+command must include the ID of an existing config and either a preference,
+an NVT selection or a family selection.
+</p>
+
+<p>
+A preference must include a name.
+If the preference includes an NVT, then the preference is an NVT preference,
+otherwise the preference is a Scanner preference.  If the preference includes
+a value then the manager updates the value of the preference, otherwise the
+manager removes the preference.
+</p>
+
+<p>
+An NVT selection must include a family and may include any number of NVTs.
+</p>
+
+<p>
+A family selection may include a "growing" and any number of families.  A
+m4_dnl FIX the manager should check if families all have names, instead of just
+m4_dnl     skipping them.
+family must include a name and may include an "all" and a "growing".
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+apply the changes to the config and will reply with a response code indicating
+success.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"config_id" is the ID of the config which should be changed.
+</ul>
+</p>
+
+<p>
+Command elements:
+<ul>
+  <li>
+    &lt;preference&gt;
+    <ul>
+      <li>&lt;name&gt; is the name of a preference.
+      <li>&lt;nvt&gt; is an empty element with an oid attribute.</li>
+m4_dnl FIX other places use <preference><name>name</name>value<preference> style
+m4_dnl FIX b64 for get_config preferences?  how will simple clients handle this?
+      <li>&lt;value&gt; is the new value of the preference, Base64 encoded.
+    </ul>
+  </li>
+  <li>
+    &lt;family_selection&gt;
+    <ul>
+      <li>&lt;growing&gt; is an empty element.</li>
+      <li>
+        &lt;family&gt;
+        <ul>
+          <li>&lt;all&gt; is an empty element.</li>
+          <li>&lt;growing&gt; is an empty element.</li>
+          <li>&lt;name&gt; is the name of an NVT family.</li>
+        </ul>
+      </li>
+    </ul>
+  </li>
+  <li>
+    &lt;nvt_selection&gt;
+    <ul>
+      <li>&lt;family&gt; is the name of an NVT family</li>
+      <li>&lt;nvt&gt; is an empty element with an oid attribute.</li>
+    </ul>
+  </li>
+</ul>
+</p>
+
+<h5>Example:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;modify_config config_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6"&gt;
+  &lt;preference&gt;
+    &lt;nvt oid="1.3.6.1.4.1.25623.1.0.14259"/&gt;
+    &lt;name&gt;UDP port scan&lt;/name&gt;
+    &lt;value&gt;yes&lt;/value&gt;
+  &lt;/preference&gt;
+&lt;/modify_config&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_config_response status="200" status_text="OK" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_config_response status="4xx" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_config_response status="500" status_text="Internal error" /&gt;
+</pre>
+
+<h4 id="modify_note">modify_note</h4>
+
+<p>
+The client uses the modify_note command to change an existing note.  This
+m4_dnl FIX bit silly to require the text
+command must include the ID of an existing note and the note text.
+This command may include a host list, port, threat, task and result.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+apply the changes to the note and will reply with a response code indicating
+success.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"note_id" is the ID of the note which should be changed.
+</ul>
+</p>
+
+<p>
+Command elements:
+<ul>
+  <li>&lt;text&gt; is a human-readable text up to 4000 characters in length.
+  <li>&lt;hosts&gt; is a textual list of hosts.
+m4_dnl FIX should be <nvt oid=".."/>?
+  <li>&lt;port&gt; is a port.
+  <li>&lt;threat&gt; is a threat.
+m4_dnl FIX should be <task id=".."/>?
+  <li>&lt;task&gt; is a task ID.
+m4_dnl FIX should be <result id=".."/>?
+  <li>&lt;result&gt; is a result ID.
+</ul>
+</p>
+
+<h5>Example:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;modify_note note_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6"&gt;
+  &lt;text&gt;This issue should be resolved after the upgrade.&lt;/text&gt;
+  &lt;result&gt;254cd3ef-bbe1-4d58-859d-21b8d0c046c6&lt;/result&gt;
+&lt;/modify_note&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_note_response status="200" status_text="OK" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_note_response status="4xx" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_note_response status="500" status_text="Internal error" /&gt;
+</pre>
+
+<h4 id="modify_override">modify_override</h4>
+
+<p>
+The client uses the modify_override command to change an existing override.
+m4_dnl FIX bit silly to require the text
+This command must include the ID of an existing override and the override text.
+This command may include a host list, port, new_threat, threat, task and result.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+apply the changes to the override and will reply with a response code indicating
+success.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"override_id" is the ID of the override which should be changed.
+</ul>
+</p>
+
+<p>
+Command elements:
+<ul>
+  <li>&lt;text&gt; is a human-readable text up to 4000 characters in length.
+  <li>&lt;hosts&gt; is a textual list of hosts.
+m4_dnl FIX should be <nvt oid=".."/>?
+  <li>&lt;new_threat&gt; is a threat.
+  <li>&lt;port&gt; is a port.
+  <li>&lt;threat&gt; is a threat.
+m4_dnl FIX should be <task id=".."/>?
+  <li>&lt;task&gt; is a task ID.
+m4_dnl FIX should be <result id=".."/>?
+  <li>&lt;result&gt; is a result ID.
+</ul>
+</p>
+
+<h5>Example:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;modify_override override_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6"&gt;
+  &lt;text&gt;This issue is less important in our setup.&lt;/text&gt;
+  &lt;new_threat&gt;Low&lt;/result&gt;
+&lt;/modify_override&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_override_response status="200" status_text="OK" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_override_response status="4xx" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;modify_override_response status="500" status_text="Internal error" /&gt;
+</pre>
+
 <h4 id="modify_report">modify_report</h4>
 
 <p>
-The client uses the modify_report command to modify an existing report
-identified by its unique ID. This can be used to add a comment to a report.
+The client uses the modify_report command to modify an existing report.
+This command must include the ID of an existing report and a comment.
 </p>
 
 <p>
@@ -2761,8 +3027,7 @@
 <p>
 Command elements:
 <ul>
-  <li>&lt;parameter&gt; is the new value for the parameter to change.  The
-	  parameter is given in the "id" attribute.
+  <li>&lt;comment&gt; is the new text for the comment.</li>
 </ul>
 </p>
 
@@ -2774,7 +3039,7 @@
 
 <pre>
 &lt;modify_report report_id="65defe9b-bb28-4e85-9ed7-3f2a57ac8263"&gt;
-  &lt;parameter id="comment"&gt;This is the report where vulnerability XYZ was found on our Webserver.&lt;/parameter&gt;
+  &lt;comment&gt;This is the report where vulnerability XYZ was found on our Webserver.&lt;/comment&gt;
 &lt;/modify_report&gt;
 </pre>
 
@@ -2783,31 +3048,25 @@
 </p>
 
 <pre>
-&lt;modify_report_response status="200" report_id="65defe9b-bb28-4e85-9ed7-3f2a57ac8263" /&gt;
+&lt;modify_report_response status="200" status_text="OK" /&gt;
 </pre>
 
 <h4 id="modify_task">modify_task</h4>
 
 <p>
 The client uses the modify_task command to change an existing task.  This
-command must include the ID of an existing task and is expected to include at
-least one parameter and the new value for said parameter.
+m4_dnl FIX "either include" is actually "include one or more of" in manager
+command must include the ID of an existing task and must either include
+a name, a comment, an escalator, a schedule, an rcfile or a file.
 </p>
 
 <p>
 If there was no error with the command sent by the client, the manager will
 apply the changes to the task and will reply with a response code indicating
-success and the ID of the task which was modified.
+success.
 </p>
 
 <p>
-As a special case, the command can include any of the create_task
-parameters directly, via the &lt;rcfile&gt;, &lt;name&gt; and
-&lt;comment&gt; elements.  The rcfile element is applied first, then name, then
-comment, and then any other parameters.
-</p>
-
-<p>
 Command attributes:
 <ul>
   <li>"task_id" is the ID of the task which should be changed.
@@ -2817,14 +3076,15 @@
 <p>
 Command elements:
 <ul>
-  <li>&lt;parameter&gt; contains the name of the parameter to change (e.g.
-max_hosts, port_range) in the id attribute and the
-new value for the parameter in question.
-  <li>&lt;rcfile&gt; is a file describing the task. As of OMP 1.0, this file is a file
-in the openvasrc format. The file must be Base64 encoded.
-m4_dnl FIX Are these lengths required?
+  <li>&lt;rcfile&gt; is a file describing the task. As of OMP 1.0, this file is
+in the openvasrc format.  The file must be Base64 encoded.
   <li>&lt;name&gt; is a human-readable identifier up to 100 characters in length.
   <li>&lt;comment&gt; is a human-readable text up to 4000 characters in length.
+  <li>&lt;escalator&gt; is an empty element with an id attribute.
+  <li>&lt;schedule&gt; is an empty element with an id attribute.
+  <li>&lt;file&gt; is the text of a file, with name and action attributes.  The
+      file must be Base64 encoded.  Name is the name the manager associates with
+      the file.  Action must be either "update" or "remove".</li>
 </ul>
 </p>
 
@@ -2836,7 +3096,6 @@
 
 <pre>
 &lt;modify_task task_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6"&gt;
-  &lt;parameter id=&quot;max_hosts&quot;&gt;10&lt;/parameter&gt;
   &lt;comment&gt;Monthly scan of the webserver&lt;/comment&gt;
 &lt;/modify_task&gt;
 </pre>
@@ -2846,7 +3105,7 @@
 </p>
 
 <pre>
-&lt;modify_task_response status="201" status_text="OK, resource created" task_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6" /&gt;
+&lt;modify_task_response status="200" status_text="OK" /&gt;
 </pre>
 
 <p>
@@ -2854,7 +3113,7 @@
 </p>
 
 <pre>
-&lt;modify_task_response status="4xx" task_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6" /&gt;
+&lt;modify_task_response status="4xx" /&gt;
 </pre>
 
 <p>
@@ -2862,7 +3121,7 @@
 </p>
 
 <pre>
-&lt;modify_task_response status="500" status_text="Internal error" task_id="254cd3ef-bbe1-4d58-859d-21b8d0c046c6" /&gt;
+&lt;modify_task_response status="500" status_text="Internal error" /&gt;
 </pre>
 
 <h4 id="pause_task">pause_task</h4>



More information about the Openvas-commits mailing list