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 - I usually generate new config like this: 1. step delete all tasks, delete all configs, delete all targets 2. import targets, import (custom) scan config, create task based on targets and custom config. Maybe you should really hire consult to do this task? -- Eero
_______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
