It could be because your last "<preference>" tag should read "</preferences>".
On Wed, Apr 27, 2016 at 1:10 PM <[email protected]> wrote: > OK Thanks, So I did this: > > 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> > <scanner_name>max_checks</scanner_name> > <value>6</value> > </preference> > <preference> > <scanner_name>max_hosts</scanner_name> > <value>25</value> > </preference> > <preference> > </create_task>' > > Now the command works, but the values are not changed accordingly. It's > still the default value (10 and 30 in my case). > I am confused by the <scanner_name> being a "Compact name of preference, > from scanner." > > Any clarification there would be nice. > > Thanks ! > > ----- Mail original ----- > De: "mattm" <[email protected]> > À: [email protected] > Cc: "Eero Volotinen" <[email protected]>, > [email protected] > Envoyé: Mercredi 27 Avril 2016 18:48:19 > Objet: Re: [Openvas-discuss] tasks creation with OMP question > > > I alrady did, otherwise I wouldn't seek the mailing list for help... > > I looked at http://www.openvas.org/omp-6-0.html#command_create_task but > I still don't understand how I am suppose to achieve this. > > There's no NAME in PREFERENCES/PREFERENCE, just SCANNER_NAME. > > -- > Greenbone Networks GmbH > Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460 > Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner > _______________________________________________ > 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
