# Nmap result in scan task

**URL:** <https://forum.greenbone.net/t/nmap-result-in-scan-task/9159>\
**Category:** Scanning / scan configuration\
**Created:** [May 11, 2021, 7:33am UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159 "2021-05-11T07:33:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![koni](https://forum.greenbone.net/letter_avatar/koni/32/6_449c533f586939b6e5f246632a46421f.png) [@koni](https://forum.greenbone.net/u/koni)\
**Post date:** [May 11, 2021, 7:33am UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159/1 "2021-05-11T07:33:48Z")

</div>

Hi,  
I have a question about the GSA, how can I reuse my nmap scan via host discovery in a task scan ?

---

<div class="post-metadata">

**Author:** ![ctrl-jf](https://forum.greenbone.net/letter_avatar/ctrl-jf/32/6_449c533f586939b6e5f246632a46421f.png) [@ctrl-jf](https://forum.greenbone.net/u/ctrl-jf)\
**Post date:** [May 11, 2021, 8:26am UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159/2 "2021-05-11T08:26:49Z")

</div>

Hi koni,  
in your scan-configuration their’s an option “optimize\_test”. It is enabled by default i think.  
With this option some NVT’s are only run if specific prerequisites are met as stated here:  
[https://docs.greenbone.net/GSM-Manual/gos-5/en/scanning.html#description-of-scanner-preferences](https://docs.greenbone.net/GSM-Manual/gos-5/en/scanning.html#description-of-scanner-preferences)

Is this what you mean?

Best regards

---

<div class="post-metadata">

**Author:** ![koni](https://forum.greenbone.net/letter_avatar/koni/32/6_449c533f586939b6e5f246632a46421f.png) [@koni](https://forum.greenbone.net/u/koni)\
**Post date:** [May 11, 2021, 8:42am UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159/3 "2021-05-11T08:42:41Z")

</div>

Thx a lot for your answer, that’s not exactly what I was looking for but it’s intersting.  
I’m searching a way to keep IP that I scan with host discovery to group them and scan them with another task. Is it possible to make global tag instead of using tag per category ?

---

<div class="post-metadata">

**Author:** ![ctrl-jf](https://forum.greenbone.net/letter_avatar/ctrl-jf/32/6_449c533f586939b6e5f246632a46421f.png) [@ctrl-jf](https://forum.greenbone.net/u/ctrl-jf)\
**Post date:** [September 7, 2021, 4:04pm UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159/4 "2021-09-07T16:04:21Z")

</div>

Maybe a little late,  
but don’t you define your IPs in a Target?  
Why don’t you just reuse the target you used for your Discovery Scan with another scan?

You could also just do the other Scan and include the discovery vt’s.

Another approach that comes to my mind is to just scan the network with nmap and save the results to a file in the ‘grepable’ format (-oG flag in nmap command). You can than import the .gnmap file into gvm. See [https://community.greenbone.net/t/is-it-possible-to-import-nmap-xml-into-openvas/1104](https://community.greenbone.net/t/is-it-possible-to-import-nmap-xml-into-openvas/1104) for more information on how to import .gnmap files into gvm.

---

<div class="post-metadata">

**Author:** ![koni](https://forum.greenbone.net/letter_avatar/koni/32/6_449c533f586939b6e5f246632a46421f.png) [@koni](https://forum.greenbone.net/u/koni)\
**Post date:** [September 8, 2021, 7:20am UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159/5 "2021-09-08T07:20:15Z")

</div>

Hi !  
This project was for an internship, I didn’t remeber well what I was looking for. I think that as u said I wanted to scan the network with discovery scan and reuse IPs that I get to scan them but I didn’t found how. If you have the solution put it there so it can help someone later maybe 🙂. Thanks for you answer !  
And sorry if it’s hard to understood me, english isn’t my mothertongue

---

<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:10am UTC](https://forum.greenbone.net/t/nmap-result-in-scan-task/9159/6 "2025-04-07T10:10:56Z")

</div>

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


