# Is it possible to extract from the XML file the Scan Config?

**URL:** <https://forum.greenbone.net/t/is-it-possible-to-extract-from-the-xml-file-the-scan-config/17426>\
**Category:** How To\
**Created:** [April 11, 2024, 2:37pm UTC](https://forum.greenbone.net/t/is-it-possible-to-extract-from-the-xml-file-the-scan-config/17426 "2024-04-11T14:37:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![csalt](https://forum.greenbone.net/letter_avatar/csalt/32/6_449c533f586939b6e5f246632a46421f.png) [@csalt](https://forum.greenbone.net/u/csalt)\
**Post date:** [April 11, 2024, 2:37pm UTC](https://forum.greenbone.net/t/is-it-possible-to-extract-from-the-xml-file-the-scan-config/17426/1 "2024-04-11T14:37:23Z")

</div>

Is it possible to extract from the exported XML Scanning results file, the selected “Scan Config” value when performing the OpenVAS scanning?

For example, how to identify within the XML file, if the results that we have are coming from the “Full and fast” or the “Host Discovery” Scan Config?

---

<div class="post-metadata">

**Author:** ![TreAtW](https://forum.greenbone.net/user_avatar/forum.greenbone.net/treatw/32/2410_2.png) [@TreAtW](https://forum.greenbone.net/u/TreAtW)\
**Post date:** [April 12, 2024, 3:16pm UTC](https://forum.greenbone.net/t/is-it-possible-to-extract-from-the-xml-file-the-scan-config/17426/2 "2024-04-12T15:16:14Z")

</div>

I think it’s not possible to get that information from the XML report.

However, you can use the [Greenbone Management Protocol (GMP)](https://docs.greenbone.net/API/GMP/gmp-21.4.html) to get that information, for example by `get_configs`’ output `<tasks>` (which tells you the tasks using scan config(s)) or vice versa via the `get_tasks`’ output `<config>` (which tells you the config used by task(s)).

If you are using alterable tasks, that information may not be accurate for past scans of course.

---

<div class="post-metadata">

**Author:** ![system](https://forum.greenbone.net/uploads/default/original/2X/4/4660e797edfaea797a8c9965246072ea26732804.png) [@system](https://forum.greenbone.net/u/system)\
**Post date:** [April 7, 2025, 10:21am UTC](https://forum.greenbone.net/t/is-it-possible-to-extract-from-the-xml-file-the-scan-config/17426/3 "2025-04-07T10:21:38Z")

</div>

Closed on April 7, 2025, 10:21am UTC


