Your are using non existent elemwnt
27.4.2016 7.13 ip. <[email protected]> kirjoitti:

> Hello !
>
> I am currently setting up an openvas dedicated machine to scan some of my
> company's lab networks. Since the number of networks are quiet significant
> I am using OMP to create tasks to openvas-manager.
>
> However, I have some problems creating the tasks I need. Currently, I
> create simple tasks with the following command:
>
> omp -h 127.0.0.1 -u admin -w my_password --xml='
> <create_task>
> <name>Site Name</name>
> <comment>Site VLAN</comment>
> <config id="daba56c8-73ec-11df-a475-002264764cea"/>
> <target id="my_task_id"/>
> </create_task>'
>
> This works fine. Now, I would like to tune this a little bit, like
> specifying the number of concurrent scans and number of simultaneous NVTs,
> so I do the following:
>
> omp -h 127.0.0.1 -u admin -w my_password --xml='
> <create_task>
> <name>Site Name</name>
> <comment>Site VLAN</comment>
> <config id="daba56c8-73ec-11df-a475-002264764cea"/>
> <target id="my_task_id"/>
> <preferences>
>        <preference>
>          <name>Maximum concurrently executed NVTs per host</name>
>          <scanner_name>max_checks</scanner_name>
>          <value>4</value>
>        </preference>
>        <preference>
>          <name>Maximum concurrently scanned hosts</name>
>          <scanner_name>max_hosts</scanner_name>
>          <value>20</value>
>        </preference>
> <preference>
> </create_task>'
>
> The command fails with the following error:
>
> <create_task_response status_text="Bogus element: name"
> status="400"></create_task_response>
>
> What exactly am I doing wrong here ?
>
> thanks a lot !!
> _______________________________________________
> Openvas-discuss mailing list
> [email protected]
> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
>
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to