2015-04-07 18:04 GMT+03:00 Eero Volotinen <[email protected]>:

>
>
> 2015-04-07 13:36 GMT+03:00 Wiegand, Ralf <[email protected]>:
>
>> Hallo Eero -
>> Did this...
>> echo "<create_target>" > foo.xml
>>         cat original-xml-dump.xml >> foo.xml
>>         echo "</create_target>" >> foo.xml
>>
>>         cat foo.xml | omp -u username -w password -X -
>>
>>
>> getting this...
>> d><page>58</page></task_count></get_tasks_response></create_target>
>>
>
> get_task_response? this is not target xml, it's task xml.
>
> In short, first you need to import targets first and after that you can
> create tasks, so usually cannot import task as you are missing host
> definitions (targets)
>
> If you want to create tasks, then syntax is like this
>
> echo "<create_target> ..response content.. </create_target>" | omp -u user
> -w password -X -
>
>
>
sorry: echo "<create_task> ... </create_task>" ..

--
Eero
_______________________________________________
Openvas-discuss mailing list
[email protected]
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to