I am facing the following error when i run gvm-cli about specifying connection type

usage: gvm-cli [-h] [-c [CONFIG]]
[–log [{DEBUG,INFO,WARNING,ERROR,CRITICAL}]]
[–timeout TIMEOUT] [–gmp-username GMP_USERNAME]
[–gmp-password GMP_PASSWORD] [-V] [–protocol {GMP,OSP}]
CONNECTION_TYPE …
gvm-cli: error: argument CONNECTION_TYPE: invalid choice: ‘user’ (choose from ‘ssh’, ‘tls’, ‘socket’)

Here is the documentation about gvm-cli connection types.

Most of the commands on the top of that page just simply declare the connection type without a flag after the gvm-cli command like so:

$ gvm-cli socket --xml "<get_version/>"

You can also check out Chapter 3 of the gvm-tools documentation which has some examples.

2 Likes