The problem is that the documentation is impossible to understand if you're not a developper yourself or an xml expert...
I tried with the following xml: <create_override> <text>This is actually of little concern.</text> <nvt oid="1.3.6.1.4.1.25623.1.0.103239"/> <new_threat>False Positive</new_threat> <task id="a06cbabd-0cd4-4604-a58d-f831d9c7ec29"/> </create_override> Same error: <create_override_response status_text="Internal error" status="500"></create_override_response> :-( ----- Mail original ----- De: "Fábio Fernandes" <[email protected]> À: [email protected] Cc: "matthew mundell" <[email protected]>, [email protected] Envoyé: Mercredi 28 Septembre 2016 01:55:23 Objet: Re: [Openvas-discuss] Overrides management questions There seems to be a problem with your request but the error code seems suspicious. Task should be: <task id="a06cbabd-0cd4-4604-a58d-f831d9c7ec29”> Result should be omitted i think but there is nothing in the documentation referring to it. Fabio > No dia 26/09/2016, às 16:22, [email protected] escreveu: > > Sorry, wrong error message; that was: > > <create_override_response status_text="Internal error" > status="500"></create_override_response> > > tnx > > ----- Mail original ----- > De: [email protected] > À: "matthew mundell" <[email protected]> > Cc: [email protected] > Envoyé: Lundi 26 Septembre 2016 17:15:26 > Objet: Re: [Openvas-discuss] Overrides management questions > > Well, then I get an "internal error" message... > > <omp_response status_text="Bogus element: nvt" status="500"></omp_response> > > I tried with your example: > > <create_override> > <text>This is actually of little concern.</text> > <nvt oid="1.3.6.1.4.1.25623.1.0.103239"/> > <new_threat>False Positive</new_threat> > <task>a06cbabd-0cd4-4604-a58d-f831d9c7ec29</task> > <result>any</result> > </create_override> > > Please clarify what I am doing wrong, I'm a bit lost with the syntax. > > Thanks > > ----- Mail original ----- > De: "mattm" <[email protected]> > À: [email protected] > Cc: "Fábio Fernandes" <[email protected]>, > [email protected] > Envoyé: Lundi 26 Septembre 2016 14:50:20 > Objet: Re: [Openvas-discuss] Overrides management questions > >> I did some research and I tried sending the following xml command to omp to >> create an override: >> >> <create_override> >> <text>This is actually of little concern.</text> >> <nvt>1.3.6.1.4.1.25623.1.0.103239</nvt> > > The NVT oid should be an attribute: > > <nvt oid="1.3.6.1.4.1.25623.1.0.103239"/> > > See > > http://www.openvas.org/omp-6-0.html#command_create_override > > The example is wrong though, I'll update it. > > -- > 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 _______________________________________________ Openvas-discuss mailing list [email protected] https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
