I need to create a config template using an existing config response
returned by OpenVAS. I read the description from OpenVAS OMP 2.0
documentation <http://www.openvas.org/omp-2-0.html#command_create_config>,
and it is said that OpenVAS support OMP command with following format:

<create_config>
   <get_configs_response>
     <config id="daba56c8-73ec-11df-a475-002264764cea">
       <name>Full and fast</name>
       ...
     </config>
   </get_configs_response>
 </create_config>

I downloaded a config file, and in my python program I store the whole
"get_configs" xml body as a string called command, and I do:

xmlResult = Popen(['omp', '-h', self.host_IP, '-u', self.username, '-w',
self.password, '-p', str(self.port), '-X', command], stdout=PIPE,
stderr=PIPE)

This basically executes the OMP command in the shell, and I captured an
OSError and it is: "argument list too long". I know that the command is
long, but I'm wondering: do OpenVAS designers aware of this issue? This
error will happen if you put arbitrarily long string as a command line
argument. Is there any work around that I can do to avoid this situation?
Thanks.

cheers,
Shang
_______________________________________________
Openvas-devel mailing list
Openvas-devel@wald.intevation.org
http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-devel

Reply via email to