# Modify scan configuration

**URL:** <https://forum.greenbone.net/t/modify-scan-configuration/18825>\
**Category:** How To\
**Created:** [August 1, 2024, 4:39pm UTC](https://forum.greenbone.net/t/modify-scan-configuration/18825 "2024-08-01T16:39:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![brom99](https://forum.greenbone.net/letter_avatar/brom99/32/6_449c533f586939b6e5f246632a46421f.png) [@brom99](https://forum.greenbone.net/u/brom99)\
**Post date:** [August 1, 2024, 4:39pm UTC](https://forum.greenbone.net/t/modify-scan-configuration/18825/1 "2024-08-01T16:39:56Z")

</div>

Hello everyone,  
I am trying to create a scan config for a specific cve or CERT-Bund-Advisory.

I found an example script on github which sounds close to what I need:

> <https://github.com/greenbone/gvm-tools/blob/main/scripts/cfg-gen-for-certs.gmp.py>

Sadly, this script doesn´t work for my setup.  
It creates a new scan config and sets the two required nvts (Port scanners). However, any other nvt-oid failed.

The error messages always state:  
`gvmerr=<GvmResponseError status="400" message="Attempt to modify NVT in whole-only family [place any NVT-famlily here] Amazon Linux Local Security Checks">`

Does anybody know a workaround?

python-gvm 24.7.0  
gvm-tools 24.7.0  
gmp 22.5  
appliance GSM 650  
current feeds from yesterday

Kind regards.

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [August 2, 2024, 9:56am UTC](https://forum.greenbone.net/t/modify-scan-configuration/18825/2 "2024-08-02T09:56:00Z")

</div>

Hello,

and welcome to this community forums.

> [@brom99](#):
>
> gvm-tools 24.6.0

Looks like this is one version behind the most recent [24.7.0](https://github.com/greenbone/gvm-tools/releases/tag/v24.7.0) and this new release seems to exactly include a relevant improvement for this script:

> <https://github.com/greenbone/gvm-tools/pull/1124>
>
> Replace the deprecated method \`modify\_scan\_config\`
> 
> \## What
> Replace \`modify\_s…can\_config\` with \`modify\_scan\_config\_set\_nvt\_selection\` and improve error handling
> 
> \## Why
> The method \`modify\_scan\_config\` is now deprecated. Improved error handling allows the script to skip "whole-only" families and continue instead of crashing.
> 
> \## References
> GEA-653

---

<div class="post-metadata">

**Author:** ![brom99](https://forum.greenbone.net/letter_avatar/brom99/32/6_449c533f586939b6e5f246632a46421f.png) [@brom99](https://forum.greenbone.net/u/brom99)\
**Post date:** [August 2, 2024, 12:06pm UTC](https://forum.greenbone.net/t/modify-scan-configuration/18825/3 "2024-08-02T12:06:42Z")

</div>

Thank you cfi by pointing me to the newest version of gvm-tools.  
I updated the version.

However, it does not fix my problem. The script already used modify\_scan\_config\_set\_nvt\_selection i receive the same error

---

<div class="post-metadata">

**Author:** ![cfi](https://forum.greenbone.net/letter_avatar/cfi/32/6_449c533f586939b6e5f246632a46421f.png) [@cfi](https://forum.greenbone.net/u/cfi)\
**Post date:** [August 2, 2024, 12:42pm UTC](https://forum.greenbone.net/t/modify-scan-configuration/18825/4 "2024-08-02T12:42:29Z")

</div>

If there are additional issues / problems with the script i would suggest to raise a follow-up issue over there:

> **[Issues · greenbone/gvm-tools](https://github.com/greenbone/gvm-tools/issues)**
>
> Remote control your Greenbone Community Edition or Greenbone Enterprise Appliance - Issues · greenbone/gvm-tools

---

<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:23am UTC](https://forum.greenbone.net/t/modify-scan-configuration/18825/5 "2025-04-07T10:23:12Z")

</div>

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


