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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sun Jun 27 17:37:12 CEST 2010


Author: mattm
Date: 2010-06-27 17:37:12 +0200 (Sun, 27 Jun 2010)
New Revision: 8204

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

Modified: trunk/doc/website/openvas-cr-28.htm4
===================================================================
--- trunk/doc/website/openvas-cr-28.htm4	2010-06-27 15:30:24 UTC (rev 8203)
+++ trunk/doc/website/openvas-cr-28.htm4	2010-06-27 15:37:12 UTC (rev 8204)
@@ -1963,6 +1963,76 @@
 <delete_task_response status="500" status_text="Internal error" />
 </pre>
 
+<h4 id="get_agents">get_agents</h4>
+
+<p>
+The client uses the get_agents command to get agent information. This command may
+include the ID of an existing agent, a format, a sort order and a sort field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of agents to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"agent_id" is the ID of an agent.
+  <li>"format" is either "installer", "howto_install" or "howto_use".
+  <li>"sort_order" is "descending" for descending, anything else for ascending.
+  <li>"sort_field" is the field to sort on.
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_agents /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_agents_response status="200" status_text="OK"&gt;
+  &lt;agent id="c33864a9-d3fd-44b3-8717-972bfb01dfcf"&gt;
+    &lt;name&gt;Custom Scan Agent&lt;/name&gt;
+    &lt;comment&gt;Custom agent for use on the Web servers.&lt;/comment&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+  &lt;/agent&gt;
+  ...
+&lt;/get_agents_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_agents agent_id="c33864a9-d3fd-44b3-8717-972bfb01dfcf" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_agents_response status="200" status_text="OK"&gt;
+  &lt;agent id="c33864a9-d3fd-44b3-8717-972bfb01dfcf"&gt;
+    &lt;name&gt;Custom Scan Agent&lt;/name&gt;
+    &lt;comment&gt;Custom agent for use on the Web servers.&lt;/comment&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;package format="installer"&gt;CgoKCgoKCgoKCgoKCSAgI...&lt;/package&gt;
+  &lt;/agent&gt;
+&lt;/get_agents_response&gt;
+</pre>
+
 <h4 id="get_certificates">get_certificates</h4>
 
 <p>
@@ -2000,7 +2070,126 @@
 &lt;/get_certificates_response&gt;
 </pre>
 
+<h4 id="get_configs">get_configs</h4>
 
+<p>
+The client uses the get_configs command to get config information. This command may
+include the ID of an existing config, a families flag, an export flag, a preferences
+flag, a sort order and a sort field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of configs to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"config_id" is the ID of a config.
+  <li>"families" is boolean (0 is false, anything else is true).
+  <li>"preferences" is boolean (0 is false, anything else is true).
+  <li>"sort_order" is "descending" for descending, anything else for ascending.
+  <li>"sort_field" is the field to sort on.
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_configs /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_configs_response status="200" status_text="OK"&gt;
+  &lt;config id="daba56c8-73ec-11df-a475-002264764cea"&gt;
+    &lt;name&gt;Full and fast&lt;/name&gt;
+    &lt;comment&gt;All NVT&apos;s; optimized by using previously collected information.&lt;/comment&gt;
+    &lt;family_count&gt;
+      4
+      &lt;growing&gt;1&lt;/growing&gt;
+    &lt;/family_count&gt;
+    &lt;nvt_count&gt;
+      12
+      &lt;growing&gt;1&lt;/growing&gt;
+    &lt;/nvt_count&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;tasks&gt;
+      &lt;task id="13bb418a-4220-4575-b35b-ec398bff7417"&gt;
+        &lt;name&gt;Web Servers&lt;/name&gt;
+      &lt;/task&gt;
+      ...
+    &lt;/tasks&gt;
+  &lt;/config&gt;
+  ...
+&lt;/get_configs_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_configs config_id="daba56c8-73ec-11df-a475-002264764cea" preferences="1" families="1" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_configs_response status="200" status_text="OK"&gt;
+  &lt;config id="daba56c8-73ec-11df-a475-002264764cea"&gt;
+    &lt;name&gt;Full and fast&lt;/name&gt;
+    &lt;comment&gt;All NVT&apos;s; optimized by using previously collected information.&lt;/comment&gt;
+    &lt;family_count&gt;
+      4
+      &lt;growing&gt;1&lt;/growing&gt;
+    &lt;/family_count&gt;
+    &lt;nvt_count&gt;
+      12
+      &lt;growing&gt;1&lt;/growing&gt;
+    &lt;/nvt_count&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;tasks&gt;
+      &lt;task id="13bb418a-4220-4575-b35b-ec398bff7417"&gt;
+        &lt;name&gt;Web Servers&lt;/name&gt;
+      &lt;/task&gt;
+      ...
+    &lt;/tasks&gt;
+    &lt;families&gt;
+      &lt;family&gt;
+        &lt;name&gt;Credentials&lt;/name&gt;
+        &lt;nvt_count&gt;8&lt;/nvt_count&gt;
+        &lt;max_nvt_count&gt;8&lt;/max_nvt_count&gt;
+        &lt;growing&gt;1&lt;/growing&gt;
+      &lt;/family&gt;
+      ...
+    &lt;/families&gt;
+    &lt;preferences&gt;
+      &lt;preference&gt;
+        &lt;nvt oid="1.3.6.1.4.1.25623.1.0.10330"&gt;
+          &lt;name&gt;Services&lt;/name&gt;
+        &lt;/nvt&gt;
+        &lt;name&gt;Network connection timeout :&lt;/name&gt;
+        &lt;type&gt;entry&lt;/type&gt;
+        &lt;value&gt;5&lt;/value&gt;
+      &lt;/preference&gt;
+      ...
+    &lt;/preferences&gt;
+  &lt;/config&gt;
+  ...
+&lt;/get_configs_response&gt;
+</pre>
+
 <h4 id="get_dependencies">get_dependencies</h4>
 
 <p>
@@ -2017,7 +2206,7 @@
 </p>
 
 <p>
-Command elements:
+Command attributes:
 <ul>
   <li>"oid" is the OID of an NVT.
 </ul>
@@ -2076,7 +2265,314 @@
 &lt;/get_dependencies_response&gt;
 </pre>
 
+<h4 id="get_escalators">get_escalators</h4>
 
+<p>
+The client uses the get_escalators command to get escalator information. This
+command may include the ID of an existing escalator, a sort order and a sort
+field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of escalators to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"escalator_id" is the ID of an escalator.
+  <li>"sort_order" is "descending" for descending, anything else for ascending.
+  <li>"sort_field" is the field to sort on.
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_escalators /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_escalators_response status="200" status_text="OK"&gt;
+  &lt;escalator id="6181e65d-8ba0-4937-9c44-8f2b10b0def7"&gt;
+    &lt;name&gt;Team alert&lt;/name&gt;
+    &lt;comment&gt;&lt;/comment&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;condition&gt;
+      Threat level at least
+      &lt;data&gt;
+        &lt;name&gt;level&lt;/name&gt;
+        High
+      &lt;/data&gt;
+    &lt;/condition&gt;
+    &lt;event&gt;
+      Task run status changed
+      &lt;data&gt;
+        &lt;name&gt;status&lt;/name&gt;
+        Done
+      &lt;/data&gt;
+    &lt;/event&gt;
+    &lt;method&gt;
+      Email
+      &lt;data&gt;
+        &lt;name&gt;to_address&lt;/name&gt;
+        team at example.org
+      &lt;/data&gt;
+      &lt;data&gt;
+        &lt;name&gt;from_address&lt;/name&gt;
+        admin at example.org
+      &lt;/data&gt;
+      &lt;data&gt;
+        &lt;name&gt;notice&lt;/name&gt;
+        0
+      &lt;/data&gt;
+    &lt;/method&gt;
+  &lt;/escalator&gt;
+  ...
+&lt;/get_escalators_response&gt;
+</pre>
+
+<h4 id="get_lsc_credentials">get_lsc_credentials</h4>
+
+<p>
+The client uses the get_lsc_credentials command to get LSC credential
+information. This command may include the ID of an existing LSC credential,
+a format, a sort order and a sort field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of LSC credentials to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"lsc_credential_id" is the ID of an LSC credential.</li>
+  <li>"format" is a string describing the requested format.</li>
+  <li>"sort_order" is "descending" for descending, anything else for ascending.</li>
+  <li>"sort_field" is the field to sort on.</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_lsc_credentials /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_lsc_credentials_response status="200" status_text="OK"&gt;
+  &lt;lsc_credential id="c33864a9-d3fd-44b3-8717-972bfb01dfcf"&gt;
+    &lt;name&gt;sally&lt;/name&gt;
+    &lt;login&gt;sally&lt;/login&gt;
+    &lt;comment&gt;&lt;/comment&gt;
+    &lt;in_use&gt;0&lt;/in_use&gt;
+    &lt;type&gt;gen&lt;/type&gt;
+    &lt;targets&gt;&lt;/targets&gt;
+  &lt;/lsc_credential&gt;
+  &lt;lsc_credential id="8e305b0b-260d-450d-91a8-dadf0b144e15"&gt;
+    &lt;name&gt;bob&lt;/name&gt;
+    &lt;login&gt;bob&lt;/login&gt;
+    &lt;comment&gt;Bob on the web server.&lt;/comment&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;type&gt;pass&lt;/type&gt;
+    &lt;targets&gt;
+      &lt;target id="1f28d970-17ef-4c69-ba8a-13827059f2b9"&gt;
+        &lt;name&gt;Web server&lt;/name&gt;
+      &lt;/target&gt;
+    &lt;/targets&gt;
+  &lt;/lsc_credential&gt;
+  ...
+&lt;/get_lsc_credentials_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_lsc_credentials lsc_credential_id="8e305b0b-260d-450d-91a8-dadf0b144e15" format="key"/&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_lsc_credentials_response status="200" status_text="OK"&gt;
+  &lt;lsc_credential id="8e305b0b-260d-450d-91a8-dadf0b144e15"&gt;
+    &lt;name&gt;bob&lt;/name&gt;
+    &lt;login&gt;bob&lt;/login&gt;
+    &lt;comment&gt;Bob on the web server.&lt;/comment&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;type&gt;pass&lt;/type&gt;
+    &lt;targets&gt;
+      &lt;target id="1f28d970-17ef-4c69-ba8a-13827059f2b9"&gt;
+        &lt;name&gt;Web server&lt;/name&gt;
+      &lt;/target&gt;
+    &lt;/targets&gt;
+    &lt;public_key&gt;
+      ssh-rsa AAAAB3...Z64IcQ== Key generated by OpenVAS Manager
+    &lt;/public_key&gt;
+  &lt;/lsc_credential&gt;
+&lt;/get_lsc_credentials_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_lsc_credentials lsc_credential_id="8e305b0b-260d-450d-91a8-dadf0b144e15" format="deb"/&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_lsc_credentials_response status="200" status_text="OK"&gt;
+  &lt;lsc_credential id="8e305b0b-260d-450d-91a8-dadf0b144e15"&gt;
+    &lt;name&gt;bob&lt;/name&gt;
+    &lt;login&gt;bob&lt;/login&gt;
+    &lt;comment&gt;Bob on the web server.&lt;/comment&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;type&gt;pass&lt;/type&gt;
+    &lt;targets&gt;
+      &lt;target id="1f28d970-17ef-4c69-ba8a-13827059f2b9"&gt;
+        &lt;name&gt;Web server&lt;/name&gt;
+      &lt;/target&gt;
+    &lt;/targets&gt;
+    &lt;package format="deb"&gt;ITxhcmNoPgpk...DmvF0AKAAACg==&lt;/package&gt;
+  &lt;/lsc_credential&gt;
+&lt;/get_lsc_credentials_response&gt;
+</pre>
+
+<h4 id="get_notes">get_notes</h4>
+
+<p>
+The client uses the get_notes command to get note information. This command may
+include the ID of an existing note, a details flag, a result flag, an NVT, a
+task, a sort order and a sort field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of notes to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"note_id" is the ID of a note.</li>
+  <li>"details" is boolean (0 is false, anything else is true).</li>
+  <li>"result" is boolean (0 is false, anything else is true).</li>
+  <li>"sort_order" is "descending" for descending, anything else for ascending.</li>
+  <li>"sort_field" is the field to sort on.</li>
+</ul>
+</p>
+
+<p>
+Command elements:
+<ul>
+m4_dnl FIX attribute like others!?
+m4_dnl FIX give nvt/@id, get nvt/@oid
+  <li>&lt;nvt&gt; is an empty element with an id attribute.</li>
+m4_dnl FIX attribute like others!?
+  <li>&lt;task&gt; is an empty element with an id attribute.</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_notes /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_notes_response status="200" status_text="OK"&gt;
+  &lt;note id="b76b81a7-9df8-42df-afff-baa9d4620128"&gt;
+    &lt;nvt oid="1.3.6.1.4.1.25623.1.0.75"&gt;
+      &lt;name&gt;Test NVT: long lines&lt;/name&gt;
+    &lt;/nvt&gt;
+    &lt;text excerpt="0"&gt;This is the full text of the note.&lt;/text&gt;
+    &lt;orphan&gt;1&lt;/orphan&gt;
+  &lt;/note&gt;
+  ...
+&lt;/get_notes_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_notes note_id="7f618bbb-4664-419e-9bbf-367d93954cb0" details="1" result="1"/&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_notes_response status="200" status_text="OK"&gt;
+  &lt;note id="7f618bbb-4664-419e-9bbf-367d93954cb0"&gt;
+    &lt;nvt oid="1.3.6.1.4.1.25623.1.0.77"&gt;
+      &lt;name&gt;Test NVT: control chars in report result&lt;/name&gt;
+    &lt;/nvt&gt;
+    &lt;creation_time&gt;Sun Jun 27 08:49:46 2010&lt;/creation_time&gt;
+    &lt;modification_time&gt;Sun Jun 27 08:49:46 2010&lt;/modification_time&gt;
+    &lt;text&gt;note fixed to result&lt;/text&gt;
+    &lt;hosts&gt;127.0.0.1&lt;/hosts&gt;
+    &lt;port&gt;general/tcp&lt;/port&gt;
+    &lt;threat&gt;Medium&lt;/threat&gt;
+    &lt;task id="40b236a9-2b0f-4813-b8c7-bc2b98d9d7e4"&gt;
+      &lt;name&gt;test&lt;/name&gt;
+    &lt;/task&gt;
+    &lt;orphan&gt;0&lt;/orphan&gt;
+    &lt;result id="0c95e6b3-1100-4dfd-88f1-4bed1fad29de"&gt;
+      &lt;subnet&gt;127.0.0.1&lt;/subnet&gt;
+      &lt;host&gt;127.0.0.1&lt;/host&gt;
+      &lt;port&gt;general/tcp&lt;/port&gt;
+      &lt;nvt oid="1.3.6.1.4.1.25623.1.0.77"&gt;
+        &lt;name&gt;Test NVT: control chars in report result&lt;/name&gt;
+        &lt;cvss_base&gt;&lt;/cvss_base&gt;
+        &lt;risk_factor&gt;&lt;/risk_factor&gt;
+      &lt;/nvt&gt;
+      &lt;threat&gt;Medium&lt;/threat&gt;
+      &lt;description&gt;Warning with control char between fullstops: . .&lt;/description&gt;
+    &lt;/result&gt;
+  &lt;/note&gt;
+  ...
+&lt;/get_notes_response&gt;
+</pre>
+
 <h4 id="get_nvts">get_nvts</h4>
 
 <p>
@@ -2212,7 +2708,56 @@
 &lt;/get_nvts_response&gt;
 </pre>
 
+<h4 id="get_nvt_families">get_nvt_families</h4>
 
+<p>
+The client uses the get_nvt_families command to get NVT family information.
+This command may include a sort order.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of families to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"sort_order" is "descending" for descending, anything else for ascending.</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_nvt_families /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_nvt_families_response status="200" status_text="OK"&gt;
+  &lt;families&gt;
+    &lt;family&gt;
+      &lt;name&gt;Credentials&lt;/name&gt;
+      &lt;max_nvt_count&gt;8&lt;/max_nvt_count&gt;
+    &lt;/family&gt;
+    &lt;family&gt;
+      &lt;name&gt;Port scanners&lt;/name&gt;
+      &lt;max_nvt_count&gt;12&lt;/max_nvt_count&gt;
+    &lt;/family&gt;
+    ...
+  &lt;/families&gt;
+&lt;/get_nvt_families_response&gt;
+</pre>
+
+
 <h4 id="get_nvt_feed_checksum">get_nvt_feed_checksum</h4>
 
 <p>
@@ -2280,6 +2825,104 @@
 &lt;/get_nvt_feed_checksum_response&gt;
 </pre>
 
+<h4 id="get_overrides">get_overrides</h4>
+
+<p>
+The client uses the get_overrides command to get override information. This command may
+include the ID of an existing override, a details flag, a result flag, an NVT, a
+task, a sort order and a sort field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of overrides to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"override_id" is the ID of an override.</li>
+  <li>"details" is boolean (0 is false, anything else is true).</li>
+  <li>"result" is boolean (0 is false, anything else is true).</li>
+  <li>"sort_order" is "descending" for descending, anything else for ascending.</li>
+  <li>"sort_field" is the field to sort on.</li>
+</ul>
+</p>
+
+<p>
+Command elements:
+<ul>
+m4_dnl FIX attribute like others!?
+m4_dnl FIX give nvt/@id, get nvt/@oid
+  <li>&lt;nvt&gt; is an empty element with an id attribute.</li>
+m4_dnl FIX attribute like others!?
+  <li>&lt;task&gt; is an empty element with an id attribute.</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_overrides /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_overrides_response status="200" status_text="OK"&gt;
+  &lt;override id="b76b81a7-9df8-42df-afff-baa9d4620128"&gt;
+    &lt;nvt oid="1.3.6.1.4.1.25623.1.0.75"&gt;
+      &lt;name&gt;Test NVT: long lines&lt;/name&gt;
+    &lt;/nvt&gt;
+    &lt;text excerpt="0"&gt;This is the full text of the override.&lt;/text&gt;
+    &lt;new_threat&gt;Log&lt;/new_threat&gt;
+    &lt;orphan&gt;1&lt;/orphan&gt;
+  &lt;/override&gt;
+  ...
+&lt;/get_overrides_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_overrides override_id="7f618bbb-4664-419e-9bbf-367d93954cb0" details="1"/&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_overrides_response status="200" status_text="OK"&gt;
+  &lt;override id="7f618bbb-4664-419e-9bbf-367d93954cb0"&gt;
+    &lt;nvt oid="1.3.6.1.4.1.25623.1.0.77"&gt;
+      &lt;name&gt;Test NVT: control chars in report result&lt;/name&gt;
+    &lt;/nvt&gt;
+    &lt;creation_time&gt;Sun Jun 27 08:49:46 2010&lt;/creation_time&gt;
+    &lt;modification_time&gt;Sun Jun 27 08:49:46 2010&lt;/modification_time&gt;
+    &lt;text&gt;override fixed to result&lt;/text&gt;
+    &lt;hosts&gt;127.0.0.1&lt;/hosts&gt;
+    &lt;port&gt;general/tcp&lt;/port&gt;
+    &lt;threat&gt;Medium&lt;/threat&gt;
+    &lt;new_threat&gt;Low&lt;/new_threat&gt;
+    &lt;task id="40b236a9-2b0f-4813-b8c7-bc2b98d9d7e4"&gt;
+      &lt;name&gt;test&lt;/name&gt;
+    &lt;/task&gt;
+    &lt;orphan&gt;0&lt;/orphan&gt;
+    &lt;result id="0c95e6b3-1100-4dfd-88f1-4bed1fad29de" /&gt;
+  &lt;/override&gt;
+  ...
+&lt;/get_overrides_response&gt;
+</pre>
+
 <h4 id="get_preferences">get_preferences</h4>
 
 <p>
@@ -2490,7 +3133,7 @@
         &lt;host&gt;127.0.1.1&lt;/host&gt;
         &lt;port&gt;general/tcp&lt;/port&gt;
         &lt;nvt oid="1.3.6.1.4.1.25623.1.0.74"&gt;
-          &lt;name&gt;Test plugin: fields with ISO-8859-1 chars (ü)&lt;/name&gt;
+          &lt;name&gt;Test NVT: fields with ISO-8859-1 chars (ü)&lt;/name&gt;
           &lt;cvss_base&gt;5.0&lt;/cvss_base&gt;
           &lt;risk_factor&gt;Medium&lt;/risk_factor&gt;
         &lt;/nvt&gt;
@@ -2507,6 +3150,409 @@
 &lt;/get_reports_response&gt;
 </pre>
 
+<h4 id="get_results">get_results</h4>
+
+<p>
+The client uses the get_results command to get result information. This command
+may include the ID of an existing result, a task ID, a notes flag, a
+notes_details flag, an overrides flag, an overrides_details flag and an
+apply_overrides flag.
+</p>
+
+<p>
+If the request includes a notes flag, an overrides flag or an apply_overrides
+flag and any of these is true, then the request must also include a task ID.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of results to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"result_id" is the ID of a result.</li>
+  <li>"task_id" is the ID of a task.</li>
+  <li>"notes" is boolean (0 is false, anything else is true).</li>
+  <li>"notes_details" is boolean (0 is false, anything else is true).</li>
+  <li>"overrides" is boolean (0 is false, anything else is true).</li>
+  <li>"overrides_details" is boolean (0 is false, anything else is true).</li>
+  <li>"apply_overrides" is boolean (0 is false, anything else is true).</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_results /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_results_response status="200" status_text="OK"&gt;
+  &lt;results&gt;
+    &lt;result id="634f7a2e-8ca1-43b7-b6d7-0d4841449508"&gt;
+      &lt;subnet&gt;127.0.1.1&lt;/subnet&gt;
+      &lt;host&gt;127.0.1.1&lt;/host&gt;
+      &lt;port&gt;general/tcp&lt;/port&gt;
+      &lt;nvt oid="1.3.6.1.4.1.25623.1.0.74"&gt;
+        &lt;name&gt;Test NVT: fields with ISO-8859-1 chars&lt;/name&gt;
+        &lt;cvss_base&gt;5.0&lt;/cvss_base&gt;
+        &lt;risk_factor&gt;Medium&lt;/risk_factor&gt;
+      &lt;/nvt&gt;
+      &lt;threat&gt;Medium&lt;/threat&gt;
+      &lt;description&gt;Test with umlaut.&lt;/description&gt;
+    &lt;/result&gt;
+    ...
+  &lt;/results&gt;
+&lt;/get_results_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_results result_id="cac9e7c8-c726-49fd-a710-5f99079ab93e"
+             task_id="40b236a9-2b0f-4813-b8c7-bc2b98d9d7e4"
+             notes="1"
+             overrides="1" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_results_response status="200" status_text="OK"&gt;
+  &lt;results&gt;
+    &lt;result id="cac9e7c8-c726-49fd-a710-5f99079ab93e"&gt;
+      &lt;subnet&gt;127.0.0.1&lt;/subnet&gt;
+      &lt;host&gt;127.0.0.1&lt;/host&gt;
+      &lt;port&gt;general/tcp&lt;/port&gt;
+      &lt;nvt oid="1.3.6.1.4.1.25623.1.0.75"&gt;
+        &lt;name&gt;Test NVT: long lines&lt;/name&gt;
+        &lt;cvss_base&gt;9&lt;/cvss_base&gt;
+        &lt;risk_factor&gt;High&lt;/risk_factor&gt;
+      &lt;/nvt&gt;
+      &lt;threat&gt;High&lt;/threat&gt;
+      &lt;description&gt;Test with very long warning.&lt;/description&gt;
+      &lt;original_threat&gt;Medium&lt;/original_threat&gt;
+      &lt;notes&gt;&lt;/notes&gt;
+      &lt;overrides&gt;
+        &lt;override id="b0832812-75f1-45eb-b676-99c6e6bf2b24"&gt;
+          &lt;nvt oid="1.3.6.1.4.1.25623.1.0.75"&gt;
+            &lt;name&gt;Test NVT: long lines&lt;/name&gt;
+          &lt;/nvt&gt;
+          &lt;text excerpt="0"&gt;Test override&lt;/text&gt;
+          &lt;new_threat&gt;High&lt;/new_threat&gt;
+          &lt;orphan&gt;0&lt;/orphan&gt;
+        &lt;/override&gt;
+      &lt;/overrides&gt;
+    &lt;/result&gt;
+  &lt;/results&gt;
+&lt;/get_results_response&gt;
+</pre>
+
+<h4 id="get_schedules">get_schedules</h4>
+
+<p>
+The client uses the get_schedules command to get schedule information. This command may
+include the ID of an existing schedule, a details flag, a sort order and a sort field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of schedules to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"schedule_id" is the ID of a schedule.</li>
+  <li>"details" is boolean (0 is false, anything else is true).</li>
+  <li>"sort_order" is "descending" for descending, anything else for ascending.</li>
+  <li>"sort_field" is the field to sort on.</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_schedules /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_schedules_response status="200" status_text="OK"&gt;
+  &lt;schedule id="c33864a9-d3fd-44b3-8717-972bfb01dfcf"&gt;
+    &lt;name&gt;Overnight&lt;/name&gt;
+  &lt;/schedule&gt;
+  ...
+&lt;/get_schedules_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_schedules schedule_id="c33864a9-d3fd-44b3-8717-972bfb01dfcf" details="1"/&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_schedules_response status="200" status_text="OK"&gt;
+  &lt;schedule id="c33864a9-d3fd-44b3-8717-972bfb01dfcf"&gt;
+    &lt;name&gt;Overnight&lt;/name&gt;
+    &lt;comment&gt;3 hours, starting at 12h00.&lt;/comment&gt;
+    &lt;first_time&gt;Tue Jun 29 00:00:00 2010&lt;/first_time&gt;
+    &lt;next_time&gt;Tue Jun 29 00:00:00 2010&lt;/next_time&gt;
+    &lt;period&gt;86400&lt;/period&gt;
+    &lt;period_months&gt;0&lt;/period_months&gt;
+    &lt;duration&gt;10800&lt;/duration&gt;
+    &lt;in_use&gt;1&lt;/in_use&gt;
+    &lt;tasks&gt;
+      &lt;task id="d4daf4c4-25c7-40ac-87d3-38e489f34330"&gt;
+        &lt;name&gt;kk&lt;/name&gt;
+      &lt;/task&gt;
+    &lt;/tasks&gt;
+  &lt;/schedule&gt;
+&lt;/get_schedules_response&gt;
+</pre>
+
+<h4 id="get_system_reports">get_system_reports</h4>
+
+m4_dnl FIX plural but returns single report
+m4_dnl FIX     return all if name left out, like other get ops, would be slow.
+<p>
+The client uses the get_system_reports command to get system reports.  This
+command must include a name and may include a duration.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a system report to the client.
+</p>
+
+<p>
+Command elements:
+<ul>
+  <li>"name" is a string describing the requested report.</li>
+  <li>"duration" is a number of seconds.</li>
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_system_reports name="types" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_system_reports_response status="200" status_text="OK"&gt;
+  &lt;system_report&gt;
+    &lt;name&gt;types&lt;/name&gt;
+    &lt;report&gt;
+      &lt;system_report&gt;
+        &lt;name&gt;proc&lt;/name&gt;
+        &lt;title&gt;Processes&lt;/title&gt;
+      &lt;/system_report&gt;
+      &lt;system_report&gt;
+        &lt;name&gt;load&lt;/name&gt;
+        &lt;title&gt;System Load&lt;/title&gt;
+      &lt;/system_report&gt;
+      &lt;system_report&gt;
+        &lt;name&gt;cpu_0&lt;/name&gt;
+        &lt;title&gt;CPU Usage: CPU 0&lt;/title&gt;
+      &lt;/system_report&gt;
+      ...
+    &lt;/report&gt;
+  &lt;/system_report&gt;
+&lt;/get_system_reports_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_system_reports name="proc" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_system_reports_response status="200" status_text="OK"&gt;
+  &lt;system_report&gt;
+    &lt;name&gt;proc&lt;/name&gt;
+    &lt;report format="png" duration="86400"&gt;
+      iVBORw0KGgoAAAANSUhEUgAAArkAAAEMCAYAAADAsa7vAAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJ
+      TUUH2gYbDCUmRM0cqQAAIABJREFUeJzsnXl4FFW+/t9mGRFpAiRsIZCEsIhJQAZRBAxpAoERh6DX
+      ...
+      JYQQol9Xr16Fg4PDhHdwpVeap0+frtMpegkhRF3UySWEkEksMDBQL/uloQiEEENHb1cghBBCCCFT
+      DnVyCSGEEELIlEOdXEIIIYQQMuVwbt++PSoWi3Hv3j19l4UQQgghhBCtMKIOLiGEEEIImWr+B9Md
+      9A602bEdAAAAAElFTkSuQmCC
+    &lt;/report&gt;
+  &lt;/system_report&gt;
+&lt;/get_system_reports_response&gt;
+</pre>
+
+<h4 id="get_target_locators">get_target_locators</h4>
+
+<p>
+The client uses the get_target_locators command to get target locator
+information.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of target locators to the client.
+</p>
+
+<p>
+Command elements:
+<ul>
+  <li>(n/a)
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_target_locators /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_target_locators_response status="200" status_text="OK"&gt;
+m4_dnl name should be an entity like in others
+  &lt;target_locator name="ldap"/&gt;
+  ...
+&lt;/get_target_locators_response&gt;
+</pre>
+
+<h4 id="get_targets">get_targets</h4>
+
+<p>
+The client uses the get_targets command to get target information. This command
+may include the ID of an existing target, a tasks flag, a sort order and a sort
+field.
+</p>
+
+<p>
+If there was no error with the command sent by the client, the manager will
+reply with a list of targets to the client.
+</p>
+
+<p>
+Command attributes:
+<ul>
+  <li>"target_id" is the ID of a target.
+  <li>"tasks" is boolean (0 is false, anything else is true).</li>
+  <li>"sort_order" is "descending" for descending, anything else for ascending.
+  <li>"sort_field" is the field to sort on.
+</ul>
+</p>
+
+<h5>Examples:</h5>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_targets /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_targets_response status="200" status_text="OK"&gt;
+  &lt;target id="b493b7a8-7489-11df-a3ec-002264764cea"&gt;
+    &lt;name&gt;Localhost&lt;/name&gt;
+    &lt;hosts&gt;localhost&lt;/hosts&gt;
+    &lt;max_hosts&gt;1&lt;/max_hosts&gt;
+    &lt;comment&gt;&lt;/comment&gt;
+    &lt;in_use&gt;7&lt;/in_use&gt;
+    &lt;lsc_credential id=""&gt;
+      &lt;name&gt;&lt;/name&gt;
+    &lt;/lsc_credential&gt;
+  &lt;/target&gt;
+  ...
+&lt;/get_targets_response&gt;
+</pre>
+
+<p>
+<b>C:</b>
+</p>
+
+<pre>
+&lt;get_targets target_id="c33864a9-d3fd-44b3-8717-972bfb01dfcf" tasks="1" /&gt;
+</pre>
+
+<p>
+<b>M:</b>
+</p>
+
+<pre>
+&lt;get_targets_response status="200" status_text="OK"&gt;
+  &lt;target id="1f28d970-17ef-4c69-ba8a-13827059f2b9"&gt;
+    &lt;name&gt;dik&lt;/name&gt;
+    &lt;hosts&gt;dik.example.org&lt;/hosts&gt;
+    &lt;max_hosts&gt;1&lt;/max_hosts&gt;
+    &lt;comment&gt;dik mm&lt;/comment&gt;
+    &lt;in_use&gt;4&lt;/in_use&gt;
+    &lt;lsc_credential id="58ff2793-2dc7-43fe-85f9-20bfac5a87e4"&gt;
+      &lt;name&gt;mm&lt;/name&gt;
+    &lt;/lsc_credential&gt;
+    &lt;tasks&gt;
+      &lt;task id="13bb418a-4220-4575-b35b-ec398bff7417"&gt;
+        &lt;name&gt;dik mm&lt;/name&gt;
+      &lt;/task&gt;
+      ...
+    &lt;/tasks&gt;
+  &lt;/target&gt;
+&lt;/get_targets_response&gt;
+</pre>
+
 <h4 id="get_tasks">get_tasks</h4>
 
 <p>



More information about the Openvas-commits mailing list